Skip to main content

Add a Personal Access Token

POST 

/v2/users/:userId/pats

Personal access tokens (PAT) are the easiest way to authenticate to the Zitadel APIs. Make sure you store the returned PAT safely, as you won't be able to read it from the Zitadel API anymore. Only users of type machine can have personal access tokens.

Required permission:

  • user.write

Request​

Responses​

The personal access token was successfully created.