Get Personal Access Tokens
- Print
- DarkLight
- PDF
Get Personal Access Tokens
- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
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
}
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
Was this article helpful?