# Create API Token

{% hint style="danger" %}

## Project Management API is disabled from Feb 1st, 2023 onwards, so any request made to this en point will fail

{% endhint %}

This API allows you to create a new API token for a project

## Create API Token

<mark style="color:green;">`POST`</mark> `https://pickyassist.com/app/api/v2/pm/create-api-token`

This API allows you to Create API Token for a project

#### Request Body

| Name          | Type   | Description                                                               |
| ------------- | ------ | ------------------------------------------------------------------------- |
| token         | string | Your Master API Token for authentication                                  |
| project\_id   | number | Project Id in which the API needs to be generated                         |
| ip\_whitelist | array  | If multiple IP address needs to be passed then please pass it as an array |

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

```
{
   "status":100,
   "message":"Success",
   "project_id":26681,
   "api_token":[
      {
         "ip":"192.168.0.1",
         "token":"34343sdfgsdf3434"
      },
      {
         "ip":"202.164.148.84",
         "token":"34343ddf343434343"
      }
   ]
}
```

{% endtab %}
{% endtabs %}

## Response Variables&#x20;

| Variable    | Type    | Description                                                                                                                                                         |
| ----------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| status      | numeric | <p>Status of the Request </p><p></p><p>100 = Sucess</p><p></p><p>Refer <a href="../references/status-and-error-codes">Error Codes</a> for complete Status Codes</p> |
| message     | string  | Error or detailed response Message details                                                                                                                          |
| project\_id | numeric | Project ID                                                                                                                                                          |
| api\_token  | array   | <p>API Tokens  in array </p><p></p><p>ip</p><p>token</p>                                                                                                            |

## Sample Request Body JSON

```javascript
{
   "token":"3e09daea611a26691ead999715b215c7d81dbfb0",
   "project_id":6681,
   "ip_whitelist":[
      "192.168.0.1",
      "202.164.148.84"
   ]
}
```

## Sample Response

```javascript
{
   "status":100,
   "message":"Success",
   "project_id":26681,
   "api_token":[
      {
         "ip":"192.168.0.1",
         "token":"34343sdfgsdf3434"
      },
      {
         "ip":"202.164.148.84",
         "token":"34343ddf343434343"
      }
   ]
}
```
