Skip to main content

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​

The key was successfully created.