Browse and search developers
/
Webhooks
Rotate a webhook secret
Issues a new signing secret. The old one stops working immediately.
On this page
POST
/v1/webhooks/{webhookId}/rotate-secretScope: webhooks:writecurl -X POST "https://api.formitai.com/v1/webhooks/WEBHOOK_ID/rotate-secret" \
-H "Authorization: Bearer $FORMIT_API_KEY"Parameters
Path
webhookIdstringRequired
Response 200
idstringRequirednamestringRequiredurlstringRequiredeventTypesarray of stringRequiredisActivebooleanRequiredsecretHintstring or nullRequiredLast characters of the signing secret.
consecutiveFailuresintegerRequireddisabledAtstring or nullRequiredISO 8601 timestamp
disabledReasonstring or nullRequiredlastTriggeredAtstring or nullRequiredISO 8601 timestamp
createdAtstringRequiredISO 8601 timestamp
updatedAtstringRequiredISO 8601 timestamp
secretstringRequiredSigning secret. Returned only when a webhook is created or its secret rotated.
Example response
{
"id": "item_id",
"name": "Customer feedback",
"url": "https://example.com/hooks/formit",
"eventTypes": [
"string"
],
"isActive": true,
"secretHint": "string",
"consecutiveFailures": 1,
"disabledAt": "2026-11-25T09:30:00.000Z",
"disabledReason": "string",
"lastTriggeredAt": "2026-11-25T09:30:00.000Z",
"createdAt": "2026-11-25T09:30:00.000Z",
"updatedAt": "2026-11-25T09:30:00.000Z",
"secret": "string"
}Errors
400Invalid request:validation_failedwith fielddetails, or malformed JSON.401Missing or invalid API key.403The key lacks the scope, or its creator lacks the workspace permission.404Not found in this key’s workspace.429Rate limit exceeded. Wait forRetry-Afterseconds.
Can't find what you need?