Tokens
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
Request
- Base URLhttps://api.async.com (the document declares no server; this is the origin it was published from)
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
api_keystring required
Response
Successful Response
unknown required
Changes
No recorded changes to this operation across all 1 revision of this API.