API Keys
Creating an API key
- Go to Settings → API Keys
- Click New API Key
- Give it a descriptive name (e.g., “Production Backend”)
- Set an optional expiry date
- Click Create
- Copy the key immediately — it’s only shown once
Keys start with afk_ and look like: afk_live_abc123xyz789...
Using an API key
curl https://api.auteryn.ai/api/run \ -H "Authorization: Bearer afk_live_your_key" \ -H "X-Agent-Id: your-agent-id" \ -H "Content-Type: application/json" \ -d '{"query": "Hello"}'Best practices
- Never commit keys to version control — use environment variables
- One key per environment — separate keys for dev, staging, and production
- Set expiry dates for keys needed only temporarily
- Rotate keys regularly, especially if a team member with key access leaves
Revoking a key
Settings → API Keys → Revoke next to the key you want to remove.
Revocation takes effect immediately.