Skip to main content

API keys

All API requests require a Bearer token in the Authorization header:
curl -H "Authorization: Bearer dbh_your_api_key_here" \
  https://dbhost.app/api/v1/databases

Creating an API key

  1. Sign in to dbhost.app
  2. Go to Settings
  3. Click Generate API Key
  4. Copy the key (shown only once)

Error responses

StatusCodeDescription
401UNAUTHORIZEDMissing or invalid API key
403FORBIDDENKey is valid but lacks access to the resource