v1

latestOpenAPI 3.0.1MIT2026-07-26236440.2 KB

Update Proxy Key

Update an existing proxy key's configuration. Replaces the legacy POST /auth/proxy/update/{proxy_key}; the proxy key identifier is sent in the request body so the URL is static.

post/auth/proxy/update

Request body

proxy_keystring required

The proxy key to update (must be one you own)

namestring required

Name of the proxy key

expires_atinteger required

Expiration timestamp in seconds (-1 for no expiration)

allocated_ammountnumber required

Allocated credit amount

limit_type'daily' | 'weekly' | 'monthly'

Spend window for the allocation

model_whiteliststring[]

List of allowed models (empty for all models)

ip_whiteliststring[]

List of allowed IP addresses or CIDR blocks (empty for all IPs)

Example request

{
  "proxy_key": "ek-proxy-1234567890abcdef",
  "name": "Updated API Key",
  "expires_at": 1735689600,
  "allocated_ammount": 15,
  "model_whitelist": [
    "gpt-4o",
    "claude-3-5-sonnet-20241022"
  ],
  "ip_whitelist": [
    "192.168.1.0/24",
    "203.0.113.42"
  ]
}

Response

Proxy key updated successfully

messagestring

Example response

{
  "message": "Proxy key updated"
}