Login
Last updated
Was this helpful?
Last updated
Was this helpful?
With auth enabled, you have to retrieve a JWT token before you can access the API calls.
Send the username and password, as defined in and , in the body of the request to the /api/login
endpoint in order to obtain valid access and refresh JWT.
Example:
On successful login, the response looks like this:
Use the access_token
in all subsequent calls to the /api/v3/
endpoints, e.g.
The expiry date is stored in the payload of the access token exp
field, or the seconds until it expires is stored in the field exi
.
In order to obtain a new access token, use the refresh_token
for a call to /api/login/refresh
:
After the refresh token expires, you have to login again with your username and password.
Description:
Example:
In order to obtain a new access token, use the refresh_token
for a call to /api/login/refresh
. Example:
On successful login, the response looks like this:
Once the refresh token expires, you have to login again with your username and password, or a valid Auth0 token.
Description:
Send a valid Auth0 access JWT in the Authorization
header to the /api/login
endpoint in order to obtain an access and refresh JWT. The Auth0 tenant and the allowed users must be defined in the .
Retrieve valid JWT access and refresh tokens to use for accessing the API. Login either by username/password or Auth0 token
Retrieve valid JWT access and refresh tokens to use for accessing the API. Login either by username/password or Auth0 token