Validate API key
API Keys
Validate API Key
Test endpoint to validate API key authentication and scopes. Use X-API-Key header.
POST
Validate API key
Validates an API key’s authentication and scopes.
Authentication
This endpoint uses API Key authentication via theX-API-Key header (not Bearer token).
Use Cases
- Test if an API key is valid and active
- Verify key has required scopes
- Check key expiration status
- Validate before making actual API calls
Response
Returns validation details:- Whether the key is valid
- Key ID and name
- Organization ID
- Assigned scopes
- Expiration date
- Active status
Example
Error Responses
401 Unauthorized: Invalid or expired API key403 Forbidden: Key lacks required scopes
Authorizations
API Key for authentication (format: sk_...)
Response
API key is valid and active