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

# Retrieve AML Profile

> Retrieve AML screening results and matched profiles for a completed check via the iDenfy API, including sanctions and PEP hit details.

<Note>
  **Requirements**

  * **API** key pair
  * A previous [AML check](/aml/create-profile) that returned profiles
</Note>

## AML Check Flow — Retrieve Profile

<Frame>
  <img src="https://mintcdn.com/idenfy/RiTtnFM9jz4M_Y-0/images/aml/Documentation_Flowcharts-AML.drawio.png?fit=max&auto=format&n=RiTtnFM9jz4M_Y-0&q=85&s=f47bfaeb3a1736a6b5c126405d45651d" alt="AML check and profile flow" width="1000" data-path="images/aml/Documentation_Flowcharts-AML.drawio.png" />
</Frame>

<Tip>
  For definitions of match types, datasets, and result fields, see [AML Key Terms and Concepts](/guides/dashboard/aml/aml-key-terms-concepts).
</Tip>

<Warning>
  Information inside profiles is not filtered by check filters. Profile information will contain all conditions and data regardless of the filters applied during the check.
</Warning>

## Retrieve Profile

<Info>
  For full request and response schemas, see the [**API Reference**](/api-reference/aml-checks/retrieve-aml-check-profile).
</Info>

Use the profile retrieval endpoint to get detailed information about a matched AML profile, including all associated sanctions, PEP entries, and adverse media records.

```
GET https://ivs.idenfy.com/aml/checks/{id}/profiles/{profileId}/
Authorization: Basic {base64(apiKey:apiSecret)}
```

### Path Parameters

| Parameter   | Description                                                                              |
| ----------- | ---------------------------------------------------------------------------------------- |
| `id`        | UUID of the AML check — the `id` returned by [`POST /aml/checks/`](/aml/create-profile). |
| `profileId` | The `resourceId` of the match you want to expand, taken from the check response.         |

Every match in the check response carries its own `resourceId`:

```json theme={"system"}
{
  "id": "0a1b2c3d-4e5f-6789-abcd-ef0123456789",
  "userType": "PERSON",
  "amlCheck": [
    {
      "resourceId": "1a2b3c4d5e6f7890",
      "name": "Manfred Weber",
      "score": 92,
      "datasets": ["SAN_CURRENT", "PEP_CURRENT"]
    }
  ]
}
```

Treat `resourceId` as an opaque string and copy it verbatim — do not parse or construct it. Matches also appear in the `adverseMedia` array, and those `resourceId` values work the same way.

### Response

The response shape depends on the `userType` of the original check: a person check returns an individual profile, a company check returns a business profile. Both share the following fields.

| Field                                      | Description                                                                                                                  |
| ------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------- |
| `resourceId`                               | Identifier of this profile. Also used to [generate a profile PDF](/api-reference/aml-checks/generate-aml-check-profile-pdf). |
| `version`                                  | Increments whenever iDenfy's research team edits the profile.                                                                |
| `isDeleted` / `deletionReason`             | Whether the profile was withdrawn from the database, and why.                                                                |
| `datasets`                                 | Datasets this profile belongs to, e.g. `SAN_CURRENT`, `PEP_FORMER`, `RRE`.                                                   |
| `sanEntries`                               | Sanctions, split into `current` and `former`.                                                                                |
| `pepEntries`                               | PEP listings, split into `current` and `former`, with the overall `pepTier`.                                                 |
| `rreEntries`                               | Adverse media — Reputational Risk Exposure.                                                                                  |
| `relEntries`                               | Regulatory enforcement actions.                                                                                              |
| `poiEntries` / `insEntries` / `griEntries` | Profiles of Interest, Insolvency Register, and Gambling Risk Intelligence entries.                                           |
| `evidences`                                | Source documents and articles behind the entries.                                                                            |
| `individualLinks` / `businessLinks`        | Related people and companies connected to this profile.                                                                      |

Individual profiles add `firstName`, `lastName`, `datesOfBirth`, `nationalities`, `isDeceased`, `ddEntries` (Disqualified Directors), and `pepByAssociationEntries`. Business profiles add `name`, `businessTypes`, `activities`, and `soeEntry` (State-Owned Enterprise).

<Note>
  Store `version` alongside your review decision. A changed `version` means the underlying record was updated and the match may need re-review, even if nothing about your own check has changed.
</Note>

## Next Steps

<CardGroup cols={2}>
  <Card title="Profile PDF" icon="file-pdf" href="/api-reference/aml-checks/generate-aml-check-profile-pdf">
    Generate a compliance-ready PDF for a single matched profile.
  </Card>

  <Card title="Ongoing Monitoring" icon="eye" href="/aml/monitoring-create">
    Enroll the subject for daily re-screening with alerts.
  </Card>
</CardGroup>


## Related topics

- [AML Migration Guide](/aml/migration-guide.md)
- [Retrieve AML check profile](/api-reference/aml-checks/retrieve-aml-check-profile.md)
- [Retrieve AML monitoring](/api-reference/aml-monitorings/retrieve-aml-monitoring.md)
- [AML Profiles](/guides/dashboard/aml/aml-profiles.md)
- [Create AML Profile](/aml/create-profile.md)
