Get Personal Access Tokens

Prev Next
Get
/api/v1/users.getPersonalAccessTokens

Permission required: create-personal-access-tokens

Changelog

Version Description
0.69.0 Added
Header parameters
X-User-Id
stringRequired

The authenticated user ID.

ExamplerbAXPnMktTFbNpwtJ
X-Auth-Token
stringRequired

The authenticated user token.

ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f
Responses
200

OK

Success Example
{
  "tokens": [
    {
      "name": "myToken",
      "createdAt": "2018-08-01T17:17:48.068Z",
      "lastTokenPart": "R8Agh3"
    }
  ],
  "success": true
}
Expand All
object
tokens
Array of object
object
name
string
createdAt
string
lastTokenPart
string
success
boolean
400

Bad Request

Example 1
{
  "success": false,
  "error": "Not Authorized [not-authorized]",
  "errorType": "not-authorized"
}
object
success
boolean
error
string
errorType
string
401

Unauthorized

Authorization Error
{
  "status": "error",
  "message": "You must be logged in to do this."
}
object
status
string
message
string