Pterodactyl API v1
Databases

List databases

Lists all databases on a server

Available include parameters

ParameterDescription
passwordIncludes the database user password
GET/api/client/servers/{server}/databases

Authorization

ClientToken
AuthorizationBearer <token>

Client API key (generated at /account/api)

In: header

Path Parameters

server*string

Server identifier (short 8-character ID)

Query Parameters

include?string

Comma-separated list of related resources to embed in each returned object. Accepted values are listed in the include-parameters table above.

Response Body

application/json

curl -X GET "https://pterodactyl.file.properties/api/client/servers/1a7ce997/databases?include=password" \  -H "Authorization: Bearer ptlc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \  -H "Accept: application/json"
{
  "object": "list",
  "data": [
    {
      "object": "server_database",
      "attributes": {
        "id": "bEY4yAD5",
        "host": {
          "address": "127.0.0.1",
          "port": 3306
        },
        "name": "s5_perms",
        "username": "u5_QsIAp1jhvS",
        "connections_from": "%",
        "max_connections": 0
      }
    },
    {
      "object": "server_database",
      "attributes": {
        "id": "E0A0Rw42",
        "host": {
          "address": "127.0.0.1",
          "port": 3306
        },
        "name": "s5_coreprotect",
        "username": "u5_2jtJx1nO1d",
        "connections_from": "%",
        "max_connections": 0
      }
    }
  ]
}