Skip to main content
POST
/
user
/
personal-access-tokens
Create a PAT
curl --request POST \
  --url https://api.managem.co.uk/user/personal-access-tokens \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "expires": "2023-11-07T05:31:56Z"
}
'
{
  "name": "<string>",
  "value": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "expires": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Payload used to create a new personal access token.

name
string
required

The personal access token name. Must be unique for the authenticated user.

Required string length: 1 - 256
expires
string<date-time>

Optional ISO timestamp indicating when the token should expire. Omit to create a non-expiring token.

Response

Personal access token created

Personal access token information returned to the client.

name
string
required

The personal access token name

value
string
required

The personal access token value. This is only available immediately after creation.

createdAt
string<date-time>
required

ISO timestamp indicating when the token was created

expires
string<date-time>

ISO timestamp indicating when the token expires