Authorization header. You can find and manage your API keys in the AntifraudAI Dashboard. There are two types of keys — sandbox and production — each scoped to their respective environment.
Bearer Token Authentication
Pass your API key in theAuthorization header of every request using the Bearer scheme:
Sandbox vs. Production Keys
Sandbox and production keys are not interchangeable. Sending a
sk_test_ key to the production base URL — or vice versa — will return a 401 authentication_failed error.Authentication Errors
When authentication fails, the API returns a4xx HTTP status with a JSON error body. The two most common authentication errors are:
Example error response:

