Paperform webhooks in production: duplicates, retries and timeouts

Published · Updated

This guide covers the problems you meet when Paperform sends form submissions to your endpoint, and how to handle each one. Paperform's webhooks fire on a new or partial submission. Papersign has a separate webhook system, which this guide doesn't cover.

What Paperform sends is on the Paperform webhooks overview, and how to check your custom header is on Verify Paperform webhooks.

At a glance

ProblemWhat to doWith Event Gateway
TimeoutsReturn success within about 10 seconds; process in a background jobAnswers Paperform at once, then queues the submission for your service
DuplicatesSkip a submission_id and trigger you've already processedDrops repeats before they reach your handler
RetriesWatch for the disabled webhook email, then resend what you missedAccepts submissions while your service is down and retries on your schedule
Choosing eventsUse one webhook and URL per trigger, and read answers by custom_keyGives each trigger its own source, and logs each full body
TestingUse a public URL that forwards to localhost, then click TestForwards to localhost and replays past requests
Other limitsUse a long random custom header over HTTPSCompares the header you name with the value you enter

Paperform's 10-second limit and slow handlers

Return a success response within about 10 seconds, then do the work in a background job. Paperform limits webhook requests to around 10 seconds and recommends returning success early when your logic is long or complex.

Why it happens: Paperform stops waiting at the limit, and a request that runs over counts as failed. A handler that creates records and calls other services before it responds can run past the limit.

Fix it in your handler:

  1. Check the header, store the body and return 200. See why to process webhooks asynchronously.
  2. Do the work in a worker, outside the request.

With Event Gateway: Hookdeck answers Paperform as soon as a submission arrives, then delivers it to your service with a delivery timeout you choose.

Duplicate Paperform submissions

A submission can reach your endpoint more than once. Store submission_id with the trigger, and skip pairs you've processed.

Why it happens: Paperform dispatches one webhook of each type per submission record, so a response doesn't normally send two partial webhooks. People can still send one again: Test resends the latest submission's data, and Resend webhook sends any past submission. Paperform doesn't document whether it retries a failed request automatically, so don't rule out a repeat from that either.

Fix it in your handler:

  1. Track submission_id and the trigger in a table with a unique constraint.
  2. Make every handler idempotent.

With Event Gateway: Hookdeck deduplicates requests before they reach your endpoint, using the fields you choose.

Paperform retries and disabled webhooks

If Paperform can't reach your URL repeatedly, it disables the webhook and emails the team owner and admin seats. Submissions stop arriving until someone fixes or reconnects it. Paperform doesn't document a retry schedule, so assume a failed request may not come back.

Why it happens: Paperform's webhooks article mentions multiple failed attempts, but gives no count, no timing and no number of failures before it disables a webhook. It doesn't say whether a 4xx or 5xx counts in the same way as an unreachable URL. A submission's webhook history doesn't record whether delivery succeeded either, so the email is the only failure signal Paperform documents.

Fix it in your handler and account:

  1. Return success for anything you've stored, and keep the endpoint simple so it rarely fails.
  2. Make sure the team owner and admin addresses reach someone who can act.
  3. After an outage, fix or reconnect the webhook, then work out what you missed. The API lists a form's submissions on the Standard API tier.
  4. Resend what you missed: in the form's results, click Actions on a submission, then Resend webhook, then Send. This uses the webhook's current configuration, and it can't fire a webhook you've deleted.

With Event Gateway: Hookdeck accepts each submission as it arrives and stores it, so your own downtime doesn't look like a failing URL to Paperform. It delivers to your service with retries on a schedule you control, and you can replay anything that failed.

Choosing events: new and partial submissions

Paperform has no event names. You choose what fires each webhook, so give New Submission and Partial Submission a webhook and URL each.

Why it happens: In the form editor, Triggered On offers New Submission or Partial Submission. The API's webhook schema calls these submission and partial_submission, and its triggers field is an array, so a webhook created through the Business API can hold both. Neither value is documented as part of a delivery. Paperform shows one sample payload with no trigger field, and doesn't say whether a partial delivery differs from it.

A Partial Submission webhook fires only when a response has gone 30 minutes without an update and hasn't been submitted. Only one is sent per submission record, so a person who comes back, edits and leaves again doesn't trigger a second one.

Fix it in your handler:

  1. Use one webhook per trigger with different URLs, such as /webhooks/paperform/new and /webhooks/paperform/partial.
  2. Design abandoned-form follow-ups around the 30-minute delay. For later answers, read the Partial Submissions API, which keeps a partial for up to 30 days and sets submitted_at if it was later submitted.
  3. Set a custom pre-fill key on each question you read in code, and read custom_key, falling back to key. title changes whenever someone edits the question.
  4. Test value for null. Every question is present in data with all six properties, even if it's unanswered or hidden.
  5. Capture one real delivery of each trigger for your form before you rely on its shape.

With Event Gateway: Create a separate Hookdeck source for each trigger, so each has its own URL and connections. Hookdeck stores each full body, which shows what your form sends and when each partial submission arrived.

Testing Paperform webhooks locally

Point the webhook at a public URL that forwards to your machine, then click Test in the form's Webhooks section.

Why it matters: Paperform's servers can't reach localhost. Test sends the latest submission's data, and it only works once the form has been submitted at least once. Paperform doesn't say whether Test on a partial webhook sends a partial response, so to see a real one, leave a response unsubmitted and wait 30 minutes.

How to test it:

  1. Run hookdeck listen 3000 paperform and use the URL it prints as the webhook URL.
  2. Click Test, or submit the form.
  3. To send an older submission, use Resend webhook from the form's results.

With Event Gateway: The Hookdeck CLI forwards requests to localhost, and you can replay past requests without submitting the form again.

Other Paperform limits

A custom header isn't a signature. Paperform sends no signature and no timestamp. Your custom header proves the sender knows the secret, but it doesn't cover the body, and a captured request can be replayed. Use a long random value over HTTPS, and for anything that grants access or moves money, read the submission back from the Submissions API before acting. Check on a test submission that the API's id matches the webhook's submission_id, because the docs don't say so.

Headers don't take answer piping, but URLs do. Custom headers don't support answer piping, so a header value stays fixed. The webhook URL does, as {{ key }}, which passes answers in the query string. Query strings tend to end up in server logs, so don't pipe anything sensitive.

Webhooks depend on your plan. Paperform makes webhooks available on specific pricing plans. Creating, updating or deleting webhooks through the API needs the Business API, on Business and Enterprise plans.

No source IPs are published. Paperform's webhooks article names no addresses to allow, so authenticate with the header rather than a firewall rule.

With Event Gateway: Create a source with the Paperform type, then enter your custom header's name as API Key Header and its whole value as API Key, including any prefix. A request that fails the check is recorded as failed verification and never reaches your service. Hookdeck lists every request with its headers and body, which gives you the delivery record Paperform's submission history lacks.

Get started with Hookdeck for free and receive Paperform submissions reliably in minutes.

Keep an outage on your side from disabling your Paperform webhook.

Event Gateway checks your custom header, accepts each submission as it arrives, queues it and retries to your service on your schedule, so your downtime doesn't look like a failing URL to Paperform.

Not affiliated with Paperform. Facts are compiled from public sources and linked inline.