Authentication
The cargopanel API uses token-based authentication to access its services. To use the API, you must first obtain an access token and add it to the header of all API requests.
How to Obtain Your Credentials
Your clientKey and clientSecret are provided to you after registration and the contract process have been completed.
If you do not have these credentials or have lost access, please contact your account manager or the cargopanel support team.
Obtaining a Token
https://api.cargopanel.co/auth/tokenhttps://sandbox-api.cargopanel.co/auth/tokenTo obtain an access token, send a request to the endpoint above. In this request, you must pass your clientKey and clientSecret in the request headers.
Header fields you must use:
x-client-key: YOUR_CLIENT_KEY
x-client-secret: YOUR_CLIENT_SECRET
Issued access tokens are valid for 1 hour. When they expire, you must create a new token using the same method.
Instead of creating a new token for every request, you should reuse your access token until it expires.
Using the Token
All API requests must include the following header:
Authorization: Bearer YOUR_ACCESS_TOKEN