# 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="/pages/-LlMOaMoytoRH2cy9J06">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"
      }
   ]
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.pickyassist.com/api-documentation-v2/project-management-api/create-api-token.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
