curl --request POST \
--url https://api.example.com/api/projects/{projectId}/security/tokens \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"token": "<string>",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "<string>",
"createdBy": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "[email protected]",
"firstName": "<string>",
"lastName": "<string>"
}
}Generates a new access token for the specified project.
curl --request POST \
--url https://api.example.com/api/projects/{projectId}/security/tokens \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"token": "<string>",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "<string>",
"createdBy": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "[email protected]",
"firstName": "<string>",
"lastName": "<string>"
}
}Personal access token is obtained through your profile
Unique identifier of the project
Name to identify the access token
The newly created project access token
The newly created project access token
Unique identifier of the project access token
Name of the access token
The access token value
ID of the project this token belongs to
Timestamp when the token was created
User who created the token
Show child attributes
Was this page helpful?