Interactive document submissions
These endpoints read what people completed in your interactive documents, download the PDFs that came out of it and delete submissions you no longer need. The documents themselves are on Interactive documents.
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 submits an interactive document, a submission is stored straight away with the status pending, and the filled PDFs are made just afterwards. Wait for completed before you download them. As with forms, correcting a submission and reading its edit history happen in the app.
status |
Meaning |
|---|---|
pending |
The documents are still being made. An edited submission comes back to this status. |
completed |
The filled documents are ready. |
failed |
The documents couldn’t be made, and Doxtly doesn’t try again by itself. failureReason says why. |
An edit makes the PDFs anew and deletes the earlier ones, so a stored fileId stops working. If your system keeps copies, watch revision and read the submission again once it’s back at completed.
List interactive document submissions
Section titled “List interactive document submissions”GET/v1/interactive-document-submissions
Submissions across all your interactive documents. The list carries no answers: read a single submission for those.
Key permission: get_interactive_document_submissions (List interactive document submissions)
Headers: X-Api-Key, X-Api-Secret
Query parameters: the list parameters, and these:
| Parameter | What it does |
|---|---|
filter[interactiveDocument][eq] |
The submissions of one document, by its identifier. |
filter[status][eq] |
pending, completed or failed. |
filter[since][gte] |
The submissions from a moment on. 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. |
search[title] |
Finds submissions by their title. |
sort takes the submission’s own fields, such as createdAt, title, status and revision.
If you collect only completed submissions, one that was still pending when your script ran can fall behind your last timestamp. Start each run a few minutes before the previous one and skip the identifiers you already have.
Response: 200, with these fields for each item:
| Field | Type | Meaning |
|---|---|---|
id |
string | The submission’s identifier. |
interactiveDocumentId |
string | Its document. |
interactiveDocumentTitle |
string | The document’s title. |
title |
string or null | Its title. |
status |
string | pending, completed or failed. |
filesCount |
integer | How many filled documents it has. |
ipAddress |
string or null | The sender’s address. |
createdAt |
string | When it arrived. |
revision |
integer | How many times it was edited. |
| Status | When |
|---|---|
400 |
A filter, sort, or page isn’t valid. That includes a since without a time or an offset. |
The errors every endpoint can answer apply here too.
Example
Section titled “Example”curl -G 'https://api.doxtly.com/v1/interactive-document-submissions' \ -H "X-Api-Key: $DOXTLY_API_KEY" \ -H "X-Api-Secret: $DOXTLY_API_SECRET" \ --data-urlencode 'filter[interactiveDocument][eq]=01a1ab07-af2f-794d-9e46-417e923ae0f9' \ --data-urlencode 'filter[status][eq]=completed' \ --data-urlencode 'sort=-createdAt' \ --data-urlencode 'perPage=2'Response 200:
{ "items": [ { "id": "01a1ab08-0a9e-7f4a-81c5-6e7597c176b3", "interactiveDocumentId": "01a1ab07-af2f-794d-9e46-417e923ae0f9", "interactiveDocumentTitle": "Invoice details for your order", "title": null, "status": "completed", "filesCount": 1, "ipAddress": "172.24.0.1", "createdAt": "2026-10-26T12:46:33+01:00", "revision": 0 }, { "id": "01a1ab08-0839-7255-bdb2-aabf07c8edd5", "interactiveDocumentId": "01a1ab07-af2f-794d-9e46-417e923ae0f9", "interactiveDocumentTitle": "Invoice details for your order", "title": null, "status": "completed", "filesCount": 1, "ipAddress": "172.24.0.1", "createdAt": "2026-10-23T16:35:32+02:00", "revision": 0 } ], "meta": { "total": 14, "page": 1, "perPage": 2, "totalPages": 7, "hasMore": true, "hasPrevious": false }}Get an interactive document submission
Section titled “Get an interactive document submission”GET/v1/interactive-document-submissions/{id}
One submission, with its values and its filled documents.
Key permission: read_interactive_document_submission (Read interactive document submission)
Headers: X-Api-Key, X-Api-Secret
Path parameters: id, the submission’s identifier.
Response: 200:
| Field | Type | Meaning |
|---|---|---|
id, interactiveDocumentId, interactiveDocumentTitle, title, status |
As in the list. | |
failureReason |
string or null | Why the documents couldn’t be made. |
data |
object | The values, by variable path and form data path. A file added to an attachment position is there at its data path, as a file:<id> reference, one or a list of them. |
files |
array | The filled documents, each with fileId, filename, content and size. content is null: use the download. |
uploads |
array | What was uploaded with it, described below. |
params |
object or null | The link parameters captured. |
metadata |
object or null | The document’s metadata when it was sent. |
ipAddress |
string or null | The sender’s address. |
userLocation |
object or null | As for a form submission. |
locationError |
string or null | As for a form submission. |
userBrowser |
object or null | As for a form submission. |
originHeader |
string or null | The site it was sent from. |
createdAt |
string | When it arrived. |
revision |
integer | How many times it was edited. |
editedAt, editedBy |
string or null | When it was last edited, and by whom. |
editable |
boolean | true when the document allows editing, the values were kept, and the status is no longer pending. |
Each entry of uploads is a form’s upload or a picture put into an image area, with the same fields as a form submission’s files: fileId, dataPath, filename, mimeType, size and isPersisted. dataPath is empty for a picture in an area that publishes no variable. An upload an edit replaced isn’t listed.
A submission sent while the document kept no values has an empty data, before and after its documents are made. Its uploads are listed all the same, so this field is the safe place to find them. In a submission that kept its values, they also appear in data as file: followed by the identifier.
| 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/interactive-document-submissions/01a1ab08-05c7-7097-812c-9a9d03a0fd5c' \ -H "X-Api-Key: $DOXTLY_API_KEY" \ -H "X-Api-Secret: $DOXTLY_API_SECRET"Response 200:
{ "id": "01a1ab08-05c7-7097-812c-9a9d03a0fd5c", "interactiveDocumentId": "01a1ab07-af2f-794d-9e46-417e923ae0f9", "interactiveDocumentTitle": "Invoice details for your order", "title": null, "status": "completed", "failureReason": null, "data": { "company": { "name": "Atlas Logistics Group", "address": "Aleje Jerozolimskie 134, 02-305 Warszawa", "vat_id": "PL5273019942", "invoice_email": "accounts@atlas-logistics.example" }, "order": { "po_number": "PO-51000", "service": "Presenting with Confidence", "net_amount": "€1,300", "service_date": "29.10.2026", "terms_14": "true" } }, "files": [ { "fileId": "01a1ab08-078a-76bb-9dc6-f9766cec3652", "filename": "invoice-request-1.pdf", "content": null, "size": 141501 } ], "params": null, "metadata": null, "ipAddress": "172.24.0.1", "userLocation": null, "locationError": null, "userBrowser": null, "originHeader": "https://app.doxtly.com", "createdAt": "2026-09-11T11:30:32+02:00", "revision": 0, "editedAt": null, "editedBy": null, "editable": false, "uploads": []}Delete an interactive document submission
Section titled “Delete an interactive document submission”DELETE/v1/interactive-document-submissions/{id}
Deletes one submission, with its edit history, its filled documents, the files uploaded with it and the workflow runs it started (a run still under way goes once it ends).
Key permission: delete_interactive_document_submission (Delete interactive document 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/interactive-document-submissions/01a1abe4-da30-71fb-8b89-474d452171ba' \ -H "X-Api-Key: $DOXTLY_API_KEY" \ -H "X-Api-Secret: $DOXTLY_API_SECRET"The response is 204 with no body.
Download an interactive document submission file
Section titled “Download an interactive document submission file”GET/v1/interactive-document-submissions/{id}/files/{fileId}
Downloads a filled PDF, or a file uploaded with the submission: a form’s upload or a picture put into an image area, including one it was first sent with that an edit replaced. This is how the filled copy of an agreement reaches your document archive.
Key permission: download_interactive_document_submission_file (Download interactive document submission file)
Headers: X-Api-Key, X-Api-Secret
Path parameters: id, the submission’s identifier, and fileId, a fileId from files or uploads, or the part after file: in data.
Response: 200, with the file itself as the body, served as an attachment in the same way as a form submission’s file.
| Status | When |
|---|---|
404 |
No such submission, or the file doesn’t belong to it. |
The errors every endpoint can answer apply here too.
Example
Section titled “Example”curl 'https://api.doxtly.com/v1/interactive-document-submissions/01a1ab08-05c7-7097-812c-9a9d03a0fd5c/files/01a1ab08-078a-76bb-9dc6-f9766cec3652' \ -H "X-Api-Key: $DOXTLY_API_KEY" \ -H "X-Api-Secret: $DOXTLY_API_SECRET" \ -o invoice-request-1.pdfThe response is the file itself. Its headers:
HTTP/2 200content-type: application/pdfcontent-disposition: attachment; filename=invoice-request-1.pdfcontent-length: 141501