Get
/api/v1/users.getPersonalAccessTokens
Permission required: create-personal-access-tokens
Changelog
| Version | Description |
|---|---|
| 9.0.0 | Returns 403 with errorType: error-forbidden instead of 400 when the request is refused. |
| 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
}object
tokens
Array of object
object
name
string
createdAt
string
lastTokenPart
string
success
boolean
401
Unauthorized
Authorization Error
{
"success": false,
"error": "You must be logged in to do this."
}object
success
boolean
error
string
403
Forbidden
Example 1
{
"success": false,
"error": "User does not have the permissions required for this action",
"errorType": "error-forbidden"
}object
success
boolean
error
string
errorType
string