Create API Key
Generate a new API key for your account. Use separate keys for different agents, environments, or team members.
The API key value is returned once in this response. Store it immediately. You cannot retrieve it later.
Request
Bearer token. Example: Bearer agd_live_xxxxxxxxxxxxxxxxxxxx
Path Parameters
Your account ID. Example: acc_abc123
Body
A descriptive name for this key. Examples: production-agent, staging, crewai-pipeline.
Response
The key ID, used for revocation.
The name you assigned to this key.
The full API key. Starts with agd_. Shown once.
ISO 8601 creation timestamp.
Examples
curl -X POST https://agentdrop-production.up.railway.app/v1/accounts/acc_abc123/api-keys \
-H "Authorization: Bearer agd_live_xxxxxxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"name": "production-agent"}'
Response
{
"id": "key_xyz789",
"name": "production-agent",
"api_key": "agd_live_zzzzzzzzzzzzzzzzzzzz",
"created_at": "2026-03-22T12:00:00Z"
}
Key Limits by Plan
| Plan | Max API Keys |
|---|
| Free | 1 |
| Pro | 10 |
| Enterprise | Unlimited |
Creating a key beyond your plan’s limit returns 403 Forbidden.
Errors
| Status | Code | Description |
|---|
401 | UNAUTHORIZED | Invalid or missing API key |
403 | KEY_LIMIT_REACHED | You’ve reached the API key limit for your plan |