Rotate a machine's secret key
One step with Clerk. We can help you get access.
Get something done
Rotate a machine's secret key
with Clerk · Identity & Access Management
Works with AI assistants
Use Clerk: its Clerk Backend Machines API lets you rotate a machine's secret key in a single step (POST /machines/{machine_id}/secret_key/rotate). Clerk also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.
- How do I rotate a machine secret without breaking services immediately?
- How long does the previous machine secret keep working after rotation?
Say it to your AI assistant
- Rotate the secret key of machine {machine_id}, keeping the old one valid for {previous_token_ttl} seconds.
- Issue a fresh secret for machine {machine_id} with a {previous_token_ttl}-second grace period for the old one.
For your developer
POST /machines/{machine_id}/secret_key/rotate in Clerk Backend Machines API. Full spec on APIs.io.