# Search using Crypto

This endpoint allows you to search for Politically Exposed Entities using different query types e.g. Cryptocurrency wallets and assets (like aeroplanes and shipping vessels) etc.

## PEP Search using Crypto

<mark style="color:green;">`POST`</mark> `{{baseurl}}/v2/api/verifications/advanced/crypto/aml-checks`

#### Headers

| Name                                    | Type   | Description      |
| --------------------------------------- | ------ | ---------------- |
| token<mark style="color:red;">\*</mark> | String | API secret token |

#### Request Body

| Name                                               | Type    | Description                                                                        |
| -------------------------------------------------- | ------- | ---------------------------------------------------------------------------------- |
| query<mark style="color:red;">\*</mark>            | String  | Crypto ID of the the subject to query with                                         |
| isSubjectConsent<mark style="color:red;">\*</mark> | Boolean | Indicate subject has given consent. <mark style="color:red;">`Must be true`</mark> |
| type<mark style="color:red;">\*</mark>             | String  | Entity type can be <mark style="color:red;">`all`</mark>                           |

{% tabs %}
{% tab title="PEP Search using Crypto Sample Request" %}

```json
{
    "type": "all",
    "query": "1P7A3tqZTBXt8zfTfJPkiNZCRFJkUV5N9R",
    "isSubjectConsent": "true"
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="PEP Search using Crypto Sample Response" %}

```json
{
    "success": true,
    "statusCode": 200,
    "message": "success",
    "data": {
        "status": "review_required",
        "parentId": null,
        "isSubjectConsent": true,
        "type": "all",
        "sanctions": [],
        "pep": [],
        "crime": [
            {
                "title": [
                    "1P7A3tqZTBXt8zfTfJPkiNZCRFJkUV5N9R"
                ],
                "entityType": "CryptoWallet",
                "datasets": [
                    "ransomwhere"
                ],
                "alias": [
                    "Locky"
                ],
                "publicKey": [
                    "1P7A3tqZTBXt8zfTfJPkiNZCRFJkUV5N9R"
                ],
                "balance": [
                    "100000000.00"
                ],
                "amountUsd": [
                    "422.37"
                ],
                "currency": [
                    "bitcoin"
                ],
                "topics": [
                    "crime.theft"
                ]
            }
        ],
        "debarment": [],
        "financial_services": [],
        "government": [],
        "role": [],
        "religion": [],
        "military": [],
        "frozen_asset": [],
        "personOfInterest": [],
        "totalEntity": 1,
        "categoryCount": {
            "sanctions": 0,
            "pep": 0,
            "crime": 1,
            "debarment": 0,
            "financial_services": 0,
            "government": 0,
            "role": 0,
            "religion": 0,
            "military": 0,
            "frozen_asset": 0,
            "personOfInterest": 0
        },
        "queriedWith": "Crypto Id",
        "query": "1P7A3tqZTBXt8zfTfJPkiNZCRFJkUV5N9R",
        "businessId": "62b2e8b281442b03187f7896",
        "requestedAt": "2023-08-11T03:57:49.394Z",
        "requestedById": "62b2e8b381442b75857f7898",
        "createdAt": "2023-08-11T03:57:49.584Z",
        "lastModifiedAt": "2023-08-11T03:57:49.584Z",
        "_createdAt": "2023-08-11T04:57:4949+01:00",
        "_lastModifiedAt": "2023-08-11T04:57:4949+01:00",
       "id": "64d5c0119b0cdca3fbe26536",
        "requestedBy": {
            "firstName": "API",
            "lastName": "User",
            "middleName": "",
            "id": "628b38f03ae28a5a122d4bf3"
        }
    },
    "links": []
}
```

{% endtab %}
{% endtabs %}
