API Key Format
All requests require anx-api-key header with a valid API key.
Using your API key
Include the key in every request:Sandbox vs Production
| Key prefix | Mode | Behavior |
|---|---|---|
sk_test_ | Sandbox | Data is created normally. Metro 2 files are generated but never uploaded to bureaus. Simulated bureau responses are returned. |
sk_live_ | Production | Full pipeline: data → Metro 2 → SFTP upload → bureau processing → webhook notifications. |
Use sandbox keys during development and integration testing. Webhooks fire normally in both modes.
Authentication Errors
| Scenario | Error Code | HTTP Status |
|---|---|---|
Missing x-api-key header | AUTHENTICATION_ERROR | 401 |
| Invalid key format | AUTHENTICATION_ERROR | 401 |
| Key not found or hash mismatch | AUTHENTICATION_ERROR | 401 |
| Partner account suspended | AUTHORIZATION_ERROR | 403 |
| Key environment mismatch | AUTHENTICATION_ERROR | 401 |
Example error response