Docs/DevThrottle API/Authentication
API

Authentication

2 min read

Every API request authenticates with a DevThrottle API key - a token starting with dt_ that you create in your account. Send it as a standard bearer token:

Authorization header
Authorization: Bearer dt_your_key_here
Example: curl
curl https://devthrottle.com/api/v1/models \
  -H "Authorization: Bearer $DEVTHROTTLE_API_KEY"
Example: OpenAI SDK (Python)
from openai import OpenAI

client = OpenAI(
    base_url="https://devthrottle.com/api/v1",
    api_key="dt_your_key_here",
)

Key facts

  • The full key is shown once, at creation. Store it in a secret manager.
  • A missing or invalid key returns 401 with an OpenAI-shaped error body - see errors.
  • Spend is attributed per key in Usage, so use one key per integration.
  • Revoking a key in API keys stops it immediately; other keys are unaffected.
Warning
Keys spend real prepaid credits. Never commit a key to a repository or ship one in client-side code - treat it exactly like a password.