v1

latestOpenAPI 3.1.02026-07-2219165126.1 KB
API Keys

Update an API key

Update API key metadata such as its name, enabled state, credit limit, or expiration.

patch/v1/account/keys/{key_id}

Path parameters

key_idinteger required

Request body

namestring nullable

New name for the API key

is_enabledboolean nullable

Enable or disable the API key

credit_limitnumber nullable

Update credit limit for the API key

expires_atstring date-time nullable

Update expiration datetime for the API key. Must be in the future. Send null to remove expiration.

Example request

{
  "credit_limit": 50,
  "is_enabled": true,
  "name": "CI worker rotated"
}

Response

Successful Response

idinteger required
namestring required
created_atstring date-time required
expires_atstring date-time nullable required
is_enabledboolean required
credit_limitnumber nullable required

Example response

{
  "created_at": "2026-03-01T12:00:00Z",
  "credit_limit": 100,
  "id": 12,
  "is_enabled": true,
  "name": "Production"
}