ZITADEL Docs
APIsCore ResourcesV2Application

GenerateClientSecret

Generate Client Secret

Generates the client secret of an API or OIDC application that belongs to the input project.

Required permissions:

  • project.app.write
POST
/zitadel.application.v2.ApplicationService/GenerateClientSecret

Header Parameters

Connect-Protocol-Version*number

Define the version of the Connect protocol

Value in1
Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

applicationId*string

The unique ID of the application to generate a new client secret for.

projectId*string

The ID of the project the application belongs to.

[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://loading/zitadel.application.v2.ApplicationService/GenerateClientSecret" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{    "applicationId": "string",    "projectId": "string"  }'
{
  "clientSecret": "string",
  "creationDate": "1s"
}
{
  "code": "not_found",
  "message": "string",
  "detail": {
    "type": "string",
    "value": "string",
    "debug": {}
  }
}

Was this page helpful?