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

# Search alerts

> Searches for alerts that match the input.

## Body parameters

**assigned\_to\_member\_id** `integer`

**categories** `string[]`

Possible values: "pep" | "rca" | "sip" | "sie" | "rca\_pep" | "rca\_sip" | "rca\_sie"

**creation\_date\_from** `string`

Format 2022-10-11T00:00:00+02:00

**creation\_date\_to** `string`

Format 2022-10-11T00:00:00+02:00

**external\_id** `string`

**id** `string`

**last\_update\_from** `string`

Format 2022-10-11T00:00:00+02:00

**last\_update\_to** `string`

Format 2022-10-11T00:00:00+02:00

**limit** `integer`

**name** `string`

**offset** `integer`

**only\_without\_assignment** `boolean`

**only\_without\_review\_groups** `boolean`

**order\_by** `AlertSearchDTOOrderBy`

**properties**

**order\_way** `AlertSearchDTOOrderWay`

**properties**

**review\_groups** `string[]`

**sanction\_list\_id** `integer`

**sanction\_list\_str** `string`

**score\_from** `integer`

**score\_to** `integer`

**states** `integer[]`

Possible states: 1 (Unknown), 2 (New), 3 (Pending Information), 4 (True Hit), 5 (True Hit Accepted), 6 (True Hit Rejected), 7 (False Positive)

## Response body

> [tab] 200
>
> **data** `AlertWithLastRevision[]`
>
> **properties**
>
> **created\_at** `string`
>
> **customer\_external\_id** `string`
>
> **id** `string`
>
> **last\_revision** `AlertRevision`
>
> **properties**
>
> **agent\_id** `string`
>
> **comment** `string`
>
> **created\_at** `string`
>
> **customer\_revision\_id** `string`
>
> **id** `string`
>
> **profile\_date** `integer`
>
> **revision\_number** `integer`
>
> **score** `integer`
>
> Overall match score between 0 and 100
>
> **state** `integer`
>
> **top\_category** `string`
>
> PEP, SAN, SIP, RCA\_SIP, etc
>
> **profile\_number** `string`
>
> **total** `integer`

> [tab] default
>
> unexpected error
>
> **errors** `APIError[]`
>
> Will contain both "v1" (deprecated, or soon to be) errors and "v2" errors. When possible, prefer errors that are not deprecated.
>
> **properties**
>
> **code** `string`
>
> **deprecated** `boolean`
>
> **message** `string`
>
> **will\_be\_deprecated** `boolean`

```json JSON
{
  "assigned_to_member_id": "integer",
  "categories": [
    "string"
  ],
  "creation_date_from": "string",
  "creation_date_to": "string",
  "external_id": "string",
  "id": "string",
  "last_update_from": "string",
  "last_update_to": "string",
  "limit": "integer",
  "name": "string",
  "offset": "integer",
  "only_without_assignment": "boolean",
  "only_without_review_groups": "boolean",
  "order_by": {},
  "order_way": {},
  "review_groups": [
    "string"
  ],
  "sanction_list_id": "integer",
  "sanction_list_str": "string",
  "score_from": "integer",
  "score_to": "integer",
  "states": [
    "integer"
  ]
}
```

```javascript JavaScript

  const response = await fetch(
    "POST /api/v1/alerts/search",
    {
      method: "post",
      headers: {
        "Content-Type": "application/json",
        "Authorization": `Bearer {token}`
      },
      body: JSON.stringify({
  "assigned_to_member_id": "integer",
  "categories": [
    "string"
  ],
  "creation_date_from": "string",
  "creation_date_to": "string",
  "external_id": "string",
  "id": "string",
  "last_update_from": "string",
  "last_update_to": "string",
  "limit": "integer",
  "name": "string",
  "offset": "integer",
  "only_without_assignment": "boolean",
  "only_without_review_groups": "boolean",
  "order_by": {},
  "order_way": {},
  "review_groups": [
    "string"
  ],
  "sanction_list_id": "integer",
  "sanction_list_str": "string",
  "score_from": "integer",
  "score_to": "integer",
  "states": [
    "integer"
  ]
})
    }
  );
            
          
```

```json 200
{
  "data": [
    {
      "created_at": "string",
      "customer_external_id": "string",
      "id": "string",
      "last_revision": {
        "agent_id": "string",
        "comment": "string",
        "created_at": "string",
        "customer_revision_id": "string",
        "id": "string",
        "profile_date": "integer",
        "revision_number": "integer",
        "score": "integer",
        "state": "integer",
        "top_category": "string"
      },
      "profile_number": "string"
    }
  ],
  "total": "integer"
}
```

```json default
{
  "errors": [
    {
      "code": "string",
      "deprecated": "boolean",
      "message": "string",
      "will_be_deprecated": "boolean"
    }
  ]
}
```



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