Skip to content
Last updated

Manage organization API key status

🔨 In Development — This section is still being developed and may change.
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/{organization_id}/api/{api_key_id}/activate
Deactivate keyPOST /v1/organizations/{organization_id}/api/{api_key_id}/deactivate
Pause keyPOST /v1/organizations/{organization_id}/api/{api_key_id}/pause
Unpause keyPOST /v1/organizations/{organization_id}/api/{api_key_id}/unpause

All four endpoints share the same structure and optional request body.

POSThttps://api.freddy.aitronos.com/v1/organizations/{organization_id}/api/{api_key_id}/activate

Path Parameters

organization_id string required

Organization scope for the API key.

api_key_id string required

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

Request Body (optional)

note string optional

Optional audit message explaining why the status changed.

Returns

Updated key metadata reflecting the new status.

{
  "id": "apk_7f21a9d94e6f48b1",
  "status": "active",
  "isPaused": false,
  "updatedAt": "2025-11-05T10:11:02Z"
}

Request example

Bash
curl -X POST "https://api.freddy.aitronos.com/v1/organizations/ORG_1234567890abcdef/api/apk_7f21a9d94e6f48b1/activate" \
  -H "Authorization: Bearer $FREDDY_API_KEY" \
  -H "Content-Type": "application/json" \
  -d '{
    "note": "Reactivated after security review"
  }'