DevZero Logo
DevZero

Get all personal access tokens for a user

GET
/users/{user_id}/pat
/users/{user_id}/pat

Path Parameters

user_id
Required
string

ID of user

Header Parameters

Authorization
Required
string

sub claim pulled from JWT

curl -X GET "https://api.devzero.io/backend/v0/users/string/pat" \
  -H "Authorization: string"

ok

[
  {
    "content": "string",
    "created_at": "2019-08-24T14:15:22Z",
    "expiry": "2019-08-24T14:15:22Z",
    "id": "string",
    "lasted_used": "2019-08-24T14:15:22Z",
    "name": "string"
  }
]