Browse and search developers

Webhooks

Update a webhook

Change name, URL, events, or pause/resume it. Re-enabling clears the failure count.

On this page
  1. Parameters
  2. Request body
  3. Response
  4. Errors
PATCH/v1/webhooks/{webhookId}Scope: webhooks:write
curl -X PATCH "https://api.formitai.com/v1/webhooks/WEBHOOK_ID" \
  -H "Authorization: Bearer $FORMIT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Customer feedback",
  "url": "https://example.com/hooks/formit",
  "eventTypes": [
    "form.submission.created"
  ],
  "isActive": true
}'

Parameters

Path

  • webhookIdstringRequired

Request body

  • namestring

    1–120 characters

  • urlstring

    max 2000 characters · uri

  • eventTypesarray of "form.submission.created" | "form.submission.partial" | "form.published" | "form.unpublished" | "form.created" | "form.deleted"

    at least 1 item

  • isActiveboolean

Response 200

  • idstringRequired
  • namestringRequired
  • urlstringRequired
  • eventTypesarray of stringRequired
  • isActivebooleanRequired
  • secretHintstring or nullRequired

    Last characters of the signing secret.

  • consecutiveFailuresintegerRequired
  • disabledAtstring or nullRequired

    ISO 8601 timestamp

  • disabledReasonstring or nullRequired
  • lastTriggeredAtstring or nullRequired

    ISO 8601 timestamp

  • createdAtstringRequired

    ISO 8601 timestamp

  • updatedAtstringRequired

    ISO 8601 timestamp

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"
}

Errors

  • 400Invalid request: validation_failed with field details, or malformed JSON.
  • 401Missing or invalid API key.
  • 403The key lacks the scope, or its creator lacks the workspace permission.
  • 404Not found in this key’s workspace.
  • 429Rate limit exceeded. Wait for Retry-After seconds.

Ready?

Build your first AI form in minutes.

No credit card. Generate from a prompt, enable follow-ups, and publish a link or embed the same day.