Authentication
Send an API token in the Authorization header of every request to https://api.truto.one.
Authorization: Bearer <your-api-token>Create one under Settings → API Tokens (Creating API tokens). A token works only in the environment it was created in. Keep it secret: anyone who has it can call the API in that environment.
| Response | Cause |
|---|---|
401 The authentication token is invalid or has expired |
The header is missing, or the token is wrong, deleted or past its expiry. |
403 Access denied. Your IP address is not whitelisted for this API token. |
The token has Whitelisted IPs, and the call came from another address. |
Always use https://. A request to http:// is redirected to HTTPS, but the token has already been sent unencrypted, so rotate any token you sent that way.
curl https://api.truto.one/integrated-account \
-H "Authorization: Bearer $TRUTO_API_TOKEN"