Proxy Keys
Lookup Proxy Key
Retrieve metadata about a single proxy key you own
POST
Returns the full metadata for one of your proxy keys, identified by the
proxy_key field in the request body. This is the static-URL replacement for GET /v1/auth/proxy/{proxy_key}, designed so the URL can be exact-matched at the edge (Cloudflare, etc.) without being susceptible to path-traversal-append abuse.
The legacy GET /v1/auth/proxy/{proxy_key} still works for backward compatibility but is discouraged for new integrations.
Request Body
The proxy key to look up. Must be a string between 1 and 256 characters and must be a proxy key you own — cross-account lookups return
403 Forbidden.Response Fields
The human-readable name of the proxy key.
The proxy key value (starts with
ek-proxy-).The ID of the account that owns this proxy key.
Expiration timestamp in seconds since Unix epoch.
-1 means no expiration.Total credit amount allocated to this proxy key.
Amount of credits already used by this proxy key.
Whether the proxy key is currently active.
Model IDs this key can access. Empty array means all models.
IPs or CIDR blocks allowed to use this key. Empty array means all IPs.
Whether extended-thinking models are allowed on this proxy key.
Timestamp the proxy key was created.
Timestamp the proxy key was last used.
Error Responses
Unauthorized — missing, malformed, or invalid
Authorization header. JWT tokens are not accepted on this endpoint.Forbidden — the proxy key exists but is owned by a different account.
Not Found — no proxy key with that value exists.
Unprocessable Entity — the request body is missing
proxy_key or violates the length constraint (1 <= len <= 256).Rate Limited — too many requests, please slow down.
Notes
- Requires an API key (
ek-...) in theAuthorizationheader. JWT tokens are intentionally rejected. - Proxy keys themselves (
ek-proxy-...) cannot call this endpoint — only the parent account that owns the proxy key can read its metadata.
Authorizations
Enter your API key (starts with 'ek-')
Body
application/json
The proxy key to look up / toggle / delete (must be one you own)
Required string length:
1 - 256Example:
"ek-proxy-1234567890abcdef"
Response
Success
Name of the proxy key
Maximum string length:
25Expiration timestamp (-1 for no expiration)
Allocated credit amount
Required range:
x >= 0List of allowed models
List of allowed IP addresses or CIDR blocks
Amount of credits used
Whether the proxy key is active
The proxy key value
Creation timestamp
Last usage timestamp
