Interactive documents
These endpoints manage interactive documents from code and send their link to the people who should fill them in. What comes back is on Interactive document submissions. Interactive documents overview explains what they are.
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.
An interactive document is a list of PDF templates and web forms a person fills in behind one link. Through the API you decide what’s on it, and how the link behaves.
List interactive documents
Section titled “List interactive documents”GET/v1/interactive-documents
Your interactive documents, with what’s on each and how much it’s used.
Key permission: get_interactive_documents (List interactive documents)
Headers: X-Api-Key, X-Api-Secret
Query parameters: the list parameters. Filter by id, title, description, isActive, viewsCount, opensCount, createdAt and updatedAt, and sort by any of them except description. Search by title or description.
Response: 200, with these fields for each item:
| Field | Type | Meaning |
|---|---|---|
id |
string | Its identifier. |
publicToken |
string | The token in the document’s public address (/i/{publicToken}). Always present. |
answersById |
boolean | true for a document made before public tokens that still opens at its id too (/i/{id}), as its old links and QR codes use it, until you generate a new address. Always false for a document made since. |
title |
string | Its title. |
description |
string or null | Its description. |
isActive |
boolean | Whether its link takes submissions. |
hasPassword |
boolean | Whether its link asks for a password. |
documentsCount |
integer | How many PDF templates it holds. |
formsCount |
integer | How many web forms it holds. |
submissionsCount |
integer | How many submissions it has. |
viewsCount, opensCount |
integer | Counted as for forms. |
createdAt, updatedAt |
string | When it was created and last changed. |
| 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/interactive-documents' \ -H "X-Api-Key: $DOXTLY_API_KEY" \ -H "X-Api-Secret: $DOXTLY_API_SECRET" \ --data-urlencode 'search[title]=starter' \ --data-urlencode 'sort=-createdAt' \ --data-urlencode 'perPage=2'Response 200:
{ "items": [ { "id": "01a1ab08-0438-7d85-a9a0-2011e9da6ff3", "publicToken": "r-L52Yz9QkKBsTnpaI4uW1LbSY5lFEuLhFjcZD0Oo_Y", "answersById": true, "title": "Client starter pack", "description": "Your details and your invoice information in one go.", "isActive": true, "hasPassword": false, "documentsCount": 1, "formsCount": 1, "submissionsCount": 11, "viewsCount": 1, "opensCount": 1, "createdAt": "2026-08-03T10:00:00+02:00", "updatedAt": "2026-09-22T10:00:00+02:00" } ], "meta": { "total": 1, "page": 1, "perPage": 2, "totalPages": 1, "hasMore": false, "hasPrevious": false }}Create an interactive document
Section titled “Create an interactive document”POST/v1/interactive-documents
Puts existing PDF templates and forms together behind a new link. Create those first: a document only points at them.
Key permission: create_interactive_document (Create interactive document)
Headers: X-Api-Key, X-Api-Secret, Content-Type: application/json
Request body:
| Field | Type | Required | Rules |
|---|---|---|---|
title |
string | Yes | Not blank, up to 255 characters. |
items |
array | Yes | At least one, in the order the visitor sees them. |
items[].type |
string | Yes | document for a PDF template, form for a web form, attachment for a file the person is asked to add. |
items[].id |
string | Yes | The UUID of the template or the form. Nothing can be placed twice. |
items[].attachment |
object | For attachment |
What the position asks for: dataPath (where the files arrive in the data, required, letters, digits, dots and underscores, unique within the document), labels and descriptions (by language code; labels required in your organization’s default language), required, types, maxFiles, combineImages. For an attachment position items[].id is the position’s own id. |
items[].title |
string or null | No | The name shown to the visitor. Left out, it’s the template’s or the form’s. |
items[].partyIndicator |
string or null | Depends | For a document whose areas are addressed to several parties, the party this document is filled for. Capitals, digits and _, starting with a capital. With one party or none, it’s worked out and your value isn’t used. Not used for a form either. |
description |
string or null | No | Default null. |
isActive |
boolean | No | Default true. |
settings |
object or null | No | See Settings of an interactive document. |
themeId |
string or null | No | The theme of its public page, as for a form: left out, a new document gets your organization’s default theme and an update keeps the document’s own. |
newTheme |
object or null | No | A theme to make as this is saved, {name, tokens}, as an import’s resolve plans one. It replaces themeId; a theme you already have with the same tokens is reused. |
Response: 201, the document as in Get an interactive document, with a Location header such as /v1/interactive-documents/01a1abe4-c703-7f4e-a7f7-5e961898f511.
| Status | When |
|---|---|
400 |
A template or a form isn’t found in your organization. |
400 |
A template isn’t a PDF template. |
400 |
Something is placed twice. |
400 |
A template addresses several parties and partyIndicator doesn’t name one of them. The message lists them. |
400 |
passwordGuessingProtection is captcha and the document has a password, but no active reCAPTCHA integration has passed its test. |
403 |
Your plan doesn’t include interactive documents, or its limit of them is reached. |
422 |
A field of the body breaks its rules. |
The errors every endpoint can answer apply here too.
Example
Section titled “Example”curl -X POST 'https://api.doxtly.com/v1/interactive-documents' \ -H "X-Api-Key: $DOXTLY_API_KEY" \ -H "X-Api-Secret: $DOXTLY_API_SECRET" \ -H 'Content-Type: application/json' \ -d '{ "title": "Service agreement pack", "description": "Agreement and the partner details form", "items": [ { "type": "document", "id": "01a1aaf4-da3f-7427-bc4f-b3c2725a9c22", "title": "Invoice request", "partyIndicator": "CLIENT" }, { "type": "form", "id": "01a1abe4-735c-76f4-9892-0edeaaad3cb3" } ], "settings": { "submitLabels": { "en": "Submit documents" }, "submissionTitle": "Pack from {{ company }}", "successMessage": "Thank you. We have your documents.", "allowSubmissionEditing": true } }'Response 201:
{ "id": "01a1abe4-c703-7f4e-a7f7-5e961898f511", "publicToken": "00lXbuSaK-5nAJ1APd7GSzdfyYfSc-e0W_emEiOyulc", "answersById": false, "title": "Service agreement pack", "description": "Agreement and the partner details form", "isActive": true, "hasPassword": false, "items": [ { "id": "01a1abe4-c704-72b3-bb6d-0dbe308a7024", "type": "document", "referenceId": "01a1aaf4-da3f-7427-bc4f-b3c2725a9c22", "referenceName": "Invoice request", "title": "Invoice request", "partyIndicator": "CLIENT", "position": 0, "attachment": null }, { "id": "01a1abe4-c704-72d7-bb6d-0dbe310469da", "type": "form", "referenceId": "01a1abe4-735c-76f4-9892-0edeaaad3cb3", "referenceName": "Partner intake 2027", "title": "Partner intake 2027", "partyIndicator": null, "position": 1, "attachment": null } ], "settings": { "submitLabels": { "en": "Submit documents" }, "submissionTitle": "Pack from {{ company }}", "successMessage": "Thank you. We have your documents.", "password": null, "metadata": null, "queryParams": null, "originValidation": null, "ipBlacklist": null, "saveUserLocation": false, "saveSubmissionData": true, "useRateLimits": true, "allowSubmissionEditing": true, "passwordGuessingProtection": "rate_limits", "recaptchaIntegrationId": null }, "submissionsCount": 0, "viewsCount": 0, "opensCount": 0, "createdAt": "2026-11-05T14:27:39+01:00", "updatedAt": "2026-11-05T14:27:39+01:00"}Get an interactive document
Section titled “Get an interactive document”GET/v1/interactive-documents/{id}
The whole document, with its positions and settings.
Key permission: read_interactive_document (Read interactive document)
Headers: X-Api-Key, X-Api-Secret
Path parameters: id, the document’s identifier.
Response: 200:
| Field | Type | Meaning |
|---|---|---|
id, publicToken, answersById, title, description, isActive, hasPassword |
As in the list. | |
items |
array | Its positions, in order, described below. |
settings |
object | Its settings. Every key is present. |
themeId |
string | The theme of its public page; every document has one, standard for the look of before themes. |
submissionsCount, viewsCount, opensCount |
integer | As in the list. |
createdAt, updatedAt |
string | When it was created and last changed. |
Each entry of items:
| Field | Type | Meaning |
|---|---|---|
id |
string | The position itself. |
type |
string | document, form or attachment. |
referenceId |
string | The template or the form behind it. |
referenceName |
string | That template’s or form’s name. |
title |
string | The name shown to the visitor. |
partyIndicator |
string or null | The party it’s filled for. |
position |
integer | Its place, from 0. |
settings.password holds the password only when the key also has update_interactive_document, create_interactive_document, delete_interactive_document, delete_interactive_document_submission or send_interactive_document_link. Any other key gets null, and can tell from hasPassword that there is one.
| Status | When |
|---|---|
404 |
No such document in your organization. |
The errors every endpoint can answer apply here too.
Example
Section titled “Example”curl 'https://api.doxtly.com/v1/interactive-documents/01a1abe4-c703-7f4e-a7f7-5e961898f511' \ -H "X-Api-Key: $DOXTLY_API_KEY" \ -H "X-Api-Secret: $DOXTLY_API_SECRET"Response 200:
{ "id": "01a1abe4-c703-7f4e-a7f7-5e961898f511", "publicToken": "00lXbuSaK-5nAJ1APd7GSzdfyYfSc-e0W_emEiOyulc", "answersById": false, "title": "Service agreement pack", "description": "Agreement and the partner details form", "isActive": true, "hasPassword": false, "items": [ { "id": "01a1abe4-c704-72b3-bb6d-0dbe308a7024", "type": "document", "referenceId": "01a1aaf4-da3f-7427-bc4f-b3c2725a9c22", "referenceName": "Invoice request", "title": "Invoice request", "partyIndicator": "CLIENT", "position": 0, "attachment": null }, { "id": "01a1abe4-c704-72d7-bb6d-0dbe310469da", "type": "form", "referenceId": "01a1abe4-735c-76f4-9892-0edeaaad3cb3", "referenceName": "Partner intake 2027", "title": "Partner intake 2027", "partyIndicator": null, "position": 1, "attachment": null } ], "settings": { "submitLabels": { "en": "Submit documents" }, "submissionTitle": "Pack from {{ company }}", "successMessage": "Thank you. We have your documents.", "password": null, "metadata": null, "queryParams": null, "originValidation": null, "ipBlacklist": null, "saveUserLocation": false, "saveSubmissionData": true, "useRateLimits": true, "allowSubmissionEditing": true, "passwordGuessingProtection": "rate_limits", "recaptchaIntegrationId": null }, "submissionsCount": 0, "viewsCount": 0, "opensCount": 0, "createdAt": "2026-11-05T14:27:39+01:00", "updatedAt": "2026-11-05T14:27:39+01:00"}Update an interactive document
Section titled “Update an interactive document”PUT/v1/interactive-documents/{id}
Replaces the document with what you send. A position that still points at the same template or form is kept, so reordering or renaming doesn’t replace it. Positions you leave out are removed.
Key permission: update_interactive_document (Update interactive document)
Headers: X-Api-Key, X-Api-Secret, Content-Type: application/json
Path parameters: id, the document’s identifier.
Request body: the same as Create an interactive document.
Response: 200, the document as in Get an interactive document.
| Status | When |
|---|---|
400 |
As for Create an interactive document, apart from the plan’s limit. |
404 |
No such document in your organization. |
422 |
A field of the body breaks its rules. |
The errors every endpoint can answer apply here too.
Example
Section titled “Example”curl -X PUT 'https://api.doxtly.com/v1/interactive-documents/01a1abe4-c703-7f4e-a7f7-5e961898f511' \ -H "X-Api-Key: $DOXTLY_API_KEY" \ -H "X-Api-Secret: $DOXTLY_API_SECRET" \ -H 'Content-Type: application/json' \ -d '{ "title": "Service agreement pack", "description": "The partner details form and the agreement", "isActive": true, "items": [ { "type": "form", "id": "01a1abe4-735c-76f4-9892-0edeaaad3cb3" }, { "type": "document", "id": "01a1aaf4-da3f-7427-bc4f-b3c2725a9c22", "partyIndicator": "CLIENT" } ], "settings": { "submitLabels": { "en": "Submit documents" }, "allowSubmissionEditing": true } }'Response 200:
{ "id": "01a1abe4-c703-7f4e-a7f7-5e961898f511", "publicToken": "00lXbuSaK-5nAJ1APd7GSzdfyYfSc-e0W_emEiOyulc", "answersById": false, "title": "Service agreement pack", "description": "The partner details form and the agreement", "isActive": true, "hasPassword": false, "items": [ { "id": "01a1abe4-c704-72b3-bb6d-0dbe308a7024", "type": "document", "referenceId": "01a1aaf4-da3f-7427-bc4f-b3c2725a9c22", "referenceName": "Invoice request", "title": "Invoice request", "partyIndicator": "CLIENT", "position": 1, "attachment": null }, { "id": "01a1abe4-c704-72d7-bb6d-0dbe310469da", "type": "form", "referenceId": "01a1abe4-735c-76f4-9892-0edeaaad3cb3", "referenceName": "Partner intake 2027", "title": "Partner intake 2027", "partyIndicator": null, "position": 0, "attachment": null } ], "settings": { "submitLabels": { "en": "Submit documents" }, "submissionTitle": null, "successMessage": null, "password": null, "metadata": null, "queryParams": null, "originValidation": null, "ipBlacklist": null, "saveUserLocation": false, "saveSubmissionData": true, "useRateLimits": true, "allowSubmissionEditing": true, "passwordGuessingProtection": "rate_limits", "recaptchaIntegrationId": null }, "submissionsCount": 0, "viewsCount": 0, "opensCount": 0, "createdAt": "2026-11-05T14:27:39+01:00", "updatedAt": "2026-11-05T14:27:40+01:00"}Delete an interactive document
Section titled “Delete an interactive document”DELETE/v1/interactive-documents/{id}
Deletes the document for good. The templates and forms it pointed at stay.
Key permission: delete_interactive_document (Delete interactive document)
Headers: X-Api-Key, X-Api-Secret
Path parameters: id, the document’s identifier.
Response: 204, with no body.
| Status | When |
|---|---|
404 |
No such document in your organization. |
409 |
Workflows still use it (code used_by_workflows, with workflows: their id and name). Change them first. |
The errors every endpoint can answer apply here too.
Example
Section titled “Example”curl -X DELETE 'https://api.doxtly.com/v1/interactive-documents/01a1abe4-c703-7f4e-a7f7-5e961898f511' \ -H "X-Api-Key: $DOXTLY_API_KEY" \ -H "X-Api-Secret: $DOXTLY_API_SECRET"The response is 204 with no body.
Duplicate an interactive document
Section titled “Duplicate an interactive document”POST/v1/interactive-documents/{id}/duplicate
Makes a new, inactive copy of an interactive document, for example the same agreement pack for another kind of client. The copy has the original’s description, every setting, its password and theme, and the same positions in the same order, each pointing at the same template or form and asking for the same files. It takes the title you send in title; without one, the original’s with the word for a copy at the end, in the language of the answers: “ (copy)” for Accept-Language: en, “ (copia)” for es, “ (Kopie)” for de and so on, “ (kopia)” when you send none. The original’s title is shortened so that the two fit in 255 characters. To switch it on, use Update an interactive document.
A copy has its own identifier, link and positions, with no submissions, views or opens. A workflow started by the original doesn’t start from the copy. See Duplicating an interactive document.
Key permission: duplicate_interactive_document (Duplicate interactive document)
Headers: X-Api-Key, X-Api-Secret
Path parameters: id, the document’s identifier.
Body: optional.
| Field | Type | Description |
|---|---|---|
title |
string | The copy’s title, up to 255 characters, spaces around it removed. Leave it out for the original’s title with the word for a copy after it. |
Response: 201, with the copy in the shape of Get an interactive document, and its path in the Location header.
| Status | When |
|---|---|
403 |
Your plan’s limit of interactive documents is reached. Nothing is created. |
404 |
No such document in your organization. |
422 |
title is blank or longer than 255 characters. |
The errors every endpoint can answer apply here too.
Example
Section titled “Example”curl -X POST 'https://api.doxtly.com/v1/interactive-documents/01a1abe4-c703-7f4e-a7f7-5e961898f511/duplicate' \ -H "X-Api-Key: $DOXTLY_API_KEY" \ -H "X-Api-Secret: $DOXTLY_API_SECRET" \ -H 'Content-Type: application/json' \ -d '{"title":"Service agreement pack, partners"}'Response 201, with settings trimmed:
{ "id": "01a1b3c0-1e2a-7c55-9d1f-4b7e2a90c6d3", "publicToken": "Qm4vT0c1x9bZr2LkS8yWnJ3pHfE6aUdD-oN5iGtVwYc", "answersById": false, "title": "Service agreement pack, partners", "description": "Agreement and the partner details form", "isActive": false, "hasPassword": false, "items": [ { "id": "01a1b3c0-1e2b-70a4-8e61-2f9d5b7c3a18", "type": "document", "referenceId": "01a1aaf4-da3f-7427-bc4f-b3c2725a9c22", "referenceName": "Invoice request", "title": "Invoice request", "partyIndicator": "CLIENT", "position": 0, "attachment": null }, { "id": "01a1b3c0-1e2b-70a4-8e61-2f9d5c0e7b45", "type": "form", "referenceId": "01a1abe4-735c-76f4-9892-0edeaaad3cb3", "referenceName": "Partner intake 2027", "title": "Partner intake 2027", "partyIndicator": null, "position": 1, "attachment": null } ], "settings": { "submissionTitle": "Pack from {{ company }}", "allowSubmissionEditing": true }, "submissionsCount": 0, "viewsCount": 0, "opensCount": 0, "themeId": "standard", "createdAt": "2026-11-22T10:12:04+01:00", "updatedAt": "2026-11-22T10:12:04+01:00"}Export an interactive document
Section titled “Export an interactive document”GET/v1/interactive-documents/{id}/export
The document as it was last saved, as a portable file to import into this organization or another (Import and export). It holds the title, description, settings and positions; the templates and forms the positions show, and the reCAPTCHA integration, are requirements, named so the importing organization can pick its own. It never holds submissions or the password.
Key permission: export_interactive_document (Export interactive documents)
Headers: X-Api-Key, X-Api-Secret
Path parameters: id, the document’s identifier.
Response: 200, with format (doxtly.interactive), version, title, requirements and content. Importing it is done in the app.
| Status | When |
|---|---|
404 |
No such document in your organization. |
Send an interactive document’s link
Section titled “Send an interactive document’s link”POST/v1/interactive-documents/{id}/send-link
Sends the document’s public link to a list of people, each in a message of their own, by email, SMS or WhatsApp. It works exactly as Send a form’s link, with the key permission send_interactive_document_link, and the template gets {{ documentUrl }}, {{ documentName }}, {{ senderName }} and {{ organizationName }}. It answers 200 OK with the same fields; an inactive document answers 400, and an id that isn’t one of your documents 404.
curl -X POST 'https://api.doxtly.com/v1/interactive-documents/01a1ab08-0438-7d85-a9a0-2011e9da6ff3/send-link' \ -H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET" \ -H 'Content-Type: application/json' \ -d '{"channel":"email","recipients":["helena.lindqvist@fjordline.example"],"queryParams":{"client":"FJL-118"}}'{ "url": "https://northbridge.app.doxtly.com/i/r-L52Yz9QkKBsTnpaI4uW1LbSY5lFEuLhFjcZD0Oo_Y?client=FJL-118", "channel": "email", "sendings": [ { "recipient": "helena.lindqvist@fjordline.example", "status": "success", "id": "01a1ce9f-f549-71b1-9887-c845847ae34e", "errorMessage": null } ]}Settings of an interactive document
Section titled “Settings of an interactive document”settings mirrors a form’s settings wherever they still apply. Every key is optional.
| Key | Type | Default | What it does |
|---|---|---|---|
submitLabels |
object | null |
The text of the submit button per language, by language code. A value is at most 100 characters; a language not offered answers 422. |
submissionTitle |
string | null |
The title template of each submission, text with variables in the expression language, such as Pack from {{ company }}. A finished title longer than 255 characters is cut. A template that can’t be read, such as a {{ never closed or a function that doesn’t exist, answers 422. |
successMessage |
string | null |
What the visitor reads after submitting. Markdown works, with variables. One that can’t be read answers 422, as the title does. |
successMessages |
object | null |
The message in each language, by language code: { "en": "Thank you. We have your documents.", "pl": "Dziękujemy. Mamy Twoje dokumenty." }. Each version is up to 20,000 characters and is written as successMessage is. The page shows the version of its own language, else the browser’s, else your organization’s. A language code Doxtly doesn’t know, or a text that can’t be read, answers 422. When it’s given, successMessage holds its first version. |
successRedirect |
object | null |
Sends the visitor to another page in place of the message: { "url": "https://www.northbridge.example/thank-you", "params": [{ "name": "ref", "variable": "_submission.reference" }] }, as for a form. An http or https address, up to 30 parameters; otherwise 422. |
password |
string | null |
The password the link asks for. |
passwordGuessingProtection |
string | rate_limits |
rate_limits, captcha or none. Another value answers 422. |
recaptchaIntegrationId |
string | null |
The reCAPTCHA integration a CAPTCHA on the password is checked with. null uses your default. |
metadata |
object | null |
Fixed values for your workflows, under the same rules as a form’s. |
queryParams |
object | null |
Same as a form’s. |
originValidation |
object | null |
Same as a form’s. For the document’s link, list the app’s own address: with only your site on the list, everybody gets a not found page. |
ipBlacklist |
object | null |
Same as a form’s. |
saveUserLocation |
boolean | false |
Asks the visitor’s browser for their location, and keeps it. |
saveSubmissionData |
boolean | true |
Whether the values are kept once the documents are rendered. Off, your workflows don’t get them either. |
useRateLimits |
boolean | true |
Applies your rate limits to this link. |
allowSubmissionEditing |
boolean | false |
Lets your team correct a submission. While on, the values are kept whatever saveSubmissionData says. |
On a form placed on the document, only the document’s link parameters apply, not the form’s own.