# API Endpoints

## POST CRM Access

This endpoint allows access to a CRM collection by verifying permissions and generating API keys if necessary.

#### Example of request:

```
https://api.certhis.io/crm_access
```

{% tabs %}
{% tab title="REQUEST" %}
Query Parameters<br>

<table><thead><tr><th width="395">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><code>collection_index</code></td><td>(number): The index of the collection to access.</td></tr><tr><td><code>wallet</code></td><td>The wallet address to match.</td></tr><tr><td><code>signature</code></td><td>(string): The signature for verifying access.</td></tr><tr><td><code>ask</code></td><td>(number) (optional): If set to <code>1</code>, forces the generation of a new API key.</td></tr></tbody></table>
{% endtab %}
{% endtabs %}

## POST Wallet Management

Creates or updates a wallet based on the provided data.

#### Example of request:

```
https://api.certhis.io/wallet
```

{% tabs %}
{% tab title="REQUEST" %}
Query Parameters<br>

<table><thead><tr><th width="395">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>first_name</td><td>User's first name (optional, max length: 255)</td></tr><tr><td>last_name</td><td>User's last name (optional, max length: 255)</td></tr><tr><td>email</td><td>User's email (optional, validated)</td></tr><tr><td>wallet</td><td>User's wallet address (optional)</td></tr><tr><td>id</td><td>Wallet ID for update (optional)</td></tr></tbody></table>
{% endtab %}
{% endtabs %}

## POST Import Wallets from CSV

Imports wallets from a CSV file.

#### Example of request:

```
https://api.certhis.io/wallets_import
```

{% tabs %}
{% tab title="REQUEST" %}
Query Parameters<br>

<table><thead><tr><th width="395">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>file</td><td>CSV file containing wallet data.</td></tr></tbody></table>
{% endtab %}
{% endtabs %}

## GET Wallet Statistics

Retrieves the number of wallets in the database.

#### Example of request:

```
https://api.certhis.io/notification/send
```

## GET Wallet Information

Retrieves wallet information based on wallet address or ID

#### Example of request:

```
https://api.certhis.io/wallet
```

{% tabs %}
{% tab title="REQUEST" %}
Query Parameters<br>

<table><thead><tr><th width="395">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>wallet</td><td>Wallet address (optional)</td></tr><tr><td>id</td><td>Wallet ID (optional)</td></tr></tbody></table>
{% endtab %}
{% endtabs %}

## POST Delete Wallet

Imports wallets from a CSV file.

#### Example of request:

```
https://api.certhis.io/wallet_delete
```

{% tabs %}
{% tab title="REQUEST" %}
Query Parameters<br>

<table><thead><tr><th width="395">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>array_to_delete</td><td>Array of wallet IDs to delete.</td></tr></tbody></table>
{% endtab %}
{% endtabs %}

## POST NFT Management

Mint NFTs for Wallets

#### Example of request:

```
https://api.certhis.io/wallets_mint
```

{% tabs %}
{% tab title="REQUEST" %}
Query Parameters<br>

<table><thead><tr><th width="395">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>array_to_mint</td><td>Array of wallet IDs to mint NFTs for</td></tr></tbody></table>
{% endtab %}

{% tab title="RESPONSE" %}

```
{
    "status": true,
    "message": "task_sent with success",
    "data": [
        {
            "wallet_id": 10874,
            "task_id": 2859
        }
    ]
}
```

{% endtab %}
{% endtabs %}

## POST Wallets Tags Management

Creates a new tag for wallets.

#### Example of request:

```
https://api.certhis.io/wallets_tags
```

{% tabs %}
{% tab title="REQUEST" %}
Query Parameters<br>

<table><thead><tr><th width="395">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>Tag name (max length: 255).</td></tr><tr><td>color</td><td>Tag color (hex format).</td></tr></tbody></table>
{% endtab %}
{% endtabs %}

## GET Get Tags

Retrieves the list of tags

#### Example of request:

```
https://api.certhis.io/wallets_tags
```

## POST Edit Tag

Edits an existing tag.

#### Example of request:

```
https://api.certhis.io/wallets_tags_edit
```

{% tabs %}
{% tab title="REQUEST" %}
Query Parameters<br>

<table><thead><tr><th width="395">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>id</td><td>Tag ID</td></tr><tr><td>name</td><td>Tag name (max length: 255)</td></tr><tr><td>color</td><td>Tag color (hex format)</td></tr></tbody></table>
{% endtab %}
{% endtabs %}

## POST Delete Tag

Deletes an existing tag.

#### Example of request:

```
https://api.certhis.io/wallets_tags_delete
```

{% tabs %}
{% tab title="REQUEST" %}
Query Parameters<br>

<table><thead><tr><th width="395">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>id</td><td>Tag ID</td></tr></tbody></table>
{% endtab %}
{% endtabs %}

## GET Wallets List

Retrieves a list of wallets with optional search and filtering.

#### Example of request:

```
https://api.certhis.io/wallets
```

{% tabs %}
{% tab title="REQUEST" %}
Query Parameters<br>

<table><thead><tr><th width="395">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>search</td><td>Tag name (max length: 255).</td></tr><tr><td>type_pass</td><td>Tag color (hex format).</td></tr><tr><td>tag_id</td><td>Filter by tag ID (optional).</td></tr><tr><td>per_page</td><td>Number of results per page (optional, max: 1000).</td></tr><tr><td>page</td><td>Page number (optional).</td></tr></tbody></table>
{% endtab %}
{% endtabs %}

##
