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​
- 200
- 400
- 401
- 403
- 404
- default
The personal access token was successfully created.
The request is malformed.
Returned when the user is not authenticated.
Returned when the user does not have permission to access the resource.
The user ID does not exist.
An unexpected error response.