Webhook endpoints
A webhook sends the events of your forms to a URL. These endpoints manage the webhooks: see the Webhooks guide for the events, the requests and their signature.
The owners and the admins manage the webhooks; the members read them, with their secret and the values of their headers masked. With a key of one form, only the webhooks of that form are reached.
The webhook object
- Name
id- Type
- string
- Description
The id of the webhook.
- Name
name- Type
- string
- Description
The name of the webhook.
- Name
url- Type
- string
- Description
The
httpsURL the events are sent to.
- Name
form- Type
- object | null
- Description
The form whose events are sent, with its
idandname;nullfor all the forms of the workspace.
- Name
enabled- Type
- boolean
- Description
The events are sent.
- Name
disabledReason- Type
- string | null
- Description
Why the webhook is disabled:
user(disabled by a user) orfailing(disabled after failing too long);nullwhen it is enabled.
- Name
events- Type
- string[]
- Description
The events sent.
- Name
headers- Type
- array
- Description
The custom headers added to the requests, each with a
nameand avalue.
- Name
secret- Type
- string
- Description
The secret signing the requests (
whsec_...). Masked (********) for the members.
- Name
createdByUserId- Type
- string
- Description
The user who created the webhook.
- Name
createdAt- Type
- date
- Description
When the webhook was created.
- Name
updatedAt- Type
- date
- Description
When the webhook was last updated.
List the event types
Returns the events a webhook can subscribe to, and whether the plan of the workspace includes them.
- Name
type- Type
- string
- Description
The event.
- Name
allFormsOnly- Type
- boolean
- Description
The event is only sent to the webhooks of all the forms.
- Name
included- Type
- boolean
- Description
The plan of the workspace includes the event.
- Name
requiredPlan- Type
- string | null
- Description
The lowest plan including the event, when it isn't included.
curl https://api.backmyform.com/v1/webhooks/event-types \
-H "Authorization: Bearer $BACKMYFORM_API_KEY"Request
Response
[
{ "type": "form.created", "allFormsOnly": true, "included": true, "requiredPlan": null },
{ "type": "form.updated", "allFormsOnly": false, "included": true, "requiredPlan": null },
{ "type": "submission.created", "allFormsOnly": false, "included": true, "requiredPlan": null },
{ "type": "submission.started", "allFormsOnly": false, "included": false, "requiredPlan": "pro" }
]List all webhooks
Returns the webhooks of the workspace, or of the form of the key. The list is not paginated.
curl https://api.backmyform.com/v1/webhooks \
-H "Authorization: Bearer $BACKMYFORM_API_KEY"Request
Response
[
{
"id": "1f0b2c50-4d5e-6f6a-8b9c-0d1e2f3a4b5c",
"name": "CRM",
"url": "https://crm.example.com/hooks/backmyform",
"form": { "id": "1f0b2c4e-1a2b-6c3d-8e4f-5a6b7c8d9e0f", "name": "Contact" },
"enabled": true,
"disabledReason": null,
"events": ["submission.created"],
"headers": [{ "name": "x-api-token", "value": "s3cr3t" }],
"secret": "whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw",
"createdByUserId": "1f0b2c4d-8e9a-6f13-a2b4-c6d8e0f1a2b3",
"createdAt": "2026-11-02T10:00:00.000Z",
"updatedAt": "2026-11-02T10:00:00.000Z"
}
]Create a webhook
Creates a webhook, enabled, and returns it with its secret. Needs the admin or owner role.
Required parameters
- Name
name- Type
- string
- Required
- required
- Description
The name of the webhook, up to 100 characters.
- Name
url- Type
- string
- Required
- required
- Description
The public
httpsURL the events are sent to.
- Name
formId- Type
- string | null
- Required
- required
- Description
The form whose events are sent;
nullfor all the forms. It can't change afterwards. With a key of one form, it must be that form.
- Name
events- Type
- string[]
- Required
- required
- Description
The events to send, at least one.
form.createdneeds a webhook of all the forms;submission.startedandsubmission.abandonedneed theformPartialSubmissionsfeature.
Optional parameters
- Name
headers- Type
- array
- Description
Up to 10 headers added to the requests, each with a
nameand avalue: for example a token your server checks.content-type,content-length,host,user-agentand thewebhook-headers are set by BackMyForm.
curl https://api.backmyform.com/v1/webhooks \
-H "Authorization: Bearer $BACKMYFORM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "CRM",
"url": "https://crm.example.com/hooks/backmyform",
"formId": "1f0b2c4e-1a2b-6c3d-8e4f-5a6b7c8d9e0f",
"events": ["submission.created"]
}'Request
Response
{
"id": "1f0b2c50-4d5e-6f6a-8b9c-0d1e2f3a4b5c",
"name": "CRM",
"url": "https://crm.example.com/hooks/backmyform",
"form": { "id": "1f0b2c4e-1a2b-6c3d-8e4f-5a6b7c8d9e0f", "name": "Contact" },
"enabled": true,
"disabledReason": null,
"events": ["submission.created"],
"headers": [],
"secret": "whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw",
"createdByUserId": "1f0b2c4d-8e9a-6f13-a2b4-c6d8e0f1a2b3",
"createdAt": "2026-11-02T10:00:00.000Z",
"updatedAt": "2026-11-02T10:00:00.000Z"
}Retrieve a webhook
Returns a webhook.
curl https://api.backmyform.com/v1/webhooks/1f0b2c50-4d5e-6f6a-8b9c-0d1e2f3a4b5c \
-H "Authorization: Bearer $BACKMYFORM_API_KEY"Request
Response
{
"id": "1f0b2c50-4d5e-6f6a-8b9c-0d1e2f3a4b5c",
"name": "CRM",
"url": "https://crm.example.com/hooks/backmyform",
"enabled": true,
"events": ["submission.created"]
}Update a webhook
Updates the properties sent, and returns the webhook. The form of a webhook can't change. Needs the admin or owner role.
Optional parameters
- Name
name- Type
- string
- Description
The name of the webhook.
- Name
url- Type
- string
- Description
The public
httpsURL the events are sent to.
- Name
events- Type
- string[]
- Description
The events to send, at least one.
- Name
headers- Type
- array
- Description
The custom headers, replacing the current ones.
- Name
enabled- Type
- boolean
- Description
falsestops sending the events, and cancels the pending retries.trueenables the webhook again, also after it was disabled for failing.
curl -X PUT https://api.backmyform.com/v1/webhooks/1f0b2c50-4d5e-6f6a-8b9c-0d1e2f3a4b5c \
-H "Authorization: Bearer $BACKMYFORM_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "enabled": true }'Request
Response
{
"id": "1f0b2c50-4d5e-6f6a-8b9c-0d1e2f3a4b5c",
"name": "CRM",
"enabled": true,
"disabledReason": null
}Delete a webhook
Deletes a webhook: no event is sent to it anymore. Needs the admin or owner role.
curl -X DELETE https://api.backmyform.com/v1/webhooks/1f0b2c50-4d5e-6f6a-8b9c-0d1e2f3a4b5c \
-H "Authorization: Bearer $BACKMYFORM_API_KEY"Request
Response
{}