> ## 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: Alerts, Investigations and SARs

> Work Transaction Monitoring alerts, investigations and suspicious activity reports through the API when case management lives in your own tools.

Most teams work alerts in the [Transaction Monitoring dashboard](https://documentation.idenfy.com/guides/dashboard/transaction-monitoring/alerts.md) and need only [ingest](https://documentation.idenfy.com/transaction-monitoring/ingest.md) and [webhooks](https://documentation.idenfy.com/transaction-monitoring/webhooks.md). Use these endpoints if your case management lives in your own tools, or to report on it.

> [!NOTE]
>
> The API key needs the matching permissions, for example reading and editing alerts. A request without them returns `403` naming the missing permission.

```mermaid theme={"system"}
%%{init: {'theme': 'base', 'themeVariables': {'fontFamily': 'Inter, sans-serif', 'fontSize': '11px', 'primaryColor': '#734BFB', 'primaryTextColor': '#ffffff', 'primaryBorderColor': '#5A2FE0', 'lineColor': '#9B7BFC', 'edgeLabelBackground': '#5A2FE0', 'edgeTextColor': '#ffffff'}}}%%
flowchart LR
    A("`Rule match
alert`") --> B("`Case
one per transaction`")
    B -->|close| X("`Closed
release or block payment`")
    B -->|escalate| C("`Investigation
L2 then L3 review`")
    C -->|resolve| Y("`Resolved
no SAR`")
    C -->|"SAR decision"| D("`SAR
draft, review, approve`")
    D --> E("`Handed over
webhook to your systems`")
    E --> F("`You file with FIU
report filing result`")
```

## Alerts

A rule match on a transaction opens an **alert**. All the alerts on one transaction form a **case**, and decisions are taken on the case, never on a single rule hit. Case endpoints are keyed by the transaction id.

| Do this | Endpoint |
| - | - |
| List the queue, one row per transaction | `GET /api/v1/alerts/groups/` |
| Read a case with its alerts | `GET /api/v1/alerts/groups/{transactionId}/` |
| Assign it to a person or a team | `POST …/assign/`, `POST …/assign-team/` |
| Escalate it, or ask the customer for information | `POST …/escalate/`, `POST …/request-info/` |
| Close it with a reason and an outcome | `POST …/close/` |
| Reopen it | `POST …/reopen/` |
| See the customer's history | `GET …/customer-context/`, `GET …/transaction-history/` |

Closing a case can also decide the payment: send `transactionDecision` to release or block it. That needs the transaction-edit permission as well, and your systems hear about it through `transaction.status_changed`. Closing without it leaves the payment's status as it is.

Each alert has a **review deadline** (`slaDeadline`) set by its severity tier.

## Investigations

An **investigation** groups one or more alerts into a case that needs deeper work. It moves through levels of review (L2, L3) and ends either resolved or with a decision to file a SAR.

| Do this | Endpoint |
| - | - |
| Open one, list them | `POST /api/v1/investigations/`, `GET /api/v1/investigations/` |
| Add or remove alerts | `POST` / `DELETE /api/v1/investigations/{id}/alerts/{alertId}/` |
| Add evidence files and notes | `POST …/attachments/`, `POST …/notes/` |
| Escalate, de-escalate, reassign | `POST …/escalate/`, `POST …/escalate-to-l3/`, `POST …/de-escalate/`, `POST …/reassign/` |
| Record the SAR decision, resolve it | `POST …/sar-decision/`, `POST …/resolve/` |
| Read its full history | `GET …/timeline/` |

## Suspicious activity reports (SARs)

A **SAR** is drafted from an investigation, reviewed, approved and then **filed by you** on your FIU's own channel (goAML, FinCEN BSA E-Filing and others). iDenfy prepares the report and its evidence; it does not transmit it to the regulator.

**1. Draft, review, approve**

In the dashboard, or `POST /api/v1/sars/`, then `submit-for-review/` and `approve/`. `GET …/completeness/` lists what is still missing for the jurisdiction.

**2. Hand it over**

`POST /api/v1/sars/{id}/submit/` moves it to `SUBMITTED` and keeps the exact copy handed over. The `sar.ready_for_filing` webhook fires.

**3. File it**

Download the report XML with `GET …/export/`, or the report plus all its evidence as one zip with `GET …/handover-package/` (the shape a goAML portal accepts). File it with your FIU.

**4. Report the regulator's answer**

`POST /api/v1/sars/{id}/filing-result/` with `accepted: true` and the regulator's reference, or `accepted: false` and its error text. A refused report moves to `FILING_REJECTED` and can be reopened, corrected and filed again. Retrying an acceptance with the same reference is safe.

> [!WARNING]
>
> A SAR has a legal deadline. Do not rely on the webhook alone: list `GET /api/v1/sars/?status=SUBMITTED` regularly and file anything not yet filed.

## Screening and monitoring parties

| Do this | Endpoint |
| - | - |
| Screen one name against sanctions, watchlists and PEP lists now | `POST /api/v1/sanctions/screen/` |
| See the screenings made on a transaction's parties | `GET /api/v1/sanctions/transaction/{transactionId}/` |
| Keep a party under daily sanctions, PEP and adverse media monitoring | `POST /api/v1/aml-monitoring/` |
| Re-check now, or whitelist one category of match | `POST /api/v1/aml-monitoring/{id}/refresh/`, `POST …/whitelist/` |
| Suspend or lift a party, so their new transactions are refused | `POST /api/v1/party-suspensions/`, `POST …/{id}/lift/` |

## Rules

Rules are usually built in the dashboard, which includes a rule library and an AI rule builder. Through the API you can create and update them (`/api/v1/rules/`; an invalid condition is refused with `400` naming the problem), check one against sample data before activating it (`POST …/{id}/test/`), and `activate/`, `deactivate/` or `archive/` it. Every change is kept in the rule's history.


## Related topics

- [Transaction Monitoring API](https://documentation.idenfy.com/transaction-monitoring/overview.md)
- [Transaction Monitoring Dashboard: Alert Queue](https://documentation.idenfy.com/guides/dashboard/transaction-monitoring/alerts.md)
- [Transaction Monitoring API Authentication](https://documentation.idenfy.com/transaction-monitoring/authentication.md)
- [Transaction Monitoring Dashboard: Investigations](https://documentation.idenfy.com/guides/dashboard/transaction-monitoring/investigations.md)
- [Transaction Monitoring Dashboard: API Keys](https://documentation.idenfy.com/guides/dashboard/transaction-monitoring/api-keys.md)


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