The Claimable API uses API tokens to authenticate each request.
The Claimable API uses the HTTP Bearer method of authentication. Therefore every request needs the following header:
Authorization: Bearer {{YOUR_API_TOKEN}}
Need an API Token?
If you don't already have an API token, visit the Getting an API Token section to get started.
401 Unauthorized Error
If authentication fails, the API will return a 401 Unauthorized error with the message: "Invalid or revoked API token!"
To solve this, try the following steps:
- Check your API Token is valid.
- Check your
Authorization
header is formatted correctly (see above).- Issue a new API Token and try again.