clerk.rotate_machine_secret_key
ActiveTool of Vee3
Rotate the secret key for a machine in a connected Clerk instance. **Sensitive** — the response includes the new secret key; do not log or expose it. 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 new secret key. Cost = 10 tokens.
Parameters schema
{
"type": "object",
"title": "rotate_clerk_machine_secret_keyArguments",
"required": [
"machine_id",
"previous_token_ttl"
],
"properties": {
"machine_id": {
"type": "string",
"title": "Machine Id",
"description": "Clerk machine id (mch_...) to retrieve or modify."
},
"clerk_instance_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Clerk Instance Id",
"default": null,
"description": "Clerk instance id (ins_...) from clerk.get_connected_accounts. Omit to use the default connected account."
},
"previous_token_ttl": {
"type": "integer",
"title": "Previous Token Ttl",
"maximum": 28800,
"minimum": 0,
"description": "Seconds the previous secret key remains valid after rotation (0–28800)."
}
}
}Parent server
Vee3
https://github.com/Vee3io/Vee3
1/7 registries