Skip to content
Last updated

Manage organization API key status

Activate, deactivate, pause, or unpause organization API keys without modifying other metadata. These endpoints help teams react quickly to security incidents or operational needs.

Available endpoints

ActionMethod & Path
Activate keyPOST /v1/organizations/{org_id}/api-keys/{key_id}/activate
Deactivate keyPOST /v1/organizations/{org_id}/api-keys/{key_id}/deactivate
Pause keyPOST /v1/organizations/{org_id}/api-keys/{key_id}/pause
Unpause keyPOST /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

Path Parameters

org_id string required

Organization scope for the API key.

key_id string required

Identifier of the API key to modify (prefixed with apk_).

Returns

Updated key metadata reflecting the new status.

{
  "id": "apk_7f21a9d94e6f48b1",
  "status": "active",
  "is_paused": false,
  "updated_at": "2025-11-05T10:11:02Z"
}
cURL
curl -X POST "https://api.aitronos.com/v1/organizations/org_abc123/api-keys/apk_xyz789/activate" \
  -H "X-API-Key: $FREDDY_API_KEY"