ZITADEL Docs
APIsCore ResourcesV2User

RemovePersonalAccessToken

Remove a Personal Access Token

Removes a machine users personal access token by the given token ID and an optionally given user ID.

Required permission:

  • user.write
DELETE
/v2/users/{user_id}/pats/{token_id}

Path Parameters

user_id*string

The users resource ID.

token_id*string

The tokens ID.

Response Body

application/json

application/json

curl -X DELETE "https://loading/v2/users/string/pats/string"
{
  "deletionDate": "1s"
}
{
  "code": "not_found",
  "message": "string",
  "detail": {
    "type": "string",
    "value": "string",
    "debug": {}
  }
}

Was this page helpful?