Browse and search developers
/
Webhooks
Create a webhook
Registers an HTTPS endpoint. The response includes the signing secret; store it, it is not shown again.
On this page
POST
/v1/webhooksScope: webhooks:writecurl -X POST "https://api.formitai.com/v1/webhooks" \
-H "Authorization: Bearer $FORMIT_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"name": "Customer feedback",
"url": "https://example.com/hooks/formit",
"eventTypes": [
"form.submission.created"
]
}'Parameters
Headers
Idempotency-KeystringRetry-safe key. The same key and body within 24 hours replays the first response.
Request body
namestringRequired1–120 characters
urlstringRequiredmax 2000 characters · uri
eventTypesarray of "form.submission.created" | "form.submission.partial" | "form.published" | "form.unpublished" | "form.created" | "form.deleted"Requiredat least 1 item
Response 201
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.409Idempotency-Keyreused with a different request.429Rate limit exceeded. Wait forRetry-Afterseconds.
Can't find what you need?