API overview
An API is a way for one program to talk to another with nobody clicking anything. The Doxtly API lets your own software do what your team does in the app: generate a contract from your CRM, pull new form submissions into your reporting, upload a file to a connected drive, or send a templated email when an order ships. If a task repeats and the data already sits in another system, the API is how you stop copying it by hand.
Requests and answers are plain JSON over HTTPS. Software signs in with an access key, which belongs to your organization and can do only what you gave it.
What it is good for
Section titled “What it is good for”Here is how Northbridge Advisory, a consulting and training firm, might use it:
- A deal opens in the CRM. The CRM sends the client’s details to
POST /v1/generateand gets a finished NDA back as a PDF, which it attaches to the deal. Nobody retypes a company name. - Every night, a script reads the day’s client satisfaction answers from
GET /v1/submissionsand loads them into the reporting tool. - The booking system sends each new participant the pre-course form with
POST /v1/forms/{id}/send-link. - A partner’s system calls a webhook with a new client, and a workflow takes care of the onboarding.
You don’t need to be a developer to get this going. Someone with access to the app creates the key and picks what it may do. The calls themselves are written by a developer, or set up in whatever integration tool your company uses. If that is your split, your part ends with handing over the two values of the key, through a password manager rather than an email.
Your first call
Section titled “Your first call”-
In the app, open Organization → Access keys and click New access key. Give it a name, pick the List forms permission and save. The full walkthrough is in access keys.
-
Copy the API key and the API secret from the dialog. The secret is shown only this once.
-
Call the API with both values in headers:
Terminal window curl "https://api.doxtly.com/v1/forms?perPage=5" \-H "X-Api-Key: $DOXTLY_API_KEY" \-H "X-Api-Secret: $DOXTLY_API_SECRET" \-H "Accept-Language: en" -
You get back your forms as
items, with paging details inmeta:{"items": [{"id": "01a1aaf9-fcea-7500-823e-03361cb8ad39","publicToken": "NZ7j2ovVQaSjYDcO3v5ijV6_Kq-NRU4lq9ZhMJ01SIE","answersById": true,"title": "Client onboarding","isActive": true,"schemaVersion": 2,"submissionsCount": 21,"viewsCount": 7,"opensCount": 7,"createdAt": "2026-08-01T10:00:00+02:00","updatedAt": "2026-11-05T10:44:40+01:00"}],"meta": {"total": 29,"page": 1,"perPage": 5,"totalPages": 6,"hasMore": true,"hasPrevious": false}}This answer is shortened to one item. If you get an error instead, the body says what went wrong, and the errors page tells you what to do about it.
Base URL
Section titled “Base URL”https://api.doxtly.comEvery endpoint starts with /v1, so the forms list is https://api.doxtly.com/v1/forms.
You do not have to say which organization you mean. The key decides that: a request made with a key always acts in the key’s own organization. Your organization’s own API address, https://<your-subdomain>.api.doxtly.com, works as well, but it adds nothing. If the subdomain in the address is not the key’s organization, the API answers 404.
Versioning
Section titled “Versioning”The version is the /v1 at the start of the path. There is no version header and nothing to negotiate.
The OpenAPI description
Section titled “The OpenAPI description”The whole API is also described in one OpenAPI 3.1 file: every operation an access key can call, with its parameters, the shape of each answer and the operation it needs. Load it into Postman or Insomnia, or generate a client for your language from it. The file is not public. Whoever may manage access keys downloads it in the app: open Organization → Access keys and click Download API description (OpenAPI). It always matches the version of Doxtly you are using, so download it again after an update.
What the API covers
Section titled “What the API covers”A key reaches the resources in this table. All endpoints lists every call on one page, with the permission it needs.
| Resource | What you can do |
|---|---|
| Templates | Upload, change and duplicate document templates, turn a Word document into a PDF template’s file, read the data they need, follow a file in a drive. |
| Generated files | Generate a PDF from a template, then list, download and delete what was generated. |
| Forms | Create, change, duplicate and export forms, send a form’s link. |
| Form submissions | Read and delete what people sent, download their files, read a form’s results and its saved reports. |
| Payments | List the payments your forms took, read one with its attempts and refunds, refund in full or in part. |
| Interactive documents | Create, change, duplicate and export interactive documents, send their link by email. |
| Interactive document submissions | Read and delete what people completed, download the files. |
| Quizzes | Create, change, duplicate and export quizzes, send invitations, read and grade attempts, read and export results. |
| Grading scales | Manage the scales that turn a quiz’s score into a grade. |
| Learning platforms (LTI) | Register Doxtly in Moodle, Canvas or Teams and manage the registrations. |
| Surveys | The same as for quizzes, under /v1/surveys, for surveys and their responses. |
| Themes of public pages | Manage the themes your quizzes, surveys, forms and interactive documents are shown in. |
| Document packages | Create, send and follow signing packages, download their documents and certificates, act on many at once. |
| Email templates | Create, change, duplicate and export email templates and notifications, read the data they expect. |
| SMS and WhatsApp templates | Create and change text message templates, read what was sent. |
| Sending emails | Send an email template to your recipients. |
| Cloud files | Browse connected drives, upload, download, move and delete files. |
| Data sources | Check and refresh the spreadsheets and JSON files your forms and PDF templates read, and preview what a file holds. |
| Contacts | Keep your address book in step with another system, with notes and history. |
| Contact types | Manage the types contacts are sorted into. |
| Companies | Keep the companies of your address book, with their documents and personal links. |
| Custom fields | Manage the fields of your own that contacts and companies carry. |
| Personal links | Send a contact or a company a link to a form, an interactive document, a quiz or a survey that fills in their details, follow it and revoke it. |
| Workflows | Build, duplicate and export workflows from code, read their runs and group them in categories. |
| Incoming webhooks | Manage webhooks and read the requests they received. |
| Outgoing webhooks | Subscribe your system to Doxtly’s events and follow what was delivered. |
| MCP server | Let an AI agent such as Claude Code or Cursor generate documents, send them to sign and find records, with a key’s permissions. |
What the API doesn’t cover
Section titled “What the API doesn’t cover”Everything else lives in the app, or works through a workflow. Check this section before you plan an integration around something.
Signing
Section titled “Signing”You can create and send signing packages through the Document packages operations. A key can also run them through a workflow, as below.
-
Start it with a webhook. Build a workflow with the Webhook request trigger and a Create documents step. Your system calls the webhook with the client’s data, and the run makes the package.
-
Hand over the signing links, if you want them. The step asks each party to sign when their turn begins, as its Signature request says. To send the personal links to your own system as well, follow it with a Webhook step:
{ "orderId": "{{ order.id }}", "signingUrl": "{{ _recipients.CLIENT.signingUrl }}" } -
Hear how it went. Build a second workflow on the package’s document type, with the trigger The package is fully signed, A party signs or A party declines to sign. A Webhook step there reports to your system, with
{{ _package.id }},{{ _package.title }}and the data of the run that made the package. -
Collect the signed file. A Webhook step sends no files. Add an Upload to the cloud step to the second workflow, and read the file with Download a file. Without a drive, a Send email step can attach it.
To check on the first part, read the run your webhook call started. Its Create documents step names the package it made under links. Everything else about signing is in Documents and e-signatures.
Organization and people
Section titled “Organization and people”There are no endpoints for your organization. A key cannot read or change users, invitations, roles, departments, settings, integrations, the subscription or invoices. All of this is done in the app by someone with the right role. Access keys themselves are created there too, so a key can never make or widen one.
A key belongs to the organization and acts for it, not for a person, so there is no “current user” to ask about either.
Other things you may look for
Section titled “Other things you may look for”| You may look for | What to do |
|---|---|
| Events pushed to your system | Subscribe to them with an outgoing webhook. For more than an event’s data, or to act on it first, use a workflow: pick the trigger you care about and add a Webhook step. |
| Submitting a form from code | People fill forms in through the public link or an embedded form. To hand Doxtly data from your system, call a webhook. |
| Editing a submission, or releasing it from spam | In the app, under Submissions. |
| The list of sent emails, or a preview | List the sent emails with a key. A preview is in the app, in the designer’s preview. |
| Switching a workflow on or off | Send isActive when you replace the workflow. |
| Running a failed run again | Rerun the run, or do it in the app on the run’s page. |
| Importing a form from a link | In the app, under Import a form from a link. |
| Questions read from a Word file or drafted with AI | In the app, in the quiz or survey designer: Import questions and Draft with AI. GIFT, Aiken, Moodle XML and sheets have an endpoint. |
| AI agents, the PDF editor | In the app. A key cannot add an AI agent step to a workflow either. |
| Portals | In the app, under Resources > Portals. There are no endpoints for them, and a key is refused every portal operation. |
Authentication lists what a key is refused, area by area.
Sending requests
Section titled “Sending requests”| Topic | Convention |
|---|---|
| Transport | HTTPS only. |
| Authentication | X-Api-Key and X-Api-Secret headers on every request. See authentication. |
| Request bodies | JSON, sent with Content-Type: application/json, unless an endpoint takes a file upload as multipart/form-data. Those say so on their reference page. A body with no Content-Type, or with a type such as text/plain, gets 415. Other types, such as form data, fail validation or get 400. JSON is read strictly: a number where text belongs is refused, not converted. Inside a form’s schema or a workflow node’s settings, a wrong type isn’t always refused, so read back what you saved. |
| Identifiers | UUIDs, in the usual lower-case form, such as 01a1aaf9-fcea-7500-823e-03361cb8ad39. |
| Unknown fields | Fields the API doesn’t know are ignored, so a misspelled optional field does nothing and raises no error. |
| Field names | camelCase in JSON: createdAt, expiresAt. |
| Language | Send Accept-Language: en or Accept-Language: pl. See below. |
| Tracing | Each response from an endpoint carries an X-Request-ID header. You can send your own UUID in that header and it comes back unchanged. Anything else you send there is replaced with a new one. |
The examples use https://api.doxtly.com and read the key from two environment variables. The authentication page explains the headers they go into. The responses are real ones, from a demo organization.
export DOXTLY_API_KEY="your-api-key"export DOXTLY_API_SECRET="your-api-secret"Language of the answers
Section titled “Language of the answers”The API speaks the app’s 14 languages: Polish (pl), English (en), Spanish (es), German (de), Portuguese (pt), French (fr), Ukrainian (uk), Thai (th), Chinese (zh), Hindi (hi), Arabic (ar), Japanese (ja), Turkish (tr) and Italian (it). It picks the language from Accept-Language. The answer’s Content-Language header says which one you got.
Dates and times
Section titled “Dates and times”Dates in responses are ISO 8601 with an offset, such as 2026-11-05T14:30:00+01:00. Read the offset instead of assuming UTC, because it changes with the clocks.
When you send a date and time, send the offset too. A value with an offset is compared as the exact moment it names. A value without one, including a bare date such as 2026-11-05, is read in the API’s own time zone, which is Poland’s (Europe/Warsaw).
Reading responses
Section titled “Reading responses”| Status | Meaning |
|---|---|
200 |
It worked, and the body holds the result. |
201 |
A record was created. The body holds it, and most endpoints also add a Location header with its path. |
204 |
It worked and there is nothing to return. Deletions usually answer this way. |
4xx, 5xx |
Something went wrong. The body explains what. See errors. |
Download endpoints return the file itself rather than JSON. A field with no value usually comes back as null rather than being left out.
Most endpoints that return many records work the same way, so everything in this section applies to all of them:
GET /v1/formsGET /v1/templatesGET /v1/generated_filesGET /v1/email_templatesGET /v1/submissionsGET /v1/interactive-documentsGET /v1/interactive-document-submissionsGET /v1/workflowsGET /v1/workflow_executionsGET /v1/incoming_webhooksGET /v1/incoming_webhook_requestsGET /v1/document_packagesGET /v1/contactsGET /v1/contacts/{id}/documentsGET /v1/companiesGET /v1/companies/{id}/documentsGET /v1/text_message_templatesGET /v1/text_message_sendingsGET /v1/quizzesGET /v1/quizzes/{id}/attemptsGET /v1/surveysGET /v1/surveys/{id}/attemptsGET /v1/paymentsGET /v1/payments/refundsGET /v1/outgoing_webhooksGET /v1/outgoing_webhooks/{id}/deliveriesA few lists are different. GET /v1/workflow_categories, GET /v1/contact_types, GET /v1/custom_fields, GET /v1/cloud_files/storages and GET /v1/cloud_files/storages/needs_reconnect return everything at once, with no paging, and so do the lists that belong to one record, such as a contact’s notes or a package’s identity checks. The contents of a cloud folder come in pages you move through with a token instead of a page number, as cloud files explains.
Pagination
Section titled “Pagination”| Parameter | Default | Allowed |
|---|---|---|
page |
1 |
1 or more |
perPage |
20 |
1 to 1000, or -1 for the largest page, 1000 records |
Anything outside these gets 400. The meta object tells you where you are:
| Field | Meaning |
|---|---|
total |
Records across all pages, after your filters |
page |
The page you got |
perPage |
The page size that was applied |
totalPages |
How many pages there are |
hasMore |
Whether a page follows this one |
hasPrevious |
Whether a page comes before this one |
To read everything, keep asking for the next page until hasMore is false. A page past the end is not an error: it comes back with empty items. Records that tie on your sort order keep a fixed order between requests, so nothing repeats or goes missing because of ties.
For a nightly copy you rarely want everything. Remember when the last run started, ask only for what came in since then, oldest first, and page through that:
GET /v1/submissions?filter[createdAt][gte]=2026-11-04T02:00:00%2B01:00&sort=createdAt&perPage=100Sorting
Section titled “Sorting”Pass sort with one or more field names, separated by commas. A minus sign means descending.
GET /v1/forms?sort=-createdAtGET /v1/forms?sort=title,-createdAtLong text and JSON fields cannot be sorted on. Asking for one, or for a field that does not exist, gets 400.
Send sort whenever the order matters to you. Without it, a list stays in the same order from page to page, but that order usually isn’t by date.
Filtering
Section titled “Filtering”A filter names a field and an operator:
filter[<field>][<operator>]=<value>GET /v1/forms?filter[isActive][eq]=trueGET /v1/forms?filter[createdAt][between]=2026-01-01,2026-02-01GET /v1/forms?filter[isActive][eq]=true&filter[viewsCount][gte]=100When you send several filters, a record must match all of them.
| Operator | Matches when the field | Value |
|---|---|---|
eq |
equals the value | one value |
neq |
differs from the value | one value |
gt, gte |
is greater than, or greater than or equal to, the value | one value |
lt, lte |
is less than, or less than or equal to, the value | one value |
like |
matches a pattern. Text fields only. % stands for any characters, _ for exactly one, and case matters. |
a pattern, such as %NDA% |
in |
is one of the values | values separated by commas |
notIn |
is none of the values | values separated by commas |
between |
lies between two values, both included | exactly two values separated by a comma |
isNull |
has no value | none needed: filter[field][isNull]=1 |
isNotNull |
has a value | none needed |
Each value has to suit its field. A UUID field takes a UUID, a number field takes a number, a yes-or-no field takes true or false, and a date field takes a real date. Anything else gets 400, and so does an unknown field or operator. That is on purpose: a filter that the API could not apply never quietly gives you the unfiltered list.
Field names are those of the stored record and usually match the JSON you get back. You cannot compare JSON fields, or filter on secrets such as passwords and tokens. Some lists also let you filter by a field of a related record, for example filter[template.type][eq]=word, and some add filters of their own. A path a list does not offer gets 400.
Search
Section titled “Search”search looks for text in the fields you name, ignoring case:
GET /v1/forms?search[title]=client%20onboardingEvery word must appear, in any order, and when you name several fields, each word may turn up in any of them. Unlike in like, a % or _ here is just that character. Only text fields can be searched, and an empty search is ignored. A search that names no field, such as ?search=anna, is refused with 400. You can combine search with filters, sorting and paging.
Limits
Section titled “Limits”There is no fixed quota of requests per minute for access keys, and responses carry no rate limit headers. Other limits do apply, so build your integration to expect them:
- Plan limits. Whatever you create or generate through the API counts towards your plan exactly as it does in the app. Once you reach a limit, the API answers
403and says which one. See plans and limits. - Heavy parallel traffic. Too many requests in flight at the same moment can get
503. Keep parallelism modest, send large uploads one after another, and wait a little before you retry. - Bulk actions. Your organization can start 30 actions on many packages at once an hour, through the API and in the app together. One more gets
429: try again later. - Connected services. A drive such as Google Drive can throttle you. The API passes this on as
429with the coderate_limited. - Webhooks. Your organization’s own webhook rate limits apply to calls to webhook addresses. A webhook that checks a token or an access key may turn them off in its settings. One without authentication can’t.
- File sizes. A request whose body is too large gets
413. Limits for each upload are on the reference pages. - AI agents. Through the MCP server a key can call 120 tools a minute.
Retries and idempotency
Section titled “Retries and idempotency”The API endpoints have no idempotency keys. If a POST times out on your side, it may still have worked, and sending it again can create a second record or send a second email. Before you retry a creation, check whether the record exists. GET, PUT and DELETE are safe to repeat, except that a repeated DELETE answers 404 once the record is gone.
Webhook addresses are the exception. A webhook takes an Idempotency-Key header and treats a repeat as the same delivery. Calling a webhook explains how.
Calling from a browser
Section titled “Calling from a browser”The API is for server-to-server use. Browsers on other websites are refused by its cross-origin rules, and that protects you: a key placed in a web page is a key anyone can read. If you need something public on your site, use an embedded form instead.
Webhooks
Section titled “Webhooks”A webhook is an address in Doxtly that other systems call to start your workflows. The choice between the two usually comes down to who needs what. If your system wants something from Doxtly right now, such as a PDF or a list of submissions, call the API. If your system only needs to say that something happened and let Doxtly take it from there, call a webhook.
Webhooks can take an access key, a token or nothing, and can also check a signature on what they receive. Their addresses, signing schemes and answers are covered in the webhooks section, and the authentication page explains the part that involves keys.