If successful, the response will contain your token:{"token":"YOUR_VERY_LONG_TOKEN"}

The token has a lifetime of about an hour. If the JWT-token is invalid, such as if the token has expired, a 401 status code will be returned. You should therefore implement a way of automatically getting a new token every time you receive a 401 status code from any API call.

Warning

The JWT-token has a lifetime of about an hour.

Using your token

When you have your token you need to pass it to the Authorization HTTP header with the value Bearer YOUR_VERY_LONG_TOKEN on each API call.