Get Personal Access Tokens
    • Dark
      Light
    • PDF

    Get Personal Access Tokens

    • Dark
      Light
    • PDF

    Article summary

    Get
    /api/v1/users.getPersonalAccessTokens

    Permission required: create-personal-access-tokens

    Changelog

    VersionDescription
    0.69.0Added
    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

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.