Give a domain API client a new secret
rotate_domain_client_secretRotates a domain client's secret to replace a leaked credential. Issuing a new secret immediately invalidates the old one and all tokens it granted; the new secret is shown only once.
Instructions
Issues a new secret; the old one and every token it bought stop working at once. The new clientSecret is shown EXACTLY ONCE. For a leaked secret. Requires confirm=true.
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": {
"domainId": "<domainId>",
"clientId": "<clientId>"
},
"name": "rotate_domain_client_secret"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Must be true to act. Omit/false returns a preview only. | |
| clientId | Yes | The client's id ("dcl_…") — from list_domain_clients. | |
| domainId | Yes | The domain's id — from list_domains. |