# API Endpoints

## POST Create/Retrieve Access

#### Example of request:

```
https://dynamic-api.certhis.io/collection_access
```

{% 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>User's wallet address.</td></tr><tr><td>signature</td><td>Signature for authentication.</td></tr><tr><td>ask</td><td>Integer (0 for create/read, 1 for re-create).</td></tr><tr><td>collection_index</td><td>Index of the collection (optional).</td></tr></tbody></table>
{% endtab %}

{% tab title="RESPONSE" %}
Sample response

```
{
    "status": true,
    "message": "get",
    "data": {
        "api_key": "API_KEY_VALUE",
        "api_pass": "API_PASS_VALUE",
        "folder": "l3d5gmof3zcyuuukb82aetuyve-32"
    }
}
```

{% endtab %}
{% endtabs %}

## POST Create/Update NFT

#### Example of request:

```
https://dynamic-api.certhis.io/nft
```

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

<table><thead><tr><th width="319">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>template_id</td><td>ID of the template used for the NFT</td></tr><tr><td>name</td><td>Name of the NFT</td></tr><tr><td>description</td><td>Description of the NFT</td></tr><tr><td>attributes</td><td>JSON of NFT attributes</td></tr><tr><td>media_activate</td><td>Flag to activate media (1 to activate)</td></tr><tr><td>general_activate</td><td>Flag to activate general settings (1 to activate)</td></tr><tr><td>price_template</td><td>ID of the price template (optional)</td></tr><tr><td>sellable_activate</td><td>Flag to mark as sellable (1 to activate)</td></tr><tr><td>currency</td><td>Currency for pricing</td></tr><tr><td>chain_id</td><td>Blockchain ID</td></tr><tr><td>amount</td><td>Amount for pricing</td></tr></tbody></table>

{% endtab %}

{% tab title="RESPONSE" %}
Sample response

```
{"status":true,"message":"success","data":[1604]}
```

{% endtab %}
{% endtabs %}

## GET List NFTs

#### Example of request:

```
https://dynamic-api.certhis.io/nft
```

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

<table><thead><tr><th width="267">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>page</td><td>User's wallet address.</td></tr><tr><td>per_page</td><td>Signature for authentication.</td></tr><tr><td>search</td><td>Integer (0 for create/read, 1 for re-create).</td></tr><tr><td>template_id</td><td>Index of the collection (optional).</td></tr></tbody></table>
{% endtab %}

{% tab title="RESPONSE" %}
Sample response

```
{
    "status": true,
    "draw": 2,
    "recordsTotal": 1604,
    "recordsFiltered": 106,
    "message": "get",
    "data": [
        {
            "id": 182714,
            "collection_index": 1488,
            "nft_id": 1603,
            "template_id": 45,
            "amount": null,
            "currency_symbol": null,
            "currency": null,
            "name": "SantaBikerz2",
            "description": "",
            "image": null,
            "decimal": null,
            "media_activate": null,
            "attribute_activate": null,
            "sellable_activate": null,
            "price_template": 1,
            "royalties": null,
            "general_activate": 0,
            "animation_url": null,
            "template_name": "SantaBikerz2",
            "price": "",
            "template_image": "https://utility-apps-assets.certhis.io/upload/2023/12/26/4aa42de0-a3f6-11ee-968e-55d99e7401cf.png",
            "attributes_nft": [],
            "attributes_templates": [],
            "url_media": "https://utility-apps-assets.certhis.io/upload/2023/12/26/4aa42de0-a3f6-11ee-968e-55d99e7401cf.png"
        },
        {
            "id": 182713,
            "collection_index": 1488,
            "nft_id": 1602,
            "template_id": 45,
            "amount": null,
            "currency_symbol": null,
            "currency": null,
            "name": "SantaBikerz2",
            "description": "",
            "image": null,
            "decimal": null,
            "media_activate": null,
            "attribute_activate": null,
            "sellable_activate": null,
            "price_template": 1,
            "royalties": null,
            "general_activate": 0,
            "animation_url": null,
            "template_name": "SantaBikerz2",
            "price": "",
            "template_image": "https://utility-apps-assets.certhis.io/upload/2023/12/26/4aa42de0-a3f6-11ee-968e-55d99e7401cf.png",
            "attributes_nft": [],
            "attributes_templates": [],
            "url_media": "https://utility-apps-assets.certhis.io/upload/2023/12/26/4aa42de0-a3f6-11ee-968e-55d99e7401cf.png"
        },
        {
            "id": 182712,
            "collection_index": 1488,
            "nft_id": 1601,
            "template_id": 45,
            "amount": null,
            "currency_symbol": null,
            "currency": null,
            "name": "SantaBikerz2",
            "description": "",
            "image": null,
            "decimal": null,
            "media_activate": null,
            "attribute_activate": null,
            "sellable_activate": null,
            "price_template": 1,
            "royalties": null,
            "general_activate": 0,
            "animation_url": null,
            "template_name": "SantaBikerz2",
            "price": "",
            "template_image": "https://utility-apps-assets.certhis.io/upload/2023/12/26/4aa42de0-a3f6-11ee-968e-55d99e7401cf.png",
            "attributes_nft": [],
            "attributes_templates": [],
            "url_media": "https://utility-apps-assets.certhis.io/upload/2023/12/26/4aa42de0-a3f6-11ee-968e-55d99e7401cf.png"
        },
        {
            "id": 182711,
            "collection_index": 1488,
            "nft_id": 1600,
            "template_id": 45,
            "amount": null,
            "currency_symbol": null,
            "currency": null,
            "name": "SantaBikerz2",
            "description": "",
            "image": null,
            "decimal": null,
            "media_activate": null,
            "attribute_activate": null,
            "sellable_activate": null,
            "price_template": 1,
            "royalties": null,
            "general_activate": 0,
            "animation_url": null,
            "template_name": "SantaBikerz2",
            "price": "",
            "template_image": "https://utility-apps-assets.certhis.io/upload/2023/12/26/4aa42de0-a3f6-11ee-968e-55d99e7401cf.png",
            "attributes_nft": [],
            "attributes_templates": [],
            "url_media": "https://utility-apps-assets.certhis.io/upload/2023/12/26/4aa42de0-a3f6-11ee-968e-55d99e7401cf.png"
        },
        {
            "id": 182603,
            "collection_index": 1488,
            "nft_id": 1599,
            "template_id": 45,
            "amount": null,
            "currency_symbol": null,
            "currency": null,
            "name": "SantaBikerz2",
            "description": "",
            "image": null,
            "decimal": null,
            "media_activate": null,
            "attribute_activate": null,
            "sellable_activate": null,
            "price_template": 1,
            "royalties": null,
            "general_activate": 1,
            "animation_url": null,
            "template_name": "SantaBikerz2",
            "price": "",
            "template_image": "https://utility-apps-assets.certhis.io/upload/2023/12/26/4aa42de0-a3f6-11ee-968e-55d99e7401cf.png",
            "attributes_nft": [],
            "attributes_templates": [],
            "url_media": "https://utility-apps-assets.certhis.io/upload/2023/12/26/4aa42de0-a3f6-11ee-968e-55d99e7401cf.png"
        },
        {
            "id": 182602,
            "collection_index": 1488,
            "nft_id": 1596,
            "template_id": 45,
            "amount": null,
            "currency_symbol": null,
            "currency": null,
            "name": "SantaBikerz2",
            "description": "",
            "image": null,
            "decimal": null,
            "media_activate": null,
            "attribute_activate": null,
            "sellable_activate": null,
            "price_template": 1,
            "royalties": null,
            "general_activate": 1,
            "animation_url": null,
            "template_name": "SantaBikerz2",
            "price": "",
            "template_image": "https://utility-apps-assets.certhis.io/upload/2023/12/26/4aa42de0-a3f6-11ee-968e-55d99e7401cf.png",
            "attributes_nft": [],
            "attributes_templates": [],
            "url_media": "https://utility-apps-assets.certhis.io/upload/2023/12/26/4aa42de0-a3f6-11ee-968e-55d99e7401cf.png"
        },
        {
            "id": 182601,
            "collection_index": 1488,
            "nft_id": 1595,
            "template_id": 45,
            "amount": null,
            "currency_symbol": null,
            "currency": null,
            "name": "SantaBikerz2",
            "description": "",
            "image": null,
            "decimal": null,
            "media_activate": null,
            "attribute_activate": null,
            "sellable_activate": null,
            "price_template": 1,
            "royalties": null,
            "general_activate": 1,
            "animation_url": null,
            "template_name": "SantaBikerz2",
            "price": "",
            "template_image": "https://utility-apps-assets.certhis.io/upload/2023/12/26/4aa42de0-a3f6-11ee-968e-55d99e7401cf.png",
            "attributes_nft": [],
            "attributes_templates": [],
            "url_media": "https://utility-apps-assets.certhis.io/upload/2023/12/26/4aa42de0-a3f6-11ee-968e-55d99e7401cf.png"
        },
        {
            "id": 182600,
            "collection_index": 1488,
            "nft_id": 1598,
            "template_id": 45,
            "amount": null,
            "currency_symbol": null,
            "currency": null,
            "name": "SantaBikerz2",
            "description": "",
            "image": null,
            "decimal": null,
            "media_activate": null,
            "attribute_activate": null,
            "sellable_activate": null,
            "price_template": 1,
            "royalties": null,
            "general_activate": 1,
            "animation_url": null,
            "template_name": "SantaBikerz2",
            "price": "",
            "template_image": "https://utility-apps-assets.certhis.io/upload/2023/12/26/4aa42de0-a3f6-11ee-968e-55d99e7401cf.png",
            "attributes_nft": [],
            "attributes_templates": [],
            "url_media": "https://utility-apps-assets.certhis.io/upload/2023/12/26/4aa42de0-a3f6-11ee-968e-55d99e7401cf.png"
        },
        {
            "id": 182599,
            "collection_index": 1488,
            "nft_id": 1597,
            "template_id": 45,
            "amount": null,
            "currency_symbol": null,
            "currency": null,
            "name": "SantaBikerz2",
            "description": "",
            "image": null,
            "decimal": null,
            "media_activate": null,
            "attribute_activate": null,
            "sellable_activate": null,
            "price_template": 1,
            "royalties": null,
            "general_activate": 1,
            "animation_url": null,
            "template_name": "SantaBikerz2",
            "price": "",
            "template_image": "https://utility-apps-assets.certhis.io/upload/2023/12/26/4aa42de0-a3f6-11ee-968e-55d99e7401cf.png",
            "attributes_nft": [],
            "attributes_templates": [],
            "url_media": "https://utility-apps-assets.certhis.io/upload/2023/12/26/4aa42de0-a3f6-11ee-968e-55d99e7401cf.png"
        },
        {
            "id": 182598,
            "collection_index": 1488,
            "nft_id": 1594,
            "template_id": 45,
            "amount": null,
            "currency_symbol": null,
            "currency": null,
            "name": "SantaBikerz2",
            "description": "",
            "image": null,
            "decimal": null,
            "media_activate": null,
            "attribute_activate": null,
            "sellable_activate": null,
            "price_template": 1,
            "royalties": null,
            "general_activate": 1,
            "animation_url": null,
            "template_name": "SantaBikerz2",
            "price": "",
            "template_image": "https://utility-apps-assets.certhis.io/upload/2023/12/26/4aa42de0-a3f6-11ee-968e-55d99e7401cf.png",
            "attributes_nft": [],
            "attributes_templates": [],
            "url_media": "https://utility-apps-assets.certhis.io/upload/2023/12/26/4aa42de0-a3f6-11ee-968e-55d99e7401cf.png"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

## GET Collection Statistics

#### Example of request:

```
https://dynamic-api.certhis.io/stat
```

{% tabs %}
{% tab title="REQUEST" %}

* No additional parameters required.

<br>

{% endtab %}

{% tab title="RESPONSE" %}
Sample response

```
{"status":true,"message":"get","data":{"template":2,"nft":1604}}
```

{% endtab %}
{% endtabs %}

## GET Public NFT Metadata

#### Example of request:

```
https://dynamic-api.certhis.io/l3d5gmof3zcyuuukb82aetuyve-32/1.json
```

{% tabs %}
{% tab title="RESPONSE" %}
Sample response

```

{
    "name": "SantaBikerz2",
    "description": "",
    "image": "https://utility-apps-assets.certhis.io/upload/2023/12/26/4aa42de0-a3f6-11ee-968e-55d99e7401cf.png",
    "attributes": []
}

```

{% endtab %}
{% endtabs %}

## POST Create Template

#### Example of request:

```
https://dynamic-api.certhis.io/template
```

{% tabs %}
{% tab title="REQUEST" %}
Form-data Parameters

<table><thead><tr><th width="267">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>Name of the template.</td></tr><tr><td>description</td><td>Description of the template.</td></tr><tr><td>image</td><td>Image file for the template.</td></tr><tr><td>animation_url</td><td>URL for template animation.</td></tr><tr><td>sellable_activate</td><td>Flag to mark as sellable (1 to activate).</td></tr><tr><td>amount</td><td>Amount for pricing.</td></tr><tr><td>currency</td><td>Currency for pricing.</td></tr><tr><td>chain_id</td><td>Blockchain ID.</td></tr><tr><td>decimal</td><td>Decimal points for pricing.</td></tr><tr><td>animation_link</td><td>Direct link to template animation.</td></tr></tbody></table>
{% endtab %}

{% tab title="RESPONSE" %}
Sample response

```
{"status":true,"message":"created","data":{"template_id":49}}
```

{% endtab %}
{% endtabs %}

## PUT Update Template

#### Example of request:

```
https://dynamic-api.certhis.io/template
```

{% tabs %}
{% tab title="REQUEST" %}
Form-data Parameters

<table><thead><tr><th width="267">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>template_id</td><td>ID of the template to update.</td></tr><tr><td>name</td><td>Name of the template.</td></tr><tr><td>description</td><td>Description of the template.</td></tr><tr><td>image</td><td>Image file for the template.</td></tr><tr><td>animation_url</td><td>URL for template animation.</td></tr><tr><td>sellable_activate</td><td>Flag to mark as sellable (1 to activate).</td></tr><tr><td>amount</td><td>Amount for pricing.</td></tr><tr><td>currency</td><td>Currency for pricing.</td></tr><tr><td>chain_id</td><td>Blockchain ID.</td></tr><tr><td>decimal</td><td>Decimal points for pricing.</td></tr><tr><td>animation_link</td><td>Direct link to template animation.</td></tr></tbody></table>
{% endtab %}

{% tab title="RESPONSE" %}
Sample response

```
{"status":true,"message":"updated","data":[]}
```

{% endtab %}
{% endtabs %}

## GET List Templates

#### Example of request:

```
https://dynamic-api.certhis.io/template
```

{% tabs %}
{% tab title="REQUEST" %}
Form-data Parameters

<table><thead><tr><th width="267">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>page</td><td>Page number for pagination.</td></tr><tr><td>per_page</td><td>Number of templates per page.</td></tr><tr><td>search</td><td>Search term for templates.</td></tr></tbody></table>
{% endtab %}

{% tab title="RESPONSE" %}
Sample response

```
{
    "status": true,
    "message": "get",
    "data": [
        {
            "id": 49,
            "access_id": 32,
            "image": 2094,
            "name": "SantaBikerz23",
            "description": "Amazing Description",
            "animation_url": null,
            "amount": null,
            "animation_link": null,
            "currency": null,
            "currency_symbol": null,
            "sellable_activate": null,
            "decimal": null,
            "royalties": null,
            "url_media": "https://utility-apps-assets.certhis.io/upload/2023/12/26/edba8d60-a402-11ee-8c51-2b25fa54c078.png",
            "url_animation": null,
            "nb_nft_linked": 0
        },
        {
            "id": 45,
            "access_id": 32,
            "image": 2081,
            "name": "SantaBikerz2",
            "description": "",
            "animation_url": null,
            "amount": null,
            "animation_link": null,
            "currency": null,
            "currency_symbol": null,
            "sellable_activate": null,
            "decimal": null,
            "royalties": null,
            "url_media": "https://utility-apps-assets.certhis.io/upload/2023/12/26/4aa42de0-a3f6-11ee-968e-55d99e7401cf.png",
            "url_animation": null,
            "nb_nft_linked": 106
        },
        {
            "id": 44,
            "access_id": 32,
            "image": 2080,
            "name": "SantaBikerz",
            "description": "",
            "animation_url": null,
            "amount": null,
            "animation_link": null,
            "currency": null,
            "currency_symbol": null,
            "sellable_activate": null,
            "decimal": null,
            "royalties": null,
            "url_media": "https://utility-apps-assets.certhis.io/upload/2023/12/26/caaffbf0-a3f5-11ee-9d75-638906415d22.png",
            "url_animation": null,
            "nb_nft_linked": 1498
        }
    ],
    "count": 3
}
```

{% endtab %}
{% endtabs %}

## GET Template Details

#### Example of request:

```
https://dynamic-api.certhis.io/template/:template_id
```

{% tabs %}
{% tab title="REQUEST" %}

<table><thead><tr><th width="267">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>:template_id</td><td>The ID of the template.</td></tr></tbody></table>
{% endtab %}

{% tab title="RESPONSE" %}
Sample response

```

{
    "status": true,
    "message": "get",
    "data": {
        "id": 49,
        "access_id": 32,
        "image": 2094,
        "name": "SantaBikerz23",
        "description": "Amazing Description",
        "animation_url": null,
        "amount": null,
        "animation_link": null,
        "currency": null,
        "currency_symbol": null,
        "sellable_activate": null,
        "decimal": null,
        "royalties": null,
        "url_media": "https://utility-apps-assets.certhis.io/upload/2023/12/26/edba8d60-a402-11ee-8c51-2b25fa54c078.png",
        "url_animation": null,
        "nb_nft_linked": 0,
        "attributes": []
    }
}

```

{% endtab %}
{% endtabs %}

## POST Delete Template

#### Example of request:

```
 https://dynamic-api.certhis.io/template/delete/:template_id
```

{% tabs %}
{% tab title="REQUEST" %}

<table><thead><tr><th width="267">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>:template_id</td><td>The ID of the template.</td></tr></tbody></table>
{% endtab %}

{% tab title="RESPONSE" %}
Sample response

```
{"status":true,"message":"Template deleted successfully","data":[]}
```

{% endtab %}
{% endtabs %}

## GET Template Details
