API ReferenceAgents
Generate API Key
Generate a new API key for gateway access. No authentication required.
Generate API Key
Create a gateway-only API key without registering an agent or creating a wallet.
Request
curl -X POST http://localhost:4000/v1/keys \
-H "Content-Type: application/json" \
-d '{"email": "user@example.com"}'Response (201)
{
"api_key": "gw_a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6",
"credits_usd": 10.0
}Response fields
| Field | Type | Description |
|---|---|---|
api_key | string | API key (gw_ prefix) for gateway requests |
credits_usd | number | Starting credit balance |
Errors
| Status | Code | Description |
|---|---|---|
| 400 | -- | email field is required |