Skip to main content
POST
Validate API key
Validates an API key’s authentication and scopes.

Authentication

This endpoint uses API Key authentication via the X-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 key
  • 403 Forbidden: Key lacks required scopes

Authorizations

X-API-Key
string
header
required

API Key for authentication (format: sk_...)

Response

API key is valid and active