Request Token
Exchange an API key for a short-lived access token.
POST https://api.reson8.dev/v1/auth/token
Request
| Header |
Value |
Description |
| Authorization |
ApiKey <api_key> |
Your API key |
Example
Response
200 OK
Fields
| Field |
Type |
Description |
access_token |
string |
The token to use in Authorization header |
token_type |
string |
Always Bearer |
expires_in |
number |
Token lifetime in seconds |
Example
{
"access_token": "<your_access_token>",
"token_type": "Bearer",
"expires_in": 600
}
Errors
| Status |
Code |
Description |
| 401 |
UNAUTHORIZED |
Missing or invalid API key |
| 500 |
INTERNAL_ERROR |
Unexpected server error |