POST/webhooks

Create Webhook

Create a new webhook endpoint to receive event notifications

Scope: WEBHOOKS_WRITE

Overview

Creates a new webhook endpoint. The URL must be a unique HTTPS endpoint. A signing secret is automatically generated for HMAC-SHA256 payload verification.

Request

POST/webhooks

Headers

HeaderValue
AuthorizationBearer fxk_live_<your-api-key>
Content-Typeapplication/json

Request Body

Example Request

curl -X POST "https://api.formfex.com/api/v1/public/webhooks" \
  -H "Authorization: Bearer $FORMFEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com/webhooks/formfex",
    "events": ["FORM_RESPONSE_CREATED", "FORM_PUBLISHED"],
    "description": "Production webhook"
  }'

Response

Response Fields

FieldTypeDescription
data.idstringUnique webhook endpoint identifier (UUID)
data.urlstringHTTPS URL that receives webhook events
data.eventsstring[]Array of subscribed event types
data.secretLast4stringLast 4 characters of the generated signing secret
data.isActivebooleanAlways true on creation
data.descriptionstring | nullOptional description
data.createdAtstringISO 8601 creation timestamp
data.updatedAtstringISO 8601 last update timestamp

Error Cases

StatusCause
409A webhook endpoint with this URL already exists for this account

Notes

Save your signing secret

The full signing secret is only available through the Formfex dashboard when the endpoint is first created. Store it securely — you'll need it to verify webhook signatures.

Plan Requirement

Webhooks require a Starter plan or higher.