Payload & headers reference
The exact JSON body and HTTP headers dForms sends to a webhook: form, submission, data, utm and visit objects, the partial or complete phase, the x-forms-event, x-forms-delivery, x-forms-timestamp and
Every webhook delivery is a POST with a JSON body in one stable shape. This page documents that shape field by field, the headers that travel with it, and what is different in a test delivery. You can see the exact body of any past delivery in the Webhook history dialog under What we sent.

Sample body
The shape below is real; the values are made up. Keys inside data are your own Field keys from the Build tab.
Fields
id
string
The idempotency key of this delivery, the same value as the x-forms-delivery header. Format submission:{submissionId}:{phase}:webhook:{index}. Store it and ignore a second request with the same id.
type
string
Always form.submission.
phase
string
partial when the respondent passed the partial submit point, complete when they finished. One session can produce both, in that order.
submittedAt
string
ISO-8601 timestamp (UTC) of this phase.
form.id
string
The form's ID.
form.name
string
The form's name at the time of sending.
submission.id
string
The submission's ID. Identical for the partial and the complete delivery of the same session, which is how you link them.
submission.sessionId
string
The respondent's session.
submission.score
number
Total score from the scoring settings, recomputed on the server. 0 when scoring is not used.
submission.outcome
string or null
The heading of the outcome (score range) that matched, exactly as the respondent saw it. null when no range matches or scoring is off.
data
object
One entry per answered question, keyed by Field key (for example email_1, multiple_choice_2). Single-choice and dropdown answers carry the option Value; multiple choice carries an array of values; sliders a number; a Name question arrives as firstname and lastname; a File upload arrives as an object, see below. Hidden fields are included. Unanswered questions are absent. data.utm holds the captured UTM parameters.
utm
object
The UTM parameters captured from the public link (utm_source, utm_medium, utm_campaign, utm_term, utm_content), repeated at the top level for convenience. A form embedded with the full snippet takes them from the page that embeds it when its own link has none. Empty object when there were none.
visit
object
The page the form was answered on. Absent when no page was reported, for example on a submission posted through the API without one.
visit.pageUri
string or null
The page's address: the page that embeds the form, or the form's own link (keeping only its UTM parameters) when it was opened directly. Without the embed script on your page, usually only your site's address.
visit.pageName
string or null
The page's title, or the form's public title on a direct link.
visit.embedded
boolean
true when the form was answered inside a frame on another page.
visit.hutk
string
The visitor's HubSpot cookie (hubspotutk, 32 hex characters), for a receiver that syncs HubSpot through its own flows. Only present when the page runs your HubSpot tracking code and the visitor has not opted out. See Landing page & HubSpot attribution.
💡 Tip: In Webhook history, What we sent and What came back show the HubSpot cookie as
[hidden]. Your endpoint receives the real value.
File answers
A File upload answer is the one entry in data that is not a scalar. It arrives as an object:
name
The filename from the respondent's own computer. This is the one worth showing people.
size
Size in bytes, as a string.
mime
The content type the respondent's browser reported. It is never verified, so treat it as a hint and trust the extension instead.
key
Where the file is stored. It is not a URL and it is not something you can fetch.
url
A permanent link that opens the file without signing in. See below.
The payload never carries the file's contents, only the link to open it.
The file link
url is the field to use when a person or another tool needs the file: write it into a spreadsheet column, a CRM note or a message.
No sign-in. Anyone who opens it gets the file. PDFs and images (
png,jpg,gif,webp) open in the browser tab; every other file downloads under its original name. A file over 25 MB always downloads.It does not expire. It works today and in a year. Each click sends the browser to a fresh storage address that lives a few minutes, so save the
url, never the address you land on.It stops working when the response is deleted from Submissions. From then on it answers not found.
Same link in both phases. The partial and the complete delivery carry the same
urlfor the same file.
⚠️ Note: Treat the
urlas a secret. Whoever has it can open the file, and webhook payloads tend to end up in automation logs, spreadsheets and CRM notes. If your form collects ID documents, CVs or anything else sensitive, decide where the link is stored before you connect the webhook.
⚠️ Note: Do not map a File upload question to a HubSpot property. HubSpot properties hold text, so a file answer does not arrive there as anything a person can read. If you want the file reachable from HubSpot, have your own automation write the webhook's
urlinto a text property instead.
Headers
content-type
application/json
The body is always JSON.
x-forms-event
form.submission
The event name, same as type in the body.
x-forms-delivery
submission:6f1c…:complete:webhook:0
The idempotency key (same as id in the body). Unique per submission, phase and webhook. Retries of the same delivery reuse it.
x-forms-timestamp
1787364784
Unix time in seconds when the delivery was created. Use it to reject stale requests if you want replay protection.
X-Forms-Signature
sha256=b5b239…
Present only when a Signing secret is set: sha256= + hex HMAC-SHA256 of the raw body. See Verify the signature.
Header names are case-insensitive; most frameworks expose them lowercase.
Test deliveries
Send test posts the same envelope with sample answers so your endpoint sees the real shape. Differences from a real delivery:
idandx-forms-deliveryuse the prefixping:instead ofsubmission:.phaseispartial,submission.idistest-submissionandsubmission.sessionIdistest-session.datacontains"test": trueplus one sample answer per question:sample@example.comfor Email,+15555550123for Phone,https://example.comfor Website,5for Slider,sample-optionfor choice questions,Sample/Respondentfor Name, a file object namedsample.pdffor File upload (itsurlanswers not found, because the sample response does not exist),Sample answerfor everything else.utmis empty.visitis a fixed sample: the pagehttps://example.com/landing?utm_source=test, titledExample landing page,embedded: true, and a placeholder cookie of 32 zeros that no HubSpot portal knows.
💡 Tip: Treat
id(orx-forms-delivery) as the primary key on your side. If your endpoint answers slowly and dForms retries, you will receive the same key again and can safely skip it.
What's next
Hidden fields & URL prefill: how hidden answers and UTMs get into
data.
Last updated