---
title: "Regenerate App Secret"
method: POST
path: "/idp/apps/{app_id}/regenerate-secret"
tags: ["Identity Provider"]
---

# Regenerate App Secret

`POST /idp/apps/{app_id}/regenerate-secret`

Regenerate the client secret for an OAuth application.

## Path parameters

- `app_id` string, required

## Headers

- `X-Chutes-Hotkey` string, nullable
- `X-Chutes-Signature` string, nullable
- `X-Chutes-Nonce` string, nullable
- `Authorization` string, nullable

## Response `200`

Successful Response

- OAuthAppSecretRegenerateResponse — Response model when regenerating a client secret.
  - `app_id` string, required
  - `client_id` string, required
  - `client_secret` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/chutes/apis/fastapi.md) · [All operations](https://skmtc.net/chutes/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chutes/fastapi/revisions/352418d4e3a2/schema)
