Skip to main content
POST
/
api
/
projects
/
{projectId}
/
security
/
tokens
Generate a token
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>"
  }
}

Authorizations

Authorization
string
header
required

Personal access token is obtained through your profile

Path Parameters

projectId
string<uuid>
required

Unique identifier of the project

Body

application/json
name
string
required

Name to identify the access token

Response

200 - application/json

The newly created project access token

The newly created project access token

id
string<uuid>
required

Unique identifier of the project access token

name
string
required

Name of the access token

token
string
required

The access token value

projectId
string<uuid>
required

ID of the project this token belongs to

createdAt
string
required

Timestamp when the token was created

createdBy
object

User who created the token