To send requests to the Nova Post API, you need to generate a JWT token. It ensures proper authentication and authorization during the execution of requests.
How to generate a JWT token
- 1Send a request to the API method at the server: https://api.novapost.com/v.1.0/:
GET https://api.novapost.com/v.1.0/clients/authorization
The API key must be specified as an authentication parameter in the request. - 2The JWT token will be returned in the response to this request. Example response:
{
"jwt": "your-temporary-jwt-token"
} - 3Using the token in requests. This token must be used in all subsequent requests to the API. Add the active JWT token to the HTTP header of each request.
How to obtain an API key for token generation
How to refresh a token
The token is valid for 1 hour. After it expires, you need to make a new request to obtain a fresh token using the same API key.