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_KEYis 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
- Log into your DubLab account
- Go to Account Settings
- Scroll to the API Keys section
- Click Create API Key
- 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.