Create API Token

Creating API Token

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

post
Create API Token

https://pickyassist.com/app/api/v2/pm/create-api-token
This API allows you to Create API Token for a project
Request
Response
Request
Body Parameters
token
required
string
Your Master API Token for authentication
project_id
required
number
Project Id in which the API needs to be generated
ip_whitelist
optional
array
If multiple IP address needs to be passed then please pass it as an array
Response
200: OK
{
"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"
}
]
}