Skip to main content

Get database list

Description

Retrieves a list of databases.

Request URL

Method: POST

https://example.com/api/v1.1/databases/list/

Request parameters

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
formatint"json"NoResponse data format
By default – json
from_idint1NoFirst database in the list ID
By default – 1
limitint1NoLimit for response entries
By default – 1000
ui_tags[]String[ "tag1", "tag2" ]NoList of tags for search
groups[]String[ "group1", "group2" ]NoList of access groups
groups_id[]int[ 0, 1 ]NoList of access groups

Request example

{
"limit": 2,
"token": "abcdefghijklmnqrstuvwxyz"
}

Response example

{
"data": [
{
"id": 1,
"name": "Database #1",
"ui_tags": [],
"Groups": [
{
"Id": 0,
"Name": "main"
}
]
},
{
"id": 2,
"name": "Database #2",
"ui_tags": ["tag1", "tag2"],
"Groups": [
{
"Id": 1,
"Name": "subaccount"
}
]
}
],
"error": 0,
"error_text": "Successful operation",
"next_from_id": 6,
"total_count": 4
}

Response parameters

ParameterTypeDescription
errorintError code
error_textstringError text
next_from_idintThe index must be passed in the next request to receive another piece of data, until the result output contains 0 history lines
total_countintTotal database count
idintDatabase ID
namestringDatabase name
ui_tags[]StringList of tags
groups[]StringList of groups