Activate, deactivate, pause, or unpause organization API keys without modifying other metadata. These endpoints help teams react quickly to security incidents or operational needs.
| Action | Method & Path |
|---|---|
| Activate key | POST /v1/organizations/{org_id}/api-keys/{key_id}/activate |
| Deactivate key | POST /v1/organizations/{org_id}/api-keys/{key_id}/deactivate |
| Pause key | POST /v1/organizations/{org_id}/api-keys/{key_id}/pause |
| Unpause key | POST /v1/organizations/{org_id}/api-keys/{key_id}/unpause |
All four endpoints share the same structure and optional request body.
POSThttps://api.aitronos.com/v1/organizations/{org_id}/api-keys/{key_id}/activate
org_id string required
Organization scope for the API key.
key_id string required
Identifier of the API key to modify (prefixed with apk_).
Updated key metadata reflecting the new status.
{
"id": "apk_7f21a9d94e6f48b1",
"status": "active",
"is_paused": false,
"updated_at": "2025-11-05T10:11:02Z"
}cURL
- Bash
- Python
- JavaScript
curl -X POST "https://api.aitronos.com/v1/organizations/org_abc123/api-keys/apk_xyz789/activate" \
-H "X-API-Key: $FREDDY_API_KEY"