Skip to main content

Setup

  1. Open your form in the dashboard and go to the Integrations tab
  2. Choose Webhook
  3. Enter your endpoint URL
  4. Optionally enter a Signing Secret: any random string you choose. Store the same value on your server to verify requests
  5. Save
A form has one Webhook integration. Creating another one for the same form replaces the existing one.

Request format

OSForms sends a POST request with Content-Type: application/json and User-Agent: osforms-Webhook/1.0:
data holds exactly what was submitted. Keys are your input name attributes (HTML forms) or field IDs (forms built with the form builder or @osforms/react). Through the API you can also switch the method to PUT or PATCH and add custom headers, such as an Authorization header for your endpoint.
Saving the webhook in the dashboard always resets the method to POST and clears custom headers. If you use a custom method or headers, manage the webhook only through the API.

Verifying signatures

When a signing secret is set, every request includes an X-osforms-Signature header. Its value is the lowercase hex HMAC-SHA256 of the raw request body, keyed with your secret. There is no sha256= prefix.
Verify it against the raw body before parsing the JSON:
Verify the signature before processing a webhook, and compare with timingSafeEqual to avoid timing attacks. Without a signing secret, requests are unsigned and anyone who knows your URL can send fake submissions.

Retry behavior

Webhooks are not retried. If your endpoint returns a non-2xx status or times out:
  • The delivery is logged as failed for that submission
  • You get an in-app notification and an email alert
  • You can see the error in the submission’s integration logs in the dashboard
Missed a delivery? Fetch the submission with the Pull Submissions API.

Timeout

Webhook requests time out after 30 seconds. Integrations run in the background after OSForms has already answered the form submitter, and on the hosted service that background window can be shorter than 30 seconds. If the platform cuts the run off, no log entry or alert is created. Respond within a few seconds and do slow work after responding.

Testing

Once the webhook is saved, click Send Test under Test Webhook in its settings to send a sample payload to your endpoint and check your signature verification. The test payload’s submissionId looks like test_sub_1730000000000, not a real submission ID.