---
title: "Generates a new secret for the specified client application."
method: POST
path: "/clientapplications/{clientId}/generatesecret"
tags: ["clientApplications"]
---

# Generates a new secret for the specified client application.

`POST /clientapplications/{clientId}/generatesecret`

<Check title="Required Permissions" icon="key">The user must be an admin or have `workspace-manage-config:write` permissions.</Check>

## Path parameters

- `clientId` string, required

## Headers

- `Authorization` string, required

## Response `200`

OK

- ClientApplicationGeneratePasswordResponse — The client application is required for the OAuth flow.
  - `clientSecret` string, nullable — The client application's new secret.

## Other responses

- `400` — Bad Request
- `404` — Not Found

---

[API](https://skmtc.net/awork-io/apis/api-v1-reference.md) · [All operations](https://skmtc.net/awork-io/apis/api-v1-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/awork-io/api-v1-reference/versions/f784a53f60df/schema)
