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 https URL the events are sent to.

  • Name
    form
    Type
    object | null
    Description

    The form whose events are sent, with its id and name; null for 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) or failing (disabled after failing too long); null when 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 name and a value.

  • 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.


GET /v1/webhooks/event-types

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.

GET
/v1/webhooks/event-types
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" }
]

GET /v1/webhooks

List all webhooks

Returns the webhooks of the workspace, or of the form of the key. The list is not paginated.

GET
/v1/webhooks
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"
	}
]

POST /v1/webhooks

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
    Description

    The name of the webhook, up to 100 characters.

  • Name
    url
    Type
    string
    Required
    Description

    The public https URL the events are sent to.

  • Name
    formId
    Type
    string | null
    Required
    Description

    The form whose events are sent; null for all the forms. It can't change afterwards. With a key of one form, it must be that form.

  • Name
    events
    Type
    string[]
    Required
    Description

    The events to send, at least one. form.created needs a webhook of all the forms; submission.started and submission.abandoned need the formPartialSubmissions feature.

Optional parameters

  • Name
    headers
    Type
    array
    Description

    Up to 10 headers added to the requests, each with a name and a value: for example a token your server checks. content-type, content-length, host, user-agent and the webhook- headers are set by BackMyForm.

POST
/v1/webhooks
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"
}

GET /v1/webhooks/:id

Retrieve a webhook

Returns a webhook.

GET
/v1/webhooks/:id
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"]
}

PUT /v1/webhooks/:id

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 https URL 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

    false stops sending the events, and cancels the pending retries. true enables the webhook again, also after it was disabled for failing.

PUT
/v1/webhooks/:id
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 /v1/webhooks/:id

Delete a webhook

Deletes a webhook: no event is sent to it anymore. Needs the admin or owner role.

DELETE
/v1/webhooks/:id
curl -X DELETE https://api.backmyform.com/v1/webhooks/1f0b2c50-4d5e-6f6a-8b9c-0d1e2f3a4b5c \
  -H "Authorization: Bearer $BACKMYFORM_API_KEY"

Request

Response

{}