ZITADEL Docs
APIsCore ResourcesV2User

Add a Users Secret

Generates a client secret for the user. The client id is the users username. If the user already has a secret, it is overwritten. Only users of type machine can have a secret.

Required permission:

  • user.write
POST
/v2/users/{user_id}/secret

Path Parameters

user_id*string

Response Body

application/json

curl -X POST "https://loading/v2/users/string/secret"
{
  "creationDate": "2023-01-15T01:30:15.01Z",
  "clientSecret": "string"
}

Was this page helpful?