v1
latestOpenAPI 3.1.02026-07-13212942.9 KBTokens
Verify Token
Verify an API key and return the associated token record.
Only sk-prefixed (single-use) tokens are supported. The raw key is hashed and looked up in the database; the hash stored in the record must match to prevent token enumeration.
Args: api_key: Raw API key supplied as a query parameter. token_service: Injected token service for database look-ups.
Returns: TokenOut: Validated token record.
Raises: InvalidAPIKey: When the key prefix is unrecognised, the token is not found, or the stored hash does not match.
get/tokens/verify
Query parameters
api_keystring required
Response
Successful Response
{"stackTrail":"paths:/tokens/verify:get:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}