Skip to content

Request a bearer token

Request

Exchange your API key for a short-lived bearer token. The token expires every 15 minutes and must be used in the Authorization header for all subsequent requests.

Security
ApiKeyAuth
curl -i -X POST \
  https://docs.speedysticks.com/_mock/openapi/api/request-token \
  -H 'ApiKey: YOUR_API_KEY_HERE'

Responses

Token generated successfully

Bodyapplication/json
messagestring
Example:"Token generated successfully"
tokenstring

JWT bearer token valid for 15 minutes

Example:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9"
Response
{ "message": "Token generated successfully", "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9" }