Add a Key
POST/v2/users/:userId/keys
Add a keys that can be used to securely authenticate at the Zitadel APIs using JWT profile authentication using short-lived tokens. Make sure you store the returned key safely, as you won't be able to read it from the Zitadel API anymore. Only users of type machine can have keys.
Required permission:
- user.write
Request​
Responses​
- 200
- 400
- 401
- 403
- 404
- default
The key 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.