Add a Key
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
Path Parameters
Request Body
application/json
The date the key will expire and no logins will be possible anymore.
date-timeOptionally provide a public key of your own generated RSA private key.
byteResponse Body
application/json
curl -X POST "https://loading/v2/users/string/keys" \ -H "Content-Type: application/json" \ -d '{}'{
"creationDate": "2023-01-15T01:30:15.01Z",
"keyId": "string",
"keyContent": "string"
}Was this page helpful?
User API
Explore the User API operation in the ZITADEL API. Learn about request parameters, response schemas, and integration details for this endpoint.
Add a Personal Access Token
Add a Personal Access Token: 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...