clerk.rotate_oauth_application_secret
Rotate the client secret for a confidential OAuth application in a connected Clerk application.
Sensitive — the response includes a new client_secret. Update authorized OAuth clients immediately and do not log the secret.
Call clerk.get_connected_accounts first. Pass clerk_instance_id to target a specific connection, or omit it to use the default account.
Returns the updated OAuth application summary with the new client_secret.
Cost = 10 tokens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clerk_instance_id | No | Clerk instance id (ins_...) from clerk.get_connected_accounts. Omit to use the default connected account. | |
| oauth_application_id | Yes | Clerk OAuth application id (oa_...) to retrieve, update, or delete. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| oauth_application | No | OAuth application summary with the new client_secret. |