Examples

GET /api/users/988725679/personal_access_tokens
200
{
  "total": 1,
  "subtotal": 1,
  "page": 1,
  "per_page": 20,
  "search": null,
  "sort": {
    "by": null,
    "order": null
  },
  "results": [
    {
      "created_at": "2019-11-07 08:45:43 UTC",
      "updated_at": "2019-11-07 08:45:43 UTC",
      "id": 2,
      "name": "Personal Access Token 9",
      "expires_at": "2019-11-17 08:45:43 UTC",
      "active?": true,
      "user_id": 988725679,
      "last_used_at": null
    }
  ]
}

Params

Param Name Description
location_id
Optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
Optional

Set the current organization context for the request

Validations:

  • Must be a Integer

user_id
Required

ID of the user

Validations:

  • Must be a String

search
Optional

filter results

Validations:

  • Must be a String

order
Optional

Sort field and order, eg. ‘id DESC’

Validations:

  • Must be a String

page
Optional

Page number, starting at 1

Validations:

  • Must be a number.

per_page
Optional

Number of results per page to return

Validations:

  • Must be a number.