Skip to main content
All Dari API requests are authenticated with a platform API key.

Header format

Pass the key in the Authorization header:
Authorization: Bearer $DARI_API_KEY
Example request:
curl https://api.dari.dev/v1/deployments/dep_123 \
  -H "Authorization: Bearer $DARI_API_KEY"

Base URL

Use the v1 API under:
https://api.dari.dev/v1
  • Store API keys outside source control
  • Inject keys through CI or application secrets management
  • Rotate keys when ownership changes
  • Use separate keys for local development and automation where possible

Error shape

Representative authentication failures:
CodeMeaning
401Missing or invalid API key
403Authenticated, but not authorized for the requested resource
Example response:
{
  "detail": "Missing or invalid API key"
}