> ## Documentation Index
> Fetch the complete documentation index at: https://documentation.idenfy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Transaction Monitoring API Test Mode

> Integrate the Transaction Monitoring API with test keys: test data runs through your real rules but never reaches live queues or billing.

The API key decides: **every request made with a test key is test data**. There is no separate sandbox host or test account.

> [!NOTE]
>
> A new account starts in **sandbox mode**, shown by a banner across the top of the dashboard. In sandbox mode every key you create is a test key, so everything you send is test data and is never billed. iDenfy switches the account to live monitoring once your contract is in place; after that you can create live keys alongside test keys.

## What test data does and does not do

| | Test data |
| - | - |
| Stored, and your rules check it | Yes, with the same outcome a live transaction would get |
| Opens alerts you can look at | Yes, marked as test |
| Webhooks | Delivered, with `"isTest": true` |
| Live alert queue, review deadlines and breaches | No |
| Email, Slack and other notifications | No |
| Workflows | No |
| Team metrics and management reports | No |
| Billed | No |

So you can run your full integration, including webhooks, against your real rules without your compliance team seeing it or being charged for it.

## Reading test data back

List endpoints return **live data only** by default, so test traffic cannot inflate what a reviewer reads. Add `is_test=true` to read test data, or send `is_test=` empty to get both.

```bash theme={"system"}
curl "https://ivs-tx-monitoring.idenfy.com/api/v1/ingest/transactions/?is_test=true" \
  -H "X-API-Key: $TM_TEST_KEY"
```

## The X-Test-Mode header

`X-Test-Mode: true` is accepted only with a test key, where it changes nothing. With a live key it is refused with `400` and nothing is stored: a live key cannot mark one request as test. `X-Test-Mode: false` is ignored.

> [!NOTE]
>
> Keep test and live keys in separate configuration (for example separate environments in your secret manager), and treat the switch to the live key as your go-live step.


## Related topics

- [Transaction Monitoring API](https://documentation.idenfy.com/transaction-monitoring/overview.md)
- [Transaction Monitoring API Quickstart](https://documentation.idenfy.com/transaction-monitoring/quickstart.md)
- [Transaction Monitoring Dashboard: API Keys](https://documentation.idenfy.com/guides/dashboard/transaction-monitoring/api-keys.md)
- [Transaction Monitoring API Limits and Expectations](https://documentation.idenfy.com/transaction-monitoring/limits-and-expectations.md)
- [Transaction Monitoring API Webhooks](https://documentation.idenfy.com/transaction-monitoring/webhooks.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.