Skip to Content
ZITADEL Docs
APIsCore ResourcesV2User

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*user_id
token_id*token_id

The tokens ID.

Response Body

Success

application/json
  1. response
deletionDate?deletion_date

The timestamp of the personal access token deletion.

Formatdate-time
Example Request
curl -X DELETE 'https://example.com/v2/users/string/pats/string'
Example Response200
{  "deletionDate": "2023-01-15T01:30:15.01Z"}

Was this page helpful?