Authentication
All API requests require a Bearer token in theAuthorization header. API keys start with agd_.
Using Your API Key
Include your key in every request:401 Unauthorized.
Creating an Account
Create an account to get your first API key:Creating Additional API Keys
Generate more keys for different agents, environments, or team members:| Plan | API Keys |
|---|---|
| Free | 1 |
| Pro | 10 |
| Enterprise | Unlimited |
Revoking API Keys
Revoke a compromised or unused key immediately:401 on all subsequent requests. This is instant and irreversible.
Security Best Practices
Use environment variables
Use environment variables
Never hardcode API keys in source code. Store them in environment variables or a secrets manager.
Use separate keys per environment
Use separate keys per environment
Create distinct keys for development, staging, and production. If a staging key leaks, your production traffic is unaffected.
Rotate keys regularly
Rotate keys regularly
Create a new key, update your agents, then revoke the old key. Zero-downtime rotation.
Monitor for unauthorized usage
Monitor for unauthorized usage
Never expose keys in client-side code
Never expose keys in client-side code
AgentDrop keys are server-side only. Never include them in browser JavaScript, mobile apps, or public repositories.
Error Responses
| Status | Meaning |
|---|---|
401 Unauthorized | Missing or invalid API key |
403 Forbidden | Valid key but insufficient permissions for this action |
429 Too Many Requests | Rate limit exceeded. Back off and retry. |
