Databases

Endpoints for managing databases.

Admins see every database on the server. Non-admin users see only their own.

List Databases

GET /api/v1/databases

Scope: read:databases

Query Parameters

Parameter Type Description
page integer Page number. See Pagination
limit integer Items per page. See Pagination

Response

{
    "data": [
        {
            "id": 6,
            "user_id": 2,
            "db_type": "mariadb",
            "db_name": "test",
            "db_user": "testst",
            "db_host": "localhost",
            "db_port": 3306,
            "is_active": true,
            "created_at": "2026-10-18T10:23:09Z"
        }
    ],
    "pagination": {
        "page": 1,
        "limit": 25,
        "total": 1,
        "total_pages": 1
    }
}
Field Type Description
id integer Database ID
user_id integer ID of the owning panel user
db_type string Engine: mariadb or postgresql
db_name string Database name
db_user string Database user paired with this database
db_host string Host the engine listens on
db_port integer Port the engine listens on
is_active boolean true if the database is active, false otherwise
created_at string (RFC 3339) Creation timestamp

Example

curl -H "Authorization: Bearer $TOKEN" \
  "https://panel.example.com/api/v1/databases?page=1&limit=25"

Get Database

GET /api/v1/databases/{id}

Scope: read:databases

Path Parameters

Parameter Type Description
id integer Database ID

Response

Same shape as a single item in the list response, wrapped in data:

{
  "data": {
    "id": 6,
    "db_name": "test",
    ...
  }
}

Errors

Code Status Condition
not_found 404 Database does not exist
forbidden 403 Database belongs to another user
invalid_request 400 id is not a valid integer

Example

curl -H "Authorization: Bearer $TOKEN" \
  https://panel.example.com/api/v1/databases/6
Last updated: October 19, 2026