v51

OpenAPI 3.0.0raw.githubusercontent.com2026-08-01267339950.6 KB
Hosting: Databases

List account databases

Returns a paginated list of databases for the specified account.

Use the domain and is_assigned filters to find databases assigned to a specific domain.

get/api/hosting/v1/accounts/{username}/databases

Path parameters

usernamestring required
Example:u123456789

Query parameters

pageinteger
Example:1

Page number

per_pageinteger
Example:25

Number of items per page

domainstring nullable
Example:example.com

Filter by domain name (exact match)

is_assignedboolean nullable
Example:true

When used with domain, return only databases assigned to that domain.

searchstring nullable
Example:test_db

Search databases by name, user, or creation date.

Response

Success response

Example response

{
  "data": [
    {
      "name": "u123456789_test_db",
      "user": "u123456789_admin",
      "domain": "example.com",
      "permissions": {
        "Alter": 1,
        "Drop": 0
      },
      "created_at": "2024-05-29T05:49:49+00:00",
      "updated_at": "2024-05-29T05:49:49+00:00",
      "disk_usage_mb": 32,
      "max_size_mb": 3072
    }
  ],
  "meta": {
    "current_page": 1,
    "per_page": 15,
    "total": 100
  }
}