Create API Token

Creating API Token

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

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

Create API Token

POST https://pickyassist.com/app/api/v2/pm/create-api-token

This API allows you to Create API Token for a project

Request Body

NameTypeDescription

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

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

Response Variables

Variable

Type

Description

status

numeric

Status of the Request

100 = Sucess

Refer Error Codes for complete Status Codes

message

string

Error or detailed response Message details

project_id

numeric

Project ID

api_token

array

API Tokens in array

ip

token

Sample Request Body JSON

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

Sample Response

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

Last updated