Update an organization API key
API keys
Update an organization API key
Requires the api_keys:manage secret-key scope.
PATCH
Update an organization API key
Path Parameters
Pattern:
^org_[0123456789abcdefghjkmnpqrstvwxyz]{26}$Example:
"org_f6m39y94nh6fs513q03skj929c"
Pattern:
^key_[0123456789abcdefghjkmnpqrstvwxyz]{26}$Example:
"key_6cw04zdmetw8t5rsdppadhper0"
Body
application/json
Example:
"Acme Growth Workspace"
Example:
["https://app.acme.co/signup"]When updating a secret key, provide at least one supported secret-key scope, or ["*"] for all current and future scopes.
Minimum array length:
1Available options:
*, sessions:list, sessions:read, sessions:update, fingerprints:list, fingerprints:read, organizations:create, organizations:read, organizations:update, api_keys:read, api_keys:manage, gate:agent_tokens:verify, gate:agent_tokens:revoke, gate:login_sessions:consume, gate:services:read, gate:services:manage, webhooks:read, webhooks:manage Example:
["*"]Response
Revoked API key response.
Example:
{
"object": "api_key",
"id": "key_6cw04zdmetw8t5rsdppadhper0",
"type": "publishable",
"environment": "live",
"name": "Acme Growth Workspace",
"status": "active",
"allowed_origins": ["https://app.acme.co/signup"],
"scopes": ["*"],
"rate_limit": 1,
"key_preview": "FOIL_SAMPLE_KEY",
"display_key": "FOIL_SAMPLE_KEY",
"revealed_key": "FOIL_SAMPLE_KEY",
"last_used_at": "2026-03-24T20:00:05.000Z",
"created_at": "2026-03-24T20:00:00.000Z",
"rotated_at": "2026-03-24T20:00:05.000Z",
"revoked_at": "2026-03-24T20:00:05.000Z",
"grace_expires_at": "2026-03-24T20:00:05.000Z"
}Example:
{
"request_id": "req_cf147349a4134208aebb8c70e25fb7e1"
}