Home / MCP server / Webhooks / create_webhook

create_webhook: Create webhook

Add a webhook so Fantastic Forms POSTs form events, such as each new response, to an https URL you give.

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:

Parameters

ParameterTypeRequiredDetails
form_idstringYesThe form's UUID or short id (the last part of its link, e.g. AbCd in fantasticforms.com/f/AbCd).
urlstringYesPublic 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).
eventsarray of stringNoEvents 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.
labelstringNoA 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_at and label.
  • note: A reminder to store the secret and how deliveries are signed.

Step by step

  1. You give the assistant the URL (it should only use a URL you provided).
  2. It calls create_webhook with the events you want.
  3. It gives you the secret once: store it to verify signatures.
  4. Your endpoint checks X-FF-Signature-V2 and 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.

MessageWhat to do
Form not foundThe 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.

All MCP tools and connection guides