Authentication
Last updated
Last updated
To ensure secure access, all requests to the Subscription API require an Authorization token. This token is unique for each subscription and must be included in the header of every API call. Here's how to authenticate your requests:
After you create a subscription in the Flash web app, a unique Subscription API token is automatically generated. You can always retrieve this token from the subscription edit screen. Make sure not to confuse this with the global API token—each subscription has its own token.
For every API request, the token must be included in the Authorization header, formatted as follows:
Make sure to replace <Your-Subscription-API-Token>
with the actual token you've obtained from the Flash web app.
Token Example
Here’s an example of how to structure your Authorization header in a typical API request:
If the token is missing or invalid, you will receive a 401 Unauthorized
error.
For expired tokens, you will get a Token has expired
message.
401 Unauthorized: Occurs when the token is invalid, missing, or expired.
Invalid Token Format: Ensure that the token is sent as Bearer <token>
and is properly formatted.
Never share your Subscription API token publicly.
Make sure to use the correct subscription token for each individual subscription.