Authorization header.
Create an API key
POST https://api.agentity.to/auth/api-keys
Create a new API key associated with your account. Give each key a unique nickname so you can identify it later.
Request
A human-readable label for this key (e.g.
"production-agent"). Must be unique across your API keys.Response
Unique numeric identifier for this API key.
The label you assigned to this key.
The API key value. Store this securely — it will not be shown again.
ISO 8601 timestamp of when the key was created.
ISO 8601 timestamp of the last update.
List API keys
GET https://api.agentity.to/auth/api-keys
Retrieve all API keys associated with your account. The actual key values are not returned — only metadata.
Request
Bearer <accessToken> — your JWT access token.Response
Array of API key objects.
Delete an API key
DELETE https://api.agentity.to/auth/api-keys/:id
Permanently delete an API key by its ID. Any requests using this key will immediately stop working.
Request
Bearer <accessToken> — your JWT access token.The numeric ID of the API key to delete. Use the List API keys endpoint to look up key IDs.
Response
Returns200 OK with a confirmation message.
Errors
| Status | Description |
|---|---|
401 | Missing or invalid access token, or the key belongs to a different account. |
404 | No API key found with the given ID. |