Authorization & API Version
The API can only be accessed with a valid API token which needs to be passed along requests using the Authorization header. The token can be found in the sanctions.io user portal.
You can test your integration for free using this Sandbox token ded11a1cbd164242b6bb28c51f1dad5f (Please note that this token only provides access to Sandbox data)
For the time being the token can also be sent in the URL parameters. Please note that this is less secure and hence we encourage you to use the Authorization header.
The desired API version needs to be passed on using the Accept header. Without the Accept header, API version 1.0 will be used by default. Our most current API version is 2.1 (November 2022).
Please note that the default API version will be changed to version 2.1 in January 2023! Hence we strongly advise defining the API version in the header to make sure the upcoming change won't impact your production systems!
The header should be sent in the following format: