Skip to content

API Keys

Creating an API key

  1. Go to Settings → API Keys
  2. Click New API Key
  3. Give it a descriptive name (e.g., “Production Backend”)
  4. Set an optional expiry date
  5. Click Create
  6. Copy the key immediately — it’s only shown once

Keys start with afk_ and look like: afk_live_abc123xyz789...


Using an API key

Terminal window
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.