Documentation Index
Fetch the complete documentation index at: https://docs.dbhost.app/llms.txt
Use this file to discover all available pages before exploring further.
API keys
All API requests require a Bearer token in theAuthorization header:
Creating an API key
- Sign in to dbhost.app
- Go to Settings
- Click Create Key
- Choose either
Selected databasesorFull account access - Copy the key (shown once for that secret)
API key creation requires a Pro or Business plan.
Selected databases is the recommended default and limits the key to only the databases you choose. Full account access can create and manage every database in your account.
If you later need a fresh secret for the same key, use Replace key in Settings. The old secret stops working immediately, and the replacement secret is shown once.
Selected-database keys cannot create databases. Creating a database requires a full-account key.
Scope behavior
GET /api/v1/databasesreturns only the databases visible to the authenticated key- Database-specific routes outside the key’s scope return
DATABASE_NOT_FOUND - Full-account-only routes, such as database creation, return
KEY_SCOPE_DENIED
Using the CLI
Install the CLI, then save your key:Error responses
| Status | Code | Description |
|---|---|---|
| 401 | UNAUTHORIZED | Missing or invalid API key |
| 403 | KEY_SCOPE_DENIED | Key is valid but lacks the required full-account scope |
| 404 | DATABASE_NOT_FOUND | Database doesn’t exist, isn’t owned by this user, or isn’t visible to this key |
| 413 | PAYLOAD_TOO_LARGE | Request body is larger than the supported API limit |
| 429 | RATE_LIMITED | Too many requests for the current route or too many unauthorized attempts |
429 RATE_LIMITED, back off and retry after the number of seconds in the Retry-After header.