Validate Proxy Key Access
Validate if a proxy key can access a specific model from the current IP
Overview
Validate whether a proxy key can access a specific model from the current IP address. This endpoint is useful for pre-flight checks before making API requests, especially in applications that need to handle access restrictions gracefully.
Proxy Key Only: This endpoint only works with proxy keys (starting with ek-proxy-
). Regular API keys will receive a 400 error.
Request Body
The model ID to validate access for. If omitted, validates general proxy key access without model-specific checks.
Response Fields
Whether the proxy key has valid access (true
) or is restricted (false
)
Human-readable explanation of the validation result
Use Cases
Pre-flight Checks
Validate access before making expensive API calls
User Experience
Show users which models they can access
Error Prevention
Avoid authentication errors in production workflows
Access Auditing
Log and monitor access patterns and restrictions
Error Codes
Bad Request - Not a proxy key or invalid request format
Unauthorized - Invalid proxy key
Rate Limited - Too many validation requests
Authorizations
Enter your API key (starts with 'ek-')
Body
Response
Access validation result
The response is of type object
.