ZITADEL Docs
APIsCore ResourcesV1Organization Objects

GenerateMachineSecret

Create Secret for Machine User

Deprecated: use user service v2 AddSecret instead.

Create a new secret for a machine user/service account. It is used to authenticate the user (client credential grant).

PUT
/users/{user_id}/secret

Path Parameters

user_id*string

Response Body

application/json

application/json

curl -X PUT "https://loading/users/string/secret"
{
  "clientId": "string",
  "clientSecret": "string",
  "details": {
    "sequence": 0,
    "creationDate": "1s",
    "changeDate": "1s",
    "resourceOwner": "string"
  }
}
{
  "code": "not_found",
  "message": "string",
  "detail": {
    "type": "string",
    "value": "string",
    "debug": {}
  }
}

Was this page helpful?