ZITADEL Docs
APIsCore ResourcesV2User

AddSecret

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

The users resource ID.

Response Body

application/json

application/json

curl -X POST "https://loading/v2/users/string/secret"
{
  "creationDate": "1s",
  "clientSecret": "string"
}
{
  "code": "not_found",
  "message": "string",
  "detail": {
    "type": "string",
    "value": "string",
    "debug": {}
  }
}

Was this page helpful?