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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"oauth_application_id": "<oauth_application_id>"
},
"name": "clerk.rotate_oauth_application_secret"
}
}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. |