Skip to main content
PATCH
/
v1
/
account
/
keys
/
{key_id}
Update API Key
curl --request PATCH \
  --url https://api.routeway.ai/v1/account/keys/{key_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "label": "<string>",
  "daily_limit": 123,
  "minute_limit": 123,
  "allowed_models": [
    "<string>"
  ],
  "balance": 123,
  "use_subs_first": true,
  "fallback_to_payg": true
}
'
{
  "data": [
    {
      "api_key_id": 123,
      "key": "<string>",
      "created_at": "<string>",
      "label": "<string>",
      "daily_limit": 123,
      "minute_limit": 123,
      "balance": 123,
      "usage_today": 123,
      "usage_minute": 123,
      "last_used_at": "<string>",
      "use_subs_first": true,
      "fallback_to_payg": true
    }
  ]
}
For a detailed walkthrough with examples, see the API Key Management guide.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

key_id
integer
required

Body

application/json
label
string | null
daily_limit
integer | null
minute_limit
integer | null
allowed_models
string[] | null
balance
number | null
use_subs_first
boolean | null
fallback_to_payg
boolean | null

Response

Successful Response

data
AccountKeyItem · object[]
required

A list of API keys.