create_webhook adds a webhook to a form. By default it sends submission.created (a new response; paid responses once the payment is confirmed). Pass events to choose others, or ["*"] for every event. The result includes the webhook's signing secret, shown only this once.
Each delivery is a JSON POST with event, delivery_id, form_id, form (id, title, short_id), created_at and data, and the headers X-FF-Event, X-FF-Delivery, X-FF-Timestamp, X-FF-Signature (sha256= HMAC of the body) and X-FF-Signature-V2 (t=<timestamp>,v1=<HMAC of timestamp.body>). A delivery succeeds on any 2xx answer within 10 seconds; failures are retried after 1 minute, 5 minutes, 30 minutes and 2 hours (5 attempts), then a webhook.failed event is sent. Redirects aren't followed.
Behaviour
- Additive. It adds something new; nothing that exists is overwritten or removed.
- Not idempotent. Each call has its own effect, so a repeated call can make a second copy or be refused.
- Open world. It reaches beyond your account: it makes a form public or sends data to an outside URL.
When to use it
- Send new responses to your CRM, a database or an automation tool.
- Notify your own app when a form is published or a response approved.
Use another tool instead:
export_submissionsfor a one-off file of existing responses.list_webhooksto check what already exists.
Parameters
| Parameter | Type | Required | Details |
|---|---|---|---|
form_id | string | Yes | The form's UUID or short id (the last part of its link, e.g. AbCd in fantasticforms.com/f/AbCd). |
url | string | Yes | Public https URL that receives the POSTs. Must start with https:// and be public: localhost, private and internal addresses are refused (checked again at every delivery). |
events | array of string | No | Events to send, e.g. ['submission.created']. Default ["submission.created"]. Valid: *, submission.created, submission.updated, submission.deleted, submission.refunded, submission.disputed, submission.approved, submission.rejected, submission.export.completed, form.created, form.updated, form.deleted, form.published, form.unpublished, field.created, field.updated, field.deleted, logic.updated, webhook.failed. |
label | string | No | A name to recognise it by. Up to 100 characters. |
What it returns
The result is sent as JSON text in the tool result's content. Its fields:
webhook:id,url,events,secret(shown only now),created_atandlabel.note: A reminder to store the secret and how deliveries are signed.
Step by step
- You give the assistant the URL (it should only use a URL you provided).
- It calls
create_webhookwith the events you want. - It gives you the secret once: store it to verify signatures.
- Your endpoint checks
X-FF-Signature-V2and rejects old timestamps.
Use cases
CRM sync
Send each new lead to https://hooks.example.com/leads.
Approvals feed
Send submission.approved and submission.rejected to your HR system.
Everything
events: ["*"] for a full audit stream.
Example prompts
- "Send new responses to my Event RSVP to https://hooks.example.com/rsvp."
- "Add a webhook for approved and rejected submissions to https://hr.example.com/approvals."
Example call
The request an assistant sends to https://fantasticforms.com/api/mcp:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "create_webhook",
"arguments": {
"form_id": "Rw2M",
"url": "https://hooks.example.com/rsvp",
"label": "CRM sync"
}
}
}
The result (ids and values are examples):
{
"webhook": {
"id": "w1b2c3d4-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"url": "https://hooks.example.com/rsvp",
"events": [
"submission.created"
],
"secret": "whsec_3f1a...",
"created_at": "2026-12-05T10:41:22+00:00",
"label": "CRM sync"
},
"note": "Store the secret now: it isn't shown again. Each POST carries an X-FF-Signature header signed with it."
}
Errors and how to fix them
Problems come back as a tool result with isError: true and a message the assistant can act on.
| Message | What to do |
|---|---|
| Form not found | The id is wrong, or the form belongs to another account (the message is the same either way). Run list_forms to get the right id. A UUID, a short id or the form's full link all work. |
| The webhook URL must start with https:// | Use an https address. |
| Webhook URL can't point to a private or internal address. | Use a public URL. |
| Unknown event(s): ... Valid events: *, submission.created, ... | Use events from the list. |
| A form can have at most 20 webhooks. | Remove one with remove_webhook first. |
Notes and limits
- Marked open world: from now on the form's data is sent to an outside URL. Additive (not destructive). Not idempotent: each call adds another webhook.
- Webhooks are free on every plan, and deliveries don't count toward the Free plan's monthly calls.
- On the Free plan, each call counts toward the 1,000 API and AI assistant calls a month; Pro is unlimited.