Truto API uses Bearer authorization. This form of authentication should be included in the header of every API request.
Generating API Token
Before you can authenticate your requests, you will first need to generate an API token. Follow the instructions outlined in our guide on creating API tokens:
After generating your API token, keep it safe and do not share it. This token is used to authenticate your requests and can provide access to your account if it is compromised.
Using the API Token
Once you have generated an API token, you can use it to authenticate your requests. The token should be included in the
Authorization header with the
Bearer keyword, like so:
Authorization: Bearer <your-api-token>
<your-api-token> with your actual API token.
Remember, all API requests must be made over HTTPS. Non-secure requests will fail.