# Deploy NFT Badge

## Deploy NFT Badge

<mark style="color:green;">`POST`</mark> `/api/v1/oauth2-app/deploy_nft`

**Headers :** \
appid: {application id}

appkey: {application key}

**Note:**&#x20;

levels value must be less than or equal to 5

min\_rp need to be greater than last level's max\_rp

#### Request Body

| Name                                              | Type      | Description                                                                                                                                                                                                                         |
| ------------------------------------------------- | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| appid                                             | String    | default header appid                                                                                                                                                                                                                |
| chainid                                           | String    | default header chainid                                                                                                                                                                                                              |
| collection                                        | String    | category                                                                                                                                                                                                                            |
| time\_zone<mark style="color:red;">\*</mark>      | String    | Format must be: +/-HH:mm                                                                                                                                                                                                            |
| start\_date\_ts<mark style="color:red;">\*</mark> | String    | Seconds timestamp, 0: Not Limit                                                                                                                                                                                                     |
| expiry\_date<mark style="color:red;">\*</mark>    | String    | Seconds timestamp, 0: Not Limit                                                                                                                                                                                                     |
| levels<mark style="color:red;">\*</mark>          | String\[] | <p>{</p><p>"name":"level 1 badge name",</p><p>"min\_rp": 1, </p><p>"max\_rp": 10,</p><p>"badge\_uri":/api/v1/oauth2-app/upload\_badge\_image uri",</p><p>"desc":"description",</p><p>"internal\_note": "internal note"</p><p>},</p> |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
  "code": 200,
  "data": {
    "contract_address": "nft contract address",
    "tx": "tx hash"
  },
  "msg": ""
}
```

{% endtab %}
{% endtabs %}
