If a bot’s webhook URL or key gets exposed (pasted in a log, chat, screenshot, or repo), there’s no way to rotate it. Anyone who has it can keep triggering the bot.
Please add a “Rotate” or “Regenerate” action for each bot’s webhook URL and key:
Generate a new URL/key and invalidate the old one immediately (or after an optional short grace period).
Show when it was last rotated.
Ideally, also allow revoking/disabling a webhook without deleting the routine.
Why: webhook URLs act like credentials, and standard practice is to rotate a secret as soon as it’s exposed.
You can already do most of this today. The webhook URL alone can’t trigger your Bot: every call also needs the key in the Authorization header, so the key is the part to protect.
To replace an exposed key, delete the routine (or ask your Bot to) and create it again. Deleting a routine invalidates its key right away, and the new routine gets a fresh URL and key. Then update whatever calls it. Please don’t only delete the key from the API keys page in your Cursor dashboard: the Bot keeps showing the old key and won’t make a new one.
To stop a webhook without deleting the routine, pause it. Calls are refused while it’s paused.
A one-click Rotate button and a “last rotated” date would make this easier, and I’ve passed that along to the team.
Thanks @Colin, that’s really helpful. Got it: the Authorization key is the secret, deleting and recreating the routine rotates it, and pausing blocks calls in the meantime. I’ll use that until one-click Rotate ships. Appreciate you passing it along to the team.