Skip to main content
POST
/
api
/
v1
/
user
/
me
/
personal-access-tokens
cURL
curl --request POST \
  --url http://api/v1/user/me/personal-access-tokens \
  --header 'Content-Type: application/json' \
  --data '
{
  "expiresAt": "2023-11-07T05:31:56Z",
  "description": "<string>",
  "autoGenerated": true
}
'
{
  "results": {
    "description": "<string>",
    "expiresAt": "2023-11-07T05:31:56Z",
    "rotatedAt": "2023-11-07T05:31:56Z",
    "lastUsedAt": "2023-11-07T05:31:56Z",
    "createdAt": "2023-11-07T05:31:56Z",
    "uuid": "<string>",
    "token": "<string>"
  },
  "status": "ok"
}

Body

application/json

From T, pick a set of properties whose keys are in the union K

expiresAt
string<date-time> | null
required
description
string
required
autoGenerated
boolean
required

Response

Success

results
object
required
status
enum<string>
required
Available options:
ok