DBHost provides two APIs: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.
-
Control plane API (
https://dbhost.app/api/v1/) — User-facing REST API authenticated with API keys. Use this from your applications, scripts, and CI/CD pipelines. Paid users can issue either selected-database keys or full-account keys. -
VPS agent API (
https://agent.dbhost.app/) — Internal API for direct VPS operations. Authenticated with a shared secret. Used by the control plane; not intended for end users.
API key scope model
Paid users can create two API key scope types:- Selected databases — Recommended least-privilege option. The key only sees and operates on its assigned databases.
- Full account access — Can create and manage every database in the owning account.
DATABASE_NOT_FOUND. Full-account-only routes, such as database creation, return KEY_SCOPE_DENIED when used with a selected-database key.
Base URL
Common cURL examples
List databases visible to the authenticated key:Response format
Most successful responses return JSON. File downloads such as backup exports return the raw attachment body, and some delete routes return204 No Content.
Errors use a standard envelope: