Authorization header and the platform handles the rest. This page explains how to get your key, use it correctly, rotate it when needed, and handle authentication errors in your integration.
Obtain your API key
FraudTrace AI keys are issued per organisation. To request access, contact the team through fraudtraceai.com. Once your account is provisioned you will receive a Bearer token in the format below:If you need a key for pre-production testing, ask for a sandbox token at the same time. Sandbox keys share the same authentication mechanism but return fixture data and do not count against your production quota.
Attach your key to every request
Pass your API key as a Bearer token in theAuthorization header on every HTTP request. No other authentication mechanism is supported.
Rotate your API key
Keys do not expire automatically, but you should rotate them if you suspect a compromise or as part of your regular credential hygiene process. To request a key rotation, contact the FraudTrace support team. Your old key remains valid for a short grace period after the new key is issued, giving you time to deploy the updated secret without downtime.Handle authentication errors
If your request is missing theAuthorization header, uses a malformed token, or presents a revoked key, the API returns an HTTP 401 Unauthorized response:
Keep your key secure
Your API key grants full access to your organisation’s FraudTrace account. Treat it with the same care as a database password.- Store it in environment variables — use your platform’s secrets manager (AWS Secrets Manager, GCP Secret Manager, HashiCorp Vault, or a
.envfile excluded from version control). - Never expose it client-side — do not embed your key in a mobile app, browser JavaScript bundle, or any asset that end users can inspect.
- Restrict access in your infrastructure — only the services that need to call the FraudTrace API should have access to the key.
- Audit usage regularly — if you notice unexpected call volumes, rotate your key immediately and contact FraudTrace support.