Authentication

Valu8 API uses JWT authentication. You will need to generate an access token and provide it as an HTTP header with your requests. To generate an access token you need a valid username and password.

How do use authentication?

The endpoint /authentication will generate a access token and a refresh token. The expiration time for the access token is 90 days.

To generate an access token you will need a valid username and password.
You must include the access token in the HTTP header when making requests; otherwise, the server will return a 401 response code.

Refresh token are only used in the endpoint /authentication/refresh-token to renew the access token.

How to renew an access token?

To renew an access token , do a request to endpoint authentication/refresh-tokenand apply current accesstoken and refreshtoken. This will create a new access token that is valid for another 90 days. You might also directly create a new access token via endpoint /authentication.