Form submissions
These endpoints read what people sent through your forms, so you can pull every new client onboarding into your CRM or reporting tool. They also download the files people attached and delete submissions you no longer need. The forms themselves are on Forms.
Copy new submissions into your CRM
Section titled “Copy new submissions into your CRM”Say Northbridge Advisory wants every client onboarding form in its CRM within the hour. A small script runs each hour, with a key that holds List submissions and Download submission file:
- Ask for what arrived since the last run, oldest first:
GET /v1/submissions?filter[formDefinition][eq]={form}&filter[createdAt][gte]={last run}&sort=createdAt&perPage=100. See List submissions. - While
meta.hasMoreistrue, ask again with the nextpage. - Copy each row’s
datainto the CRM. A value starting withfile:is an upload: download it by the identifier after the colon. - Remember when this run started, and use that as
{last run}next time.
Two kinds of change don’t show up in that query, because createdAt stays what it was. To pick up submissions your team corrected, run it once more with filter[editedAt][gte]. To pick up those somebody rescued from the spam pile, use filter[spamReleasedAt][gte].
On a form that takes a payment, a submission counts only once it is paid, which can be up to 24 hours after it was sent. A key doesn’t see it before then, and when it is paid its updatedAt moves. So for such a form, poll by filter[updatedAt][gte]={last run}&sort=updatedAt instead: you get each submission when it is paid, however long ago it was sent, and also those edited or released from spam since.
Before you start
Section titled “Before you start”The overview explains sending requests and lists, and the errors page the errors every endpoint can answer. Each list below names the fields it accepts. Authentication explains how keys work.
Each time someone sends a form, a submission is stored. These endpoints cover the submissions of all your forms. Correcting one and releasing one kept aside as spam happen in the app, not through an access key; reading its edit history is open to a key.
List submissions
Section titled “List submissions”GET/v1/submissions
Submissions across all your forms, with their answers. This is the endpoint to poll when you copy new submissions into another system: filter by form, sort by date, and ask for what arrived since your last run.
Key permission: get_submissions (List submissions)
Headers: X-Api-Key, X-Api-Secret
Query parameters: the list parameters, and these:
| Parameter | What it does |
|---|---|
filter[formDefinition][eq] |
The submissions of one form, by its identifier. |
filter[createdAt][gte] |
The submissions from a moment on. |
filter[since][gte] |
The same, as the app’s links write it. It needs a date, a time and an offset, as in 2026-10-23T09:30:00+02:00, and gte is its only operator. |
filter[editedAt][gte] |
Those corrected from a moment on. |
filter[spamReleasedAt][gte] |
Those marked as not spam from a moment on. |
filter[revision][gt] |
With 0, every submission that was ever edited. |
filter[search][eq] |
Finds text in the form’s title and the submission’s title, and part of either identifier. |
filter[spam][eq] |
quarantined for only those kept aside as spam, all for every submission. Left out, those kept aside aren’t listed. |
filter[updatedAt][gte] |
Those that changed from a moment on: sent, edited, released from spam or paid for. |
filter[payment][eq] |
By their payment: awaiting_payment, expired, unpaid for both, or paid. Left out, a key isn’t shown submissions waiting for their payment or left unpaid. |
sort |
Also takes formDefinition.title, as well as the submission’s own fields such as createdAt, title and revision. |
filter[search], filter[spam] and filter[payment] work with eq only, filter[since] with gte only.
Response: 200, with these fields for each item:
| Field | Type | Meaning |
|---|---|---|
id |
string | The submission’s identifier. |
formDefinitionId |
string | Its form. |
formTitle |
string | The form’s title. |
submissionTitle |
string | Its title, or the form’s when it has none. |
data |
object | The answers, nested by data path. See What data holds. |
createdAt |
string | When it arrived. |
updatedAt |
string | When it last changed: edited, released from spam, or paid for. |
revision |
integer | How many times it was edited. |
spamStatus |
string or null | quarantined while kept aside as spam, released once someone marked it as not spam, null otherwise. |
spamScore |
number or null | The anti-spam verdict. null if it wasn’t judged. |
paymentStatus |
string or null | For a form that takes a payment: awaiting_payment, paid, or expired once the time to pay ran out. null for a submission that owed nothing. |
| Status | When |
|---|---|
400 |
A filter, sort, or page isn’t valid. |
The errors every endpoint can answer apply here too.
Example
Section titled “Example”curl -G 'https://api.doxtly.com/v1/submissions' \ -H "X-Api-Key: $DOXTLY_API_KEY" \ -H "X-Api-Secret: $DOXTLY_API_SECRET" \ --data-urlencode 'filter[formDefinition][eq]=01a1aaf9-fcea-7500-823e-03361cb8ad39' \ --data-urlencode 'filter[createdAt][gte]=2026-10-01T00:00:00+02:00' \ --data-urlencode 'sort=createdAt' \ --data-urlencode 'perPage=2'Response 200:
{ "items": [ { "id": "01a1ab02-a1ff-7978-b339-47a6fa00b630", "formDefinitionId": "01a1aaf9-fcea-7500-823e-03361cb8ad39", "formTitle": "Client onboarding", "submissionTitle": "Harbour & Finch LLP", "data": { "company": { "name": "Harbour & Finch LLP", "vat_id": "GB284119073", "size": "250_or_more", "address": "14 Wharf Lane, Bristol BS1 4QA" }, "contact": { "first_name": "Ben", "last_name": "Meyer", "email": "ben.meyer@harbourfinch.example", "phone": "+48 697 657 246" }, "project": { "service": "finance_for_managers", "start_date": "2026-11-17", "budget": "up_to_10000", "notes": "Please contact us after the 15th." }, "consent": true }, "createdAt": "2026-10-02T11:26:38+02:00", "updatedAt": "2026-10-02T11:26:38+02:00", "revision": 0, "spamStatus": null, "spamScore": null, "paymentStatus": null }, { "id": "01a1aafa-4b7c-7c47-a0b2-63bfa75f6dca", "formDefinitionId": "01a1aaf9-fcea-7500-823e-03361cb8ad39", "formTitle": "Client onboarding", "submissionTitle": "Baltic Freight Solutions sp. z o.o.", "data": { "company": { "name": "Baltic Freight Solutions sp. z o.o.", "vat_id": "PL5842761190", "size": "50_to_249", "address": "Portowa 12, 80-601 Gdańsk" }, "contact": { "first_name": "Natalia", "last_name": "Taylor", "email": "natalia.taylor@baltic-freight.example", "phone": "+48 795 940 905" }, "project": { "service": "sales_consulting", "start_date": "2026-12-01", "budget": "10000_to_50000", "notes": "We are opening a second office next year." }, "consent": true }, "createdAt": "2026-10-09T10:24:32+02:00", "updatedAt": "2026-10-09T10:24:32+02:00", "revision": 0, "spamStatus": null, "spamScore": null, "paymentStatus": null } ], "meta": { "total": 14, "page": 1, "perPage": 2, "totalPages": 7, "hasMore": true, "hasPrevious": false }}Get a submission
Section titled “Get a submission”GET/v1/submissions/{id}
Everything about one submission: the answers, the files, where it came from, and which workflows it started. Use it when the list’s row isn’t enough, such as to find a file’s details or check a workflow’s outcome.
Key permission: read_submission (Read submission)
Headers: X-Api-Key, X-Api-Secret
Path parameters: id, the submission’s identifier.
Response: 200:
| Field | Type | Meaning |
|---|---|---|
id, formDefinitionId, formTitle |
string | As in the list. |
title |
string or null | Its title, worked out from the form’s title template. |
data |
object | The answers as they stand now, edits included. |
params |
object or null | The link parameters captured. |
metadata |
object or null | The form’s metadata when it was sent. |
files |
array | The files it holds, described below. |
createdAt |
string | When it arrived. |
workflowExecutions |
array | The workflow runs it started, described below. |
ipAddress |
string or null | The sender’s address. |
originHeader |
string or null | The site it was sent from. |
userLocation |
object or null | latitude, longitude, accuracy and timestamp, if the form asked and the browser answered. |
locationError |
string or null | Why there’s no location: PERMISSION_DENIED, POSITION_UNAVAILABLE, TIMEOUT, UNKNOWN_ERROR, NOT_SUPPORTED or DISABLED. |
userBrowser |
object or null | userAgent, browserName, browserVersion, os, platform and language. |
revision |
integer | How many times it was edited. |
editedAt, editedBy |
string or null | When it was last edited, and by whom. |
editable |
boolean | Whether it can be edited now: its form allows that, and it isn’t kept aside as spam. |
formAllowsEditing |
boolean | Whether its form allows editing at all, spam or not. With editable at false, this tells you if releasing it would help. |
formDepartmentIds |
array of strings | The departments responsible for its form. |
spamFieldScores |
object or null | Each protected field’s score, by data path. |
spamScore |
number or null | The verdict. |
spamStatus |
string or null | As in the list. |
spamThreshold |
number | The score from which its form judges a submission spam now. |
spamReleasedAt, spamReleasedBy |
string or null | When it was marked as not spam, and by whom. |
paymentStatus |
string or null | As in the list. |
payment |
object or null | The payment it was sent with, described below. null for a submission that owed nothing. |
Each entry of files:
| Field | Type | Meaning |
|---|---|---|
fileId |
string | What to download it by. |
dataPath |
string | Where it sits in data. |
filename |
string | Its name. |
mimeType |
string | Its type. |
size |
integer | Its size in bytes. |
isPersisted |
boolean | false for a file the form didn’t store: only this description is left, and it can’t be downloaded. |
The payment object:
| Field | Type | Meaning |
|---|---|---|
id |
string | The payment, as on the Payments endpoints. |
status |
string | pending, succeeded, expired, partially_refunded or refunded. |
amount |
string | The amount in the currency’s main unit, such as "490.00". |
amountMinor |
integer | The same in its smallest unit, such as 49000 grosze. |
currency |
string | Such as PLN. |
provider |
string | przelewy24 or stripe. |
testMode |
boolean | true for a payment through an integration in test mode. |
paidAt |
string or null | When it was paid. |
createdAt |
string | When it started. |
Each entry of workflowExecutions:
| Field | Type | Meaning |
|---|---|---|
executionId |
string | The run. |
workflowId, workflowName |
string | Its workflow. |
status |
string | running, completed, failed or timeout. |
startedAt |
string | When it started. |
revision |
integer | The edit that started it. 0 for the submission itself. |
| Status | When |
|---|---|
404 |
No such submission in your organization. |
The errors every endpoint can answer apply here too.
Example
Section titled “Example”curl 'https://api.doxtly.com/v1/submissions/01a1ab61-99d7-74ff-b26d-af74959a7b10' \ -H "X-Api-Key: $DOXTLY_API_KEY" \ -H "X-Api-Secret: $DOXTLY_API_SECRET"Response 200:
{ "id": "01a1ab61-99d7-74ff-b26d-af74959a7b10", "formDefinitionId": "01a1ab61-333f-7532-8a94-ac5fdcd43c38", "formTitle": "Client onboarding", "data": { "company": "Halden Logistics", "tax_id": "PL5861234568", "company_address": "Portowa 12, 81-336 Gdynia", "client_name": "Erik Halden", "client_email": "erik.halden@haldenlogistics.example", "service_package": "Growth", "includes_training": true, "registration_certificate": "file:01a1ab61-99d3-7597-a9f2-14765f49e1ea" }, "params": null, "metadata": null, "files": [ { "fileId": "01a1ab61-99d3-7597-a9f2-14765f49e1ea", "dataPath": "registration_certificate", "filename": "Registration certificate - Halden Logistics.pdf", "mimeType": "application/pdf", "size": 784, "isPersisted": true } ], "createdAt": "2026-11-05T12:04:22+01:00", "workflowExecutions": [ { "executionId": "01a1ab61-99f7-79dd-81f2-a6f58e6688e8", "workflowId": "01a1ab61-3970-78ff-834a-dbf76aeefe29", "workflowName": "Client onboarding", "status": "completed", "startedAt": "2026-11-05T12:04:22+01:00", "revision": 0 } ], "ipAddress": "172.24.0.1", "originHeader": "https://app.doxtly.com", "userLocation": null, "locationError": "DISABLED", "userBrowser": { "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/147.0.7727.15 Safari/537.36", "browserName": "Chrome", "browserVersion": "147.0", "os": "macOS", "platform": "MacIntel", "language": "en" }, "title": "Halden Logistics", "revision": 0, "editedAt": null, "editedBy": null, "editable": false, "formAllowsEditing": false, "formDepartmentIds": [], "spamFieldScores": null, "spamScore": null, "spamStatus": null, "spamThreshold": 4, "spamReleasedAt": null, "spamReleasedBy": null, "paymentStatus": null, "payment": null}A submission of a form that takes a payment ends with the payment, here a workshop fee paid through Przelewy24 and partly refunded since:
"paymentStatus": "paid", "payment": { "id": "01a1e622-6377-71d9-9521-e76085f009b2", "status": "partially_refunded", "amount": "490.00", "amountMinor": 49000, "currency": "PLN", "provider": "przelewy24", "testMode": true, "paidAt": "2026-11-16T21:52:57+01:00", "createdAt": "2026-11-16T21:52:55+01:00" }Submission history
Section titled “Submission history”GET/v1/submissions/{id}/revisions
Returns what a submission held when it was sent and every edit made to it since, oldest first, each with the fields it changed. Use it to audit corrections made in Doxtly after the data reached you.
Key permission: get_submission_revisions. read_submission alone doesn’t open the history.
Headers: X-Api-Key, X-Api-Secret
| Path parameter | Type | Meaning |
|---|---|---|
id |
UUID | The submission’s identifier. |
Response
Section titled “Response”200 OK with these fields:
| Field | Type | Meaning |
|---|---|---|
submittedAt |
string | When the submission was sent. |
originalData |
object or null | The data as it was sent. null while the submission has never been edited: its data is still what was sent. |
revisions |
array | The edits, oldest first: number, editorName, editedAt, reason (or null), workflowsRun (whether the edit ran the form’s workflows again), workflowExecutionIds (the runs it started), withdrawnPackageIds and notWithdrawnPackageIds (the packages it withdrew, and those it asked to withdraw and couldn’t), and changes, each with path, label, before and after. |
files |
object | The files the history names, keyed by their value: fileId (or null), filename, size and available (whether the file is still stored). |
Example
Section titled “Example”curl https://api.doxtly.com/v1/submissions/0195f0a4-7b2c-7d10-9e44-3c1f6a8b2d51/revisions \ -H "X-Api-Key: $DOXTLY_API_KEY" \ -H "X-Api-Secret: $DOXTLY_API_SECRET"{ "submittedAt": "2026-11-10T09:14:02+01:00", "originalData": { "company": { "name": "Acme" } }, "revisions": [ { "number": 1, "editorName": "Grace Holt", "editedAt": "2026-11-12T15:40:11+01:00", "reason": "Typo in the company name", "workflowsRun": false, "workflowExecutionIds": [], "withdrawnPackageIds": [], "notWithdrawnPackageIds": [], "changes": [ { "path": "company.name", "label": "Company name", "before": "Acme", "after": "Acme Ltd" } ] } ], "files": {}}Errors
Section titled “Errors”| Status | When |
|---|---|
401 |
The key or secret is missing or wrong, or the key is switched off or expired. |
403 |
The key wasn’t given get_submission_revisions. |
404 |
Your organization has no submission with this id. |
What data holds
Section titled “What data holds”data follows the form’s data paths, so a field at contact.email arrives as { "contact": { "email": "…" } }, and a dynamic fieldset as a list of rows.
A checkbox holds true or false. A signature field holds the drawn picture as a PNG data URI, starting with data:image/png;base64,, which can add a lot to a response.
A stored file appears as file: followed by the identifier you download it with. That goes for a photo field’s JPEG and a drawing field’s PNG too, the drawing together with the picture it was made over; both are listed in files. A file the form didn’t keep appears as an object with fileReference (starting with temp:), filename, size and mimeType.
With saveFormData off, data holds only the references of the files the form stores. The answers themselves aren’t kept.
Results of a form
Section titled “Results of a form”GET/v1/forms/{id}/results
A form’s answers summed up question by question, as its Results page shows them (see Results). Each field included in the results is one item of questions, of the kind its answers are summed up as. A form whose results are turned off in its settings has none, and answers 404.
Key permission: get_submissions (List submissions)
Headers: X-Api-Key, X-Api-Secret
Path parameters: id, the form’s identifier.
Query parameters: filter[search][eq], filter[spam][eq], filter[payment][eq] and filter[since][gte], as on the list. Without filter[payment][eq], submissions not paid for are left out. where takes a results filter as JSON, the conditions survey results take in filter: {"conditions":[{"field":"answer","question":"plan","operator":"in","values":["basic"]}]}, with question the field’s data path. A condition reads answer, finished (the day sent, from/to as YYYY-MM-DD on your organization’s clock), language, device (desktop, tablet, mobile), param or metadata; status, group and theme are refused with 422, and so is a where that isn’t one. The same where narrows the groups, the answers, the CSV and the CSV saved to a drive.
Response: 200, with these fields:
| Field | Type | Meaning |
|---|---|---|
formTitle |
string | The form’s title. |
submissions |
integer | How many submissions the filters leave. |
keepsAnswers |
boolean | false for a form that doesn’t save its answers, whose results are always empty. |
takesPayment |
boolean | Whether the form has a payment element. Only then do its submissions differ by payment, and filter[payment][eq] mean anything. |
questions |
array | One item per field included in the results, in the form’s order. |
trend |
object | The submissions over time, for the Overview: unit (day, week from Monday, month or year, by the span), buckets (every unit from the first submission’s to the last’s, empty ones included, each {start, responses, metrics} with start its first day YYYY-MM-DD on the organization’s clock and responses how many were sent in it; metrics is always empty for a form) and metricQuestions (always empty for a form). The same shape as a survey’s trend. |
firstSentAt |
string or null | When the first of the submissions the filters leave was sent (ISO 8601); null for none. |
lastSentAt |
string or null | When the last of them was sent; null for none. |
Every item of questions has these fields:
| Field | Type | Meaning |
|---|---|---|
kind |
string | How the answers are summed up: choice, checkbox, scale, number, date, text or longText. The fields below the table depend on it. |
key |
string | The field’s data path. A field in a dynamic fieldset is items[].city. |
label |
string | The field’s label. |
fieldType |
string | The field’s type: radio, select, rating, scale, checkbox, number, date, time, datetime, text, email, textarea or computed. |
group |
string or null | For a field in a dynamic fieldset, the fieldset’s label (nested ones joined with ›): each row’s answer is counted. null otherwise. |
answered |
integer | How many submissions answered it. |
unanswered |
integer | How many didn’t, including those where a condition hid it. |
answers |
integer | How many answers were counted: more than answered for a field in a dynamic fieldset. |
And by kind:
kind |
Fields |
|---|---|
choice |
options: every option in the form’s order with its value, label and count, those with 0 included, then any value no longer offered. |
checkbox |
yes and no, how many ticked it and how many didn’t. |
scale |
steps: every step of the rating or scale with its value, label and count. average and median, to two decimal places, null when nobody answered. |
number |
min, max, mean and median. binning: values (each value, for 12 different values or fewer), ranges (automatic ranges) or custom (the field’s own ranges). buckets: each with from and to (null for an open end), upperInclusive (true when to belongs to the range, false when the range ends just before it), label (an own range’s label, or null), other (true for the answers no own range holds) and count. |
date |
min and max, as 2026-11-09, 14:30 for a time, or 2026-11-09T14:30 on your organization’s clock. unit: day, week, month, year or hour. buckets: every step from the first answer to the last, each with its start (2026-11-09, a week by its Monday, a month by its first day, or 14:00) and count. |
text |
groups: the ten largest groups of answers, each with key (what its answers come to once tidied up), label (the spelling used most often) and count. groupCount, how many groups there are in all. other: groups and answers of the rest, or null when there are ten groups or fewer. |
longText |
latest: the three newest answers, each as in the answers of a question. |
| Status | When |
|---|---|
404 |
No such form in your organization, or its results are turned off: then code is results_off. |
The errors every endpoint can answer apply here too.
Example
Section titled “Example”curl 'https://api.doxtly.com/v1/forms/01a1cd27-9cff-7b40-a4c7-6ff462eae73f/results' \ -H "X-Api-Key: $DOXTLY_API_KEY" \ -H "X-Api-Secret: $DOXTLY_API_SECRET"Response 200, with two of its questions:
{ "formTitle": "Annual client survey 2026", "submissions": 40, "keepsAnswers": true, "takesPayment": false, "questions": [ { "kind": "number", "min": 19, "max": 68, "mean": 42.26, "median": 41, "binning": "ranges", "buckets": [ { "from": 10, "to": 19, "upperInclusive": true, "label": null, "other": false, "count": 1 }, { "from": 20, "to": 29, "upperInclusive": true, "label": null, "other": false, "count": 6 }, { "from": 30, "to": 39, "upperInclusive": true, "label": null, "other": false, "count": 11 }, { "from": 40, "to": 49, "upperInclusive": true, "label": null, "other": false, "count": 10 }, { "from": 50, "to": 59, "upperInclusive": true, "label": null, "other": false, "count": 6 }, { "from": 60, "to": 69, "upperInclusive": true, "label": null, "other": false, "count": 5 } ], "key": "age", "label": "Your age", "fieldType": "number", "group": null, "answered": 39, "unanswered": 1, "answers": 39 }, { "kind": "text", "groups": [ { "key": "warszawa", "label": "Warszawa", "count": 8 }, { "key": "krakow", "label": "Kraków", "count": 6 }, { "key": "gdansk", "label": "Gdańsk", "count": 4 }, { "key": "lodz", "label": "Łódź", "count": 4 }, { "key": "poznan", "label": "Poznań", "count": 3 }, { "key": "wroclaw", "label": "Wrocław", "count": 3 }, { "key": "katowice", "label": "Katowice", "count": 2 }, { "key": "lublin", "label": "Lublin", "count": 2 }, { "key": "szczecin", "label": "Szczecin", "count": 2 }, { "key": "gdynia", "label": "Gdynia", "count": 1 } ], "groupCount": 14, "other": { "groups": 4, "answers": 4 }, "key": "city", "label": "Your city", "fieldType": "text", "group": null, "answered": 39, "unanswered": 1, "answers": 39 } ], "trend": { "unit": "week", "buckets": [ { "start": "2026-10-05", "responses": 12, "metrics": [] }, { "start": "2026-10-12", "responses": 28, "metrics": [] } ], "metricQuestions": [] }, "firstSentAt": "2026-10-06T09:12:44+02:00", "lastSentAt": "2026-10-16T17:03:10+02:00"}Groups of a question’s answers
Section titled “Groups of a question’s answers”GET/v1/forms/{id}/results/groups
Every group of answers of a text question, the largest first, a page at a time: the list behind Show all answers.
Key permission: get_submissions (List submissions)
Headers: X-Api-Key, X-Api-Secret
Path parameters: id, the form’s identifier.
Query parameters:
| Parameter | Meaning |
|---|---|
question |
Required. The question’s key. |
query |
Only the groups whose answers contain this text, in any letter case and with or without accents. |
page, perPage |
As on the list: page from 1, 20 groups a page unless you ask for another number. |
The filters of the results apply too.
Response: 200, with items, each a group with key, label and count, and meta as on the list.
| Status | When |
|---|---|
400 |
The question is no text question: code is results_not_text. |
404 |
No such form, its results are turned off (results_off), or the results have no question of that key (results_question_not_found). |
Example
Section titled “Example”curl 'https://api.doxtly.com/v1/forms/01a1cd27-9cff-7b40-a4c7-6ff462eae73f/results/groups?question=city&perPage=3' \ -H "X-Api-Key: $DOXTLY_API_KEY" \ -H "X-Api-Secret: $DOXTLY_API_SECRET"Response 200:
{ "items": [ { "key": "warszawa", "label": "Warszawa", "count": 8 }, { "key": "krakow", "label": "Kraków", "count": 6 }, { "key": "gdansk", "label": "Gdańsk", "count": 4 } ], "meta": { "total": 14, "page": 1, "perPage": 3, "totalPages": 5, "hasMore": true, "hasPrevious": false }}Answers of a question
Section titled “Answers of a question”GET/v1/forms/{id}/results/answers
The answers of a text or longText question, newest first, a page at a time, each with the submission it came in.
Key permission: get_submissions (List submissions)
Headers: X-Api-Key, X-Api-Secret
Path parameters: id, the form’s identifier.
Query parameters:
| Parameter | Meaning |
|---|---|
question |
Required. The question’s key. |
group |
For a text question: only the answers of the group with this key. |
query |
Only the answers containing this text, in any letter case and with or without accents. |
page, perPage |
As on the list. |
The filters of the results apply too.
Response: 200, with items and meta as on the list. Each item has these fields:
| Field | Type | Meaning |
|---|---|---|
submissionId |
string | The submission it came in, to read. |
sentAt |
string | When the submission was sent. |
text |
string | The answer. A long answer is cut off after 1,000 characters. |
truncated |
boolean | true when text is only the beginning; the submission holds the whole answer. |
row |
integer or null | The row of the dynamic fieldset it was given in, from 1, or null. |
| Status | When |
|---|---|
400 |
The question is no text or longText question (results_not_text). |
404 |
As for the groups. |
Example
Section titled “Example”curl 'https://api.doxtly.com/v1/forms/01a1cd27-9cff-7b40-a4c7-6ff462eae73f/results/answers?question=comments&perPage=2' \ -H "X-Api-Key: $DOXTLY_API_KEY" \ -H "X-Api-Secret: $DOXTLY_API_SECRET"Response 200:
{ "items": [ { "submissionId": "01a1f461-6177-7eda-a598-9ebb34ec11e0", "sentAt": "2026-11-17T14:26:00+01:00", "text": "The online portal for signing documents saved us two trips to Warsaw.", "truncated": false, "row": null }, { "submissionId": "01a1f461-4762-7b09-9286-0139a2af74e0", "sentAt": "2026-11-15T12:35:00+01:00", "text": "Clear pricing up front, no surprises. That matters to us.", "truncated": false, "row": null } ], "meta": { "total": 12, "page": 1, "perPage": 2, "totalPages": 6, "hasMore": true, "hasPrevious": false }}Results as CSV
Section titled “Results as CSV”GET/v1/forms/{id}/results/export
The answers to the same questions as a CSV file, one row per submission, oldest first. The first column is when it was sent, then one column per field included in the results: a choice as its option’s label, a checkbox as Yes or No, anything else as it was given. A field in a Dynamic fieldset gives one answer per row, separated by commas.
Key permission: get_submissions (List submissions)
Headers: X-Api-Key, X-Api-Secret. Accept-Language sets the language of the first column’s heading, of Yes and No, and the separator: a comma for English, Arabic, Chinese, Hindi, Japanese and Thai, a semicolon for the other languages, as Excel expects.
Path parameters and query parameters: as for the results, and:
| Parameter | Description |
|---|---|
format |
csv (the default), xlsx or pdf (the results report). xlsx: the same rows in an Excel workbook, under the form’s title, when the file was made, the filter in words and how many submissions it holds, the moment each was sent a date on your organization’s clock and the text of every cell as it was given. Anything else answers 422. |
Response: 200, the file as an attachment: results.xlsx for format=xlsx (its name in the language of Accept-Language, such as wyniki.xlsx in Polish), else results.csv, in UTF-8 with a byte order mark so Excel reads the letters right. A cell that a spreadsheet would run as a formula starts with an apostrophe. A 404 for a form your organization doesn’t have, or one whose results are turned off.
Example
Section titled “Example”curl 'https://api.doxtly.com/v1/forms/01a1cd27-9cff-7b40-a4c7-6ff462eae73f/results/export' \ -H "X-Api-Key: $DOXTLY_API_KEY" \ -H "X-Api-Secret: $DOXTLY_API_SECRET" \ -H 'Accept-Language: en' \ -o results.csvThe first rows of the file:
Sent,"Which service did you use?","How satisfied are you?","Your age","How many years have you been our client?","Your city","I would recommend Northbridge to a colleague","Preferred date for a review meeting","Anything else you would like to tell us?"2026-10-22T07:00:00+02:00,"Contract review",5,34,3,Warszawa,Yes,2026-12-01,"The contract review was quick and the notes were easy to follow. Thank you, Piotr."2026-10-22T07:37:00+02:00,Training,4,41,1,warszawa,Yes,2026-12-08,2026-10-23T08:14:00+02:00,"Tax advisory",5,29,6,"Warszawa ",Yes,,Results report (PDF)
Section titled “Results report (PDF)”The same endpoint with format=pdf gives the results report as a PDF in the language of Accept-Language, in your organization’s colours and with its logo, over the submissions the filters leave: the form’s title, the filter in words, how many submissions and when the first and the latest were sent, the submissions over time, then a card for every field in the results with the counts and shares of its answers, a rating’s or a number’s mean and median. The file is named after the form, such as Customer survey - results report.pdf. POST /v1/forms/{id}/results/export/drive?format=pdf saves it to a drive instead.
Saved reports
Section titled “Saved reports”GET/v1/forms/{id}/reports
POST/v1/forms/{id}/reports
PUT/v1/forms/{id}/reports/{reportId}
DELETE/v1/forms/{id}/reports/{reportId}
Named views of a form’s results, as quizzes and surveys keep them (Saved reports): GET lists them by name ({"reports": [...]}), POST saves one, PUT changes its name and view, DELETE deletes it (204). The body is {"name": "Board", "view": {"filter": {"conditions": [...]}, "charts": {"plan": "donut"}, "tab": "questions"}}: filter is the results filter as where takes it, charts each card’s chart by its question’s key (bars, donut or table), tab overview or questions. A report has id, name, view (with segments, always empty for a form), createdBy, updatedAt and share. A form keeps up to 50 reports.
Key permission: get_form_reports (View saved form reports) to list them, manage_form_reports (Manage saved form reports) for the rest
| Status | When |
|---|---|
404 |
There’s no form with this id, or no report with this id in the form, in your organization, or the form’s results are turned off. |
409 |
The form already keeps 50 reports. |
422 |
A name that is empty or longer than 120 characters; a chart or a tab that doesn’t exist (view.tab); segments (view.segments) or a condition a form’s results can’t read (view.filter). |
Share a saved report
Section titled “Share a saved report”PUT/v1/forms/{id}/reports/{reportId}/share
DELETE/v1/forms/{id}/reports/{reportId}/share
As for a quiz’s report (Share a saved report): PUT shares the report by a link or changes its password or expiry, DELETE stops sharing. The link, https://<your address>/r/{token}, and its public endpoints (/v1/public/quiz-reports/{token}) show the report’s view over the submissions as they are now, leaving out spam and submissions not paid for, and aggregates only: no text answer, the filter in words only when it reads no text, link parameter or metadata, and of fewer than 5 submissions only how many there are (form.withheld). The public answer has mode form, results null and the form’s results in form: submissions, firstSentAt, lastSentAt, trend, questions, withheld.
Key permission: manage_form_reports (Manage saved form reports)
Delete a submission
Section titled “Delete a submission”DELETE/v1/submissions/{id}
Deletes one submission, with its edit history, the files uploaded with it and the workflow runs it started (a run still under way goes once it ends). Use it to honour a deletion request, or to remove a test entry.
Key permission: delete_submission (Delete submission)
Headers: X-Api-Key, X-Api-Secret
Path parameters: id, the submission’s identifier.
Response: 204, with no body.
| Status | When |
|---|---|
404 |
No such submission in your organization. |
The errors every endpoint can answer apply here too.
Example
Section titled “Example”curl -X DELETE 'https://api.doxtly.com/v1/submissions/01a1abe4-8302-729b-9e52-bdccf8d70268' \ -H "X-Api-Key: $DOXTLY_API_KEY" \ -H "X-Api-Secret: $DOXTLY_API_SECRET"The response is 204 with no body.
Download a submission file
Section titled “Download a submission file”GET/v1/submissions/{id}/files/{fileId}
Downloads a file a visitor uploaded: one the submission holds now, or one it was first sent with that a later edit replaced.
Key permission: download_submission_file (Download submission file)
Headers: X-Api-Key, X-Api-Secret
Path parameters: id, the submission’s identifier, and fileId, the file’s identifier from files, or the part after file: in data.
Response: 200, with the file itself as the body. It always comes as an attachment, under its original name in Content-Disposition. Content-Type is the file’s own for common document and picture formats, and application/octet-stream for anything else, because a visitor chose what’s in it. Treat uploads with the same care as any file from a stranger.
| Status | When |
|---|---|
404 |
No such submission, or it holds no file with this identifier. That includes a file the form didn’t store. |
The errors every endpoint can answer apply here too.
Example
Section titled “Example”curl 'https://api.doxtly.com/v1/submissions/01a1ab61-99d7-74ff-b26d-af74959a7b10/files/01a1ab61-99d3-7597-a9f2-14765f49e1ea' \ -H "X-Api-Key: $DOXTLY_API_KEY" \ -H "X-Api-Secret: $DOXTLY_API_SECRET" \ -o registration-certificate.pdfThe response is the file itself. Its headers:
HTTP/2 200content-type: application/pdfcontent-disposition: attachment; filename="Registration certificate - Halden Logistics.pdf"content-length: 784