Skip to main content
POST
Identify the key with body field proxy_key. Legacy POST /v1/auth/proxy/update/ still works but is discouraged.

Authorizations

Authorization
string
header
required

Enter your API key (starts with 'ek-')

Body

application/json
proxy_key
string
required

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

Required string length: 1 - 256
Example:

"ek-proxy-1234567890abcdef"

name
string
required

Name of the proxy key

Maximum string length: 25
Example:

"Updated API Key"

expires_at
integer
required

Expiration timestamp in seconds (-1 for no expiration)

Example:

1735689600

allocated_ammount
number
required

Allocated credit amount

Required range: x >= 0
Example:

15

limit_type
enum<string>
default:daily

Spend window for the allocation

Available options:
daily,
weekly,
monthly
model_whitelist
string[]

List of allowed models (empty for all models)

Example:
ip_whitelist
string[]

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

Example:

Response

Proxy key updated successfully

message
string
Example:

"Proxy key updated"