Docsapiauthentication

Authentication

Authentication

All API requests require your API key in the apikey header:

curl https://dublab.app/api/v2/me \
  -H "apikey: YOUR_API_KEY"

Authorization: Bearer YOUR_API_KEY is also accepted if that fits your HTTP client better.

Everything under https://dublab.app/api/v2/ uses snake_case for every request and response field.

Creating an API Key

  1. Log into your DubLab account
  2. Go to Account Settings
  3. Scroll to the API Keys section
  4. Click Create API Key
  5. Copy and save your key — it won't be shown again

Errors

All errors return JSON with an error field and an appropriate HTTP status:

{ "error": "Invalid API key" }

401 means the key is missing or invalid. See Endpoints for the full status-code table.