Endpoint
Overview
Check whether an API key is valid, expired, or revoked. This is a common endpoint that can be used regardless of key type. We recommend calling this endpoint first to verify key validity when initializing your SDK or app.Request
Response
Valid Key
Invalid Key
If the key does not exist or is invalid, a401 error is returned:
Response Fields
| Field | Description | Notes |
|---|---|---|
status | Key status | active, expired, revoked |
key_type | Key type | client_sdk (SDK) or rest_api (Server) |
key_prefix | First 12 characters of the key (for identification) | - |
tenant_code | Tenant code | - |
created_at | Key creation timestamp | (UTC) |
expires_at | Expiration timestamp (null if permanent) | (UTC) |