> ## 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 Authentication

> Authenticate Transaction Monitoring API requests with a scoped API key in the X-API-Key header: test and live keys, permissions, expiry and rotation.

> [!WARNING]
>
> Transaction Monitoring does **not** use the Basic auth API key and secret from your iDenfy dashboard settings. It has its own keys, created in the Transaction Monitoring dashboard, sent in an `X-API-Key` header.

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

There is no other credential, no token exchange and no anonymous access. Call the API from your server only: a key in a browser or mobile app can be copied by anyone who has the app.

## Creating keys

Create keys under **Developer → API keys** in the Transaction Monitoring dashboard. The [API keys guide](https://documentation.idenfy.com/guides/dashboard/transaction-monitoring/api-keys.md) walks through the dialog.

| | Test key | Live key |
| - | - | - |
| **Data** | Every request is [test data](https://documentation.idenfy.com/transaction-monitoring/test-mode.md) | Live data, monitored and billed |
| **Viewing the key** | Can be viewed again at any time | Shown **once**, when created. Store it straight away; it cannot be retrieved later |
| **Use for** | Development, CI, rule experiments | Production |

When you create a key you choose:

* **Permissions.** Each key carries only the permissions you give it, for example ingest only, or ingest plus reading alerts. A request outside them is refused with `403`. Give a production ingest key nothing more than ingest.
* **Expiry (optional).** An expired key stops working at that moment.

## Permissions

Permissions are grouped the same way in the **Create API key** dialog. Leave every box unchecked and the key can do nothing.

| Group | Permissions | Covers |
| - | - | - |
| **Transactions** | View, Ingest, Edit, Delete | `/ingest/`, `/transactions/` |
| **Rules** | View, Create, Edit, Delete | `/rules/` |
| **Alerts** | View, Create, Edit, Delete | `/alerts/` and alert cases |
| **Investigations** | View, Create, Edit, Delete | `/investigations/` |
| **SAR** | View, Create, Edit, Delete, Approve or Reject, Submit to the regulator | `/sars/` |
| **Reference Lists** | View, Create, Edit, Delete | `/reference-lists/` |
| **Workflows** | View, Create, Edit, Delete | Automated compliance workflows |
| **Analytics** | View Compliance Analytics | `/reports/` |
| **Notifications** | View, Create, Edit, Delete | `/notification-rules/` |
| **Integrations** | View, Create, Edit, Delete | `/webhooks/`, `/custom-fields/` |
| **Access**, **Config** | Admin only | Users, roles, teams and partner configuration |

You can only grant a permission your own dashboard user holds. Approving a SAR and submitting it to the regulator are separate permissions from authoring one, so a key that drafts SARs cannot also approve them.

For a production ingest service, **Ingest Transactions** alone is enough. A service that also reads outcomes back needs **View Transactions**.

## Rotation and revocation

You can **rotate** a key: you get a replacement, and the old key keeps working for 24 hours so you can swap it without downtime. **Revoking** a key stops it immediately; do that if a key may have leaked.

## Authentication errors

| Status | `message` | What to do |
| - | - | - |
| `401` | `Invalid or revoked API key` | The key is wrong, revoked or expired. Check which key your service is loading |
| `401` | `Partner not found or inactive` | Your Transaction Monitoring account is suspended. Contact your account manager |
| `403` | Names the missing permission | The key is valid but not allowed to call this endpoint. Add the permission to the key |

See [Errors](https://documentation.idenfy.com/transaction-monitoring/errors.md) for the response format.


## Related topics

- [API Reference](https://documentation.idenfy.com/api-reference/overview.md)
- [Transaction Monitoring API](https://documentation.idenfy.com/transaction-monitoring/overview.md)
- [Transaction Monitoring API Webhooks](https://documentation.idenfy.com/transaction-monitoring/webhooks.md)
- [Transaction Monitoring Dashboard: API Keys](https://documentation.idenfy.com/guides/dashboard/transaction-monitoring/api-keys.md)
- [Transaction Monitoring API: Sending Transactions](https://documentation.idenfy.com/transaction-monitoring/ingest.md)


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