Tokens
Generate an API Token
POST
Tokens are used to interact with the Flare API. They can be generated using an API key provided via the Authorization header.
API tokens expire after 1 hour.
The endpoint returns an API token via the response body, but also via cookies which can then be used in future HTTP requests.
For more information about authentication, see the API Authentication Guide .
Auth Headers
Your Flare API key.
Parameters
The tenant you want to authenticate to.
When unspecified, the API token will be generated for your default tenant.
Response Fields
The generated API token.
Unix timestamp of the expiration of the refresh token.
(The refresh token is returned in cookies).
Was this page helpful?