Skip to content

Document packages

A document package is one or more documents sent to the people who sign them. An access key with the right operations does what a person does by hand: it puts a draft together, sends it, follows it, changes the deadline or a party, voids it and exports the signed files. A contract system, for example, can create the package when a deal closes and pull the signed PDF back when the last party has signed.

Everything here goes through the same checks as the application and the Create documents step, so a package a key can’t send is one a person couldn’t send either. A key is the organization’s and no one’s in particular: it reaches every package, whatever its department, and it is never a party.

Headers on every call: X-Api-Key, X-Api-Secret.

  1. Create a draft with POST /v1/document_packages.
  2. Upload each file with POST .../uploads and keep the fileId.
  3. Add the documents with POST .../documents.
  4. Name the parties with PUT .../recipients.
  5. Optionally ask POST .../send_readiness what’s still missing.
  6. Send with POST .../send.
  7. Follow it with GET .../{id}, or react to its events with a workflow.

GET/v1/document_packages

Key permission: get_document_packages

Parameter What it does
page, perPage Paging.
sort title, createdAt or expiresAt, with - for descending. A package with no deadline comes last. Also fields.<key>: see Find and sort by a field. For contracts, contractEnd (the last day in force) and contractAlertOn (the day the warning is about: the last day to give notice for a contract that renews, its last day for any other); a package that is no contract, or a contract without that day, comes last either way.
filter[fields.<key>][eq], [like], [gte], [lte] By a custom field of packages.
search[title] Packages whose title contains every word.
filter[search][like] Every word in the title or in a party’s name or email, or a whole phone number with its country code.
filter[status][eq] draft, pending, in_progress, completed, declined, not_approved, voided or expired.
filter[type.id][eq] One document type.
filter[batch.id][eq] The packages of one batch.
filter[dueSoon][eq]=true Still waiting, with a deadline within three days.
filter[createdAt][gte], filter[createdAt][lte] Created in that range.
filter[myResponsibility][eq], filter[awaitingMe][eq] These ask about the person calling. A key is no person, so with a key they find nothing.
filter[isContract][eq] true for contracts only, false for every other package.
filter[contractState][eq], filter[contractState][in] Contracts in that state today, or in any of a comma-separated list: upcoming, in_force, ending_soon, ended, terminated. A contract still being signed has no state, so it never matches. An unknown state answers 400.
filter[changeOf][eq] The changes of one contract, by the contract’s id: its annexes, endings and related documents.
group=contract A contract’s changes are no rows of their own: a contract is listed when it, or any change of it, matches the filters, and its item has changes: {count, matchingIds}: how many changes it has, and those of them the filters found (empty without filters). List its changes with filter[changeOf][eq]. The list is counted and paged by these rows. Without group the list is flat and changes is null; any other value of group answers 400.

Returns 200 OK with items and meta. Each item has id, title, number, description, typeId, typeName, visibilityMode, documentCount, recipientCount, derivedStatus, completionPercentage, createdAt, updatedAt, expiresAt, completedAt, canVoid, deadlineLocked, canManage, signingAuthMethod, sendBlockedReason, previewBlockedReason, isAwaitingMe and awaitingMeOnBehalfOf (for a key always false and empty: they are about the person calling) and waitingOn: the parties waiting now, the longest waiting first, as {name, isDepartment, waitingSince}. sendBlockedReason says, in a sentence, why a draft can’t go out yet, and is null otherwise. deadlineLocked is true when the package’s document type fixes the deadline, which then cannot be changed. typeId and typeName are the document type the package is filed under; a package nobody chose a type for is under the built-in General type, whose name comes in the request’s language until your organization renames it.

An item also has contract, where a contract stands today (the fields of the contract on a package without term), annex, what a change does to its contract, signedOutsideOn, the day a document added as signed outside Doxtly was signed, and changes. Each is null where it doesn’t apply.

Terminal window
curl -g 'https://api.doxtly.com/v1/document_packages?group=contract&filter[type.id][eq]=01a1cd1f-2c54-74fc-b780-2c6d0e391e3c&filter[search][like]=prices' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET"

The search found the annex, so its contract is the row, with the annex among matchingIds:

{
"items": [
{
"id": "01a1d674-3140-7538-be28-a1ae139bdf20",
"title": "Office cleaning - Brightway Facilities",
"number": "SUP/2026/014",
"typeName": "Supplier contracts",
"derivedStatus": "completed",
"contract": {
"state": "in_force",
"effectiveFrom": "2026-03-15",
"endsOn": "2027-03-31",
"terminatedOn": null,
"noticeDeadline": "2026-12-31",
"renews": true,
"signedOutsideOn": "2026-03-02"
},
"annex": null,
"signedOutsideOn": "2026-03-02",
"changes": {
"count": 1,
"matchingIds": [
"01a1d676-01d0-7222-a845-bf92018433ab"
]
}
}
],
"meta": {
"total": 1,
"page": 1,
"perPage": 20,
"totalPages": 1,
"hasMore": false,
"hasPrevious": false
}
}

Shortened to the fields this call is about.

Terminal window
curl -g 'https://api.doxtly.com/v1/document_packages?filter[status][eq]=in_progress&sort=-createdAt&perPage=10' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET"
{
"items": [
{
"id": "01a1ce78-7f77-771f-b6fe-fd90a48089b9",
"title": "Starter pack for Marek Nowak",
"number": "HR/2026/11/006",
"description": null,
"typeId": "01a1ab61-d445-7126-8a40-5948df0b589d",
"typeName": "Employment",
"visibilityMode": "all_documents",
"documentCount": 4,
"recipientCount": 2,
"derivedStatus": "in_progress",
"completionPercentage": 75,
"createdAt": "2026-11-12T07:36:05+01:00",
"updatedAt": "2026-11-12T07:56:05+01:00",
"expiresAt": "2026-11-26T07:36:05+01:00",
"completedAt": null,
"canVoid": true,
"deadlineLocked": false,
"sendBlockedReason": null,
"previewBlockedReason": null,
"isAwaitingMe": false,
"canManage": true,
"signingAuthMethod": "email_otp",
"awaitingMeOnBehalfOf": [],
"waitingOn": [
{
"name": "Julia Kowalska",
"isDepartment": false,
"waitingSince": "2026-11-12T07:36:05+01:00"
}
]
},
{
"id": "01a1ce75-f6bb-7e02-ad44-30e992ac78c2",
"title": "Statement of work for Halden Logistics",
"number": "SOW/26/0002",
"description": null,
"typeId": "01a1ab65-1618-7175-bb18-2e136c35d97c",
"typeName": "Statements of work",
"visibilityMode": "all_documents",
"documentCount": 1,
"recipientCount": 2,
"derivedStatus": "in_progress",
"completionPercentage": 0,
"createdAt": "2026-11-12T07:33:19+01:00",
"updatedAt": "2026-11-12T07:33:20+01:00",
"expiresAt": "2026-11-22T07:33:20+01:00",
"completedAt": null,
"canVoid": true,
"deadlineLocked": false,
"sendBlockedReason": null,
"previewBlockedReason": null,
"isAwaitingMe": false,
"canManage": true,
"signingAuthMethod": "sms_otp",
"awaitingMeOnBehalfOf": [],
"waitingOn": [
{
"name": "Sarah Whitfield",
"isDepartment": false,
"waitingSince": "2026-11-12T07:33:20+01:00"
}
]
}
],
"meta": {
"total": 13,
"page": 1,
"perPage": 10,
"totalPages": 2,
"hasMore": true,
"hasPrevious": false
}
}

Shortened: each list shows its first items.

GET/v1/document_packages/matching_ids

Key permission: get_document_packages

Takes the filters of the list and returns 200 OK with {ids, capped}: up to 500 package ids, and whether there were more. It’s the way to select everything matching a filter for a bulk action or an export. With group=contract it returns the ids of the grouped list’s rows.

Terminal window
curl -g 'https://api.doxtly.com/v1/document_packages/matching_ids?filter[status][eq]=expired' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET"
{
"ids": [
"01a1ab09-c0e8-7421-9470-a2dcd71cbe01",
"01a1ab0a-876d-7650-84e5-95244e32e997"
],
"capped": false
}

Shortened: each list shows its first items.

GET/v1/document_packages/{id}

Key permission: read_document_package

Returns 200 OK with id, title, number, description, visibilityMode, signingAuthMethod, recipients, viewers, documents, createdAt, updatedAt, expiresAt, mainRecipientId, typeId, typeName, derivedStatus, canVoid, canManage, freezeFailed, workflowExecutionId, responsible, clonedFrom, copies, reminders, tellsPartiesWhenVoided and draft.

It also has contract, annex, annexes, contractHistory, recordedParties and signedOutsideOn: see The contract on a package. A voided package has voidedAt, voidReason and voidedBy (kind user, access_key or system, with name and email where there is one); each is null for a package that wasn’t voided. customFields and sensitiveCustomFields are described under Custom fields.

signingAuthMethod is how every party shows who they are when they all do it the same way, and null when they do it in different ways; each recipient’s own is its authMethod.

Each recipient’s signatureSources is the ways they will be offered where they sign: their own list, else the document type’s, else your organization’s, without the saved signature and an uploaded image for a party who signs through a link or in person, and without an uploaded image for anyone who isn’t a user of the application. It’s null for an approver.

A draft has no documents, recipients or viewers of its own until it is sent, so for a draft documents, recipients and viewers are empty and draft says what it holds, read only: documents (each with id, title, description, fragments as {kind, name} in order, and the parties it names), parties (each with indicator, fullName, email, phone, kind, signingOrder, assurance, authMethod, signsInPerson, department and batchPeople; the signature type and verification are those sending will use), viewers, expiresInDays, numberPlaceholder and problems. problems is what still keeps it from being sent, as Check whether a draft can be sent answers, and is empty for a key or person that may not send it. The data entered for templates and any passwords are only in Read a draft. Once the package is sent draft is null.

A document a party attached carries attachmentDataPath, the data path of the request it answers (see Files from signers). A document in documents carries sealedPdfSha256, the fingerprint of the file as it was sealed, and currentPdfSha256, the fingerprint of the file stored now. The two differ once the document’s archive timestamp has been renewed: the file changes, what was signed doesn’t. Check a downloaded copy against currentPdfSha256.

A recipient who pays after signing has payment: amount (such as "49.90"), amountMinor, currency, description, provider (the kind of integration, such as stripe or przelewy24), status (upcoming before they sign, due once they have signed, paid), paidAt, and canPay, whether a payment can be started now. It is null for a party who pays nothing. See Sign and pay.

freezeFailed is true when preparing the documents for qualified signatures failed: see Retry preparing for qualified signatures.

A viewer in viewers says who let them in: grantedByName, the person who added them; grantedByWorkflow, true when the workflow that created the package did; and grantedByAccessKeyName, the access key that let the viewer in, with the package it made through the API, by the name it had then, otherwise null. revokedByName is who took their access away.

Terminal window
curl 'https://api.doxtly.com/v1/document_packages/01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET"
{
"id": "01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d",
"title": "Mutual NDA - Fjordline Ferries AS",
"description": "Before the fleet safety review starts.",
"visibilityMode": "all_documents",
"signingAuthMethod": null,
"recipients": [
{
"id": "01a1ce9d-9ba9-79dc-96f9-5639c735042d",
"indicator": "PARTNER",
"fullName": "Kari Solberg",
"email": "kari.solberg@fjordline.example",
"phone": null,
"userId": null,
"isMe": false,
"canAct": true,
"canActOnBehalf": false,
"delegationId": null,
"delegationMaySign": false,
"delegationMayDecline": false,
"signingOrder": 1,
"isWaitingForTurn": false,
"language": "en",
"deliveryChannel": "email",
"mayBeReplaced": true,
"usesAccessCode": true,
"authMethod": "access_code",
"kind": "party",
"approvedAt": null,
"approvalRejectedAt": null,
"approvalRejectionReason": null,
"groupName": null,
"claimedAt": null,
"mayBeReleased": false,
"signsInPerson": false,
"canHostInPerson": false,
"signatureSources": ["drawn", "typed"],
"requestDeliveryStatus": "sending",
"requestDeliveryReason": null,
"requestDeliveryAt": "2026-11-12T08:16:38+01:00",
"signingStatus": "pending"
},
{
"id": "01a1ce9d-9bab-70fd-b455-1a86db57f368",
"indicator": "PROVIDER",
"fullName": "Anna Kowalska",
"email": "anna.kowalska@northbridge.example",
"phone": null,
"userId": "01a1aaef-8961-740c-9c12-2d3b67cf51a6",
"isMe": false,
"canAct": false,
"canActOnBehalf": false,
"delegationId": null,
"delegationMaySign": false,
"delegationMayDecline": false,
"signingOrder": 2,
"isWaitingForTurn": true,
"language": null,
"deliveryChannel": "email",
"mayBeReplaced": true,
"usesAccessCode": false,
"authMethod": "none",
"kind": "party",
"approvedAt": null,
"approvalRejectedAt": null,
"approvalRejectionReason": null,
"groupName": null,
"claimedAt": null,
"mayBeReleased": false,
"signsInPerson": false,
"canHostInPerson": false,
"signatureSources": ["drawn", "typed", "stored"],
"requestDeliveryStatus": null,
"requestDeliveryReason": null,
"requestDeliveryAt": null,
"signingStatus": "pending"
}
],
"viewers": [
{
"id": "01a1ce9d-9c4f-70d5-9289-21f283c85d27",
"fullName": "Piotr Nowak",
"email": "piotr.nowak@northbridge.example",
"hasAccess": true,
"revokedAt": null,
"firstViewedAt": null,
"lastViewedAt": null,
"grantedByName": null,
"grantedByWorkflow": true,
"grantedByAccessKeyName": null,
"revokedByName": null,
"createdAt": "2026-11-12T08:16:38+01:00",
"userId": null,
"isMe": false
}
],
"documents": [
{
"id": "01a1ce9d-9baf-7a83-ba70-0249a6644f7c",
"packageId": "01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d",
"title": "Mutual NDA",
"description": null,
"status": "pending",
"totalParties": 2,
"signedParties": 0,
"completedFile": null,
"createdAt": "2026-11-12T08:16:37+01:00",
"updatedAt": "2026-11-12T08:16:37+01:00",
"expiresAt": null,
"completedAt": null,
"voidedAt": null,
"sealedPdfSha256": null,
"currentPdfSha256": null,
"attachmentDataPath": null
}
],
"createdAt": "2026-11-12T08:16:34+01:00",
"updatedAt": "2026-11-12T08:16:38+01:00",
"expiresAt": "2026-12-03T08:16:37+01:00",
"mainRecipientId": null,
"typeId": "01a1ab61-340e-74e7-aead-28e1675e6a33",
"typeName": "Client contracts",
"derivedStatus": "pending",
"canVoid": true,
"canManage": true,
"freezeFailed": false,
"workflowExecutionId": null,
"responsible": null,
"number": null,
"clonedFrom": null,
"copies": [],
"reminders": [],
"tellsPartiesWhenVoided": true,
"draft": null
}

POST/v1/document_packages

Key permission: create_document_package

Field Type Required Rules
title string Yes Up to 255 characters.
packageTypeId UUID No The document type. Left out, the draft is filed under the built-in General type.
description string No Up to 5000 characters.
visibilityMode string No all_documents (default) or own_documents_only: whether a party sees the whole package or only the documents they sign.
signatureLevel string No PADES_B (default), PADES_T, PADES_LT or PADES_LTA.
sealKind string No standard (default) or qualified, the latter only where a qualified seal is available; Doxtly’s cloud offers none.
collectLocation boolean No Ask signers for their location. Default false.
allowRecipientDownload boolean No Let parties download the documents. Default true.
standardMessages boolean No Send the default messages. Default true.
sendSignedCopies boolean No Send signed copies to the parties when everyone has signed. Left out, as the document type says.
expiresAt date-time No The deadline as a moment.
expiresInDays integer No The deadline counted from sending, 1 to 365 days.
responsibleUserId UUID No Who answers for the package: someone active in the organization who can read it.
contractTerm object No For a document type that tracks contracts: the term of the contract, as {startsOn, endsOn, renewal, notice, noticeEndsAtMonthEnd}. Left out, a new contract is in force from the day everybody signs it, for an indefinite period, and a draft keeps the term it has. Ignored for any other type.
customFields object No Values of the package’s custom fields by key, checked against the fields of its document type. A sensitive field also needs read_sensitive_custom_fields.

A request that names neither expiresAt nor expiresInDays starts with the deadline of its document type, and its reminders start with the type’s. Naming a deadline replaces the type’s, and null means none. Where the type locks a deadline or reminders, anything else is refused with 422.

Returns 201 Created with the draft: the fields above plus id, clonedFromId, documents, parties, viewers, uploads, batch and reminders, and annex, what a draft of a contract change will do to its contract. contractTerm is null for a draft that is no contract. A packageTypeId that isn’t one of your document types answers 404, and a responsibleUserId of someone who can’t take the package 422.

Terminal window
curl -X POST 'https://api.doxtly.com/v1/document_packages' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET" \
-H 'Content-Type: application/json' \
-d '{"title":"Mutual NDA - Fjordline Ferries","packageTypeId":"01a1ab61-340e-74e7-aead-28e1675e6a33","expiresInDays":14}'
{
"id": "01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d",
"title": "Mutual NDA - Fjordline Ferries",
"description": null,
"packageTypeId": "01a1ab61-340e-74e7-aead-28e1675e6a33",
"visibilityMode": "all_documents",
"signatureLevel": "PADES_B",
"sealKind": "standard",
"collectLocation": false,
"allowRecipientDownload": true,
"standardMessages": true,
"sendSignedCopies": true,
"expiresAt": null,
"expiresInDays": 14,
"clonedFromId": null,
"documents": [],
"parties": [],
"viewers": [],
"uploads": [],
"batch": null,
"reminders": []
}

GET/v1/document_packages/{id}/draft

Key permission: update_draft_package

Returns 200 OK with the draft as above, with the parties and conditionalParties each document needs named on it. A package that has been sent answers 409.

systemValues holds what Doxtly fills in itself under _package when the documents are rendered, as it stands now, by path: the values of the contract or of the change of a contract the draft is, and its custom fields that are not sensitive, such as "_package.annex.newEndsOn": "2028-12-31". A value not known yet, such as the number the package takes when it is sent, is missing, and so is a list, such as the contract’s parties. filledAtSending lists the paths under _package that Doxtly fills in only at sending, which have no value yet: today only _package.number, for a package whose document type numbers packages, and never for a change of a contract, which takes no number. A value the draft won’t have is in neither, such as _package.annex.newEndsOn of an annex that changes only the terms. partiesLeftOut lists the people a change of a contract signed outside Doxtly couldn’t take as parties; it is empty on any other draft. partiesChooseRoles is true for such a change: its parties have no roles, and an empty indicator stands for one nobody has chosen a role for yet. It is false on any other draft.

Terminal window
curl 'https://api.doxtly.com/v1/document_packages/01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d/draft' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET"
{
"id": "01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d",
"title": "Mutual NDA - Fjordline Ferries AS",
"documents": [
{
"id": "41d41c82-8ecf-4b46-97cd-35e450483f25",
"title": "Mutual NDA",
"description": null,
"appendCertificate": true,
"initialsOnEveryPage": [],
"multilingualAuditTrail": false,
"segments": [
{
"id": "434be230-3b21-5ce7-9d21-d1932ab37731",
"kind": "template",
"templateId": "01a1aaf4-d8ea-7da1-92d1-a8e53781bbe1",
"data": {
"nda": {
"date": "2026-11-16",
"purpose": "Discussing a fleet safety review",
"years": 3
},
"partner": {
"name": "Fjordline Ferries AS",
"address": "Strandkaien 8, 5013 Bergen, Norway",
"representative": "Kari Solberg"
}
},
"hasPassword": false,
"name": null
}
],
"parties": [
"PROVIDER",
"PARTNER"
],
"conditionalParties": []
}
],
"parties": [
{
"indicator": "PARTNER",
"fullName": "Kari Solberg",
"email": "kari.solberg@fjordline.example",
"phone": null,
"userId": null,
"signingOrder": 1,
"authMethod": "access_code",
"language": "en",
"delivery": {
"channel": "email",
"templateId": null,
"language": null
},
"jobTitle": {
"mode": "hidden",
"value": null
},
"kind": "party",
"departmentId": null,
"allowPaperSigning": false,
"attachmentRequests": [],
"returnUrl": null,
"signsInPerson": false,
"assurance": null,
"qualifiedRoutes": [],
"contactId": null,
"signatureSources": null,
"hasAccessCode": true
}
],
"viewers": [
{
"fullName": "Piotr Nowak",
"email": "piotr.nowak@northbridge.example",
"userId": null
}
],
"expiresInDays": 21,
"reminders": []
}

Shortened to the fields this call is about.

PATCH/v1/document_packages/{id}

Key permission: update_draft_package

Takes the same fields as creating a draft, title among them, and replaces the draft’s settings with them: a field left out goes back to its default. Without packageTypeId the draft moves to the General type, and without expiresAt or expiresInDays it has no deadline, so send every setting you want to keep. responsibleUserId, contractTerm and customFields left out keep what the draft has. Returns 200 OK with the draft. A package already sent answers 409.

Terminal window
curl -X PATCH 'https://api.doxtly.com/v1/document_packages/01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET" \
-H 'Content-Type: application/json' \
-d '{"title":"Mutual NDA - Fjordline Ferries AS","packageTypeId":"01a1ab61-340e-74e7-aead-28e1675e6a33","expiresInDays":21,"description":"Before the fleet safety review starts."}'
{
"id": "01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d",
"title": "Mutual NDA - Fjordline Ferries AS",
"description": "Before the fleet safety review starts.",
"packageTypeId": "01a1ab61-340e-74e7-aead-28e1675e6a33",
"expiresInDays": 21
}

Shortened to the fields this call is about.

DELETE/v1/document_packages/{id}

Key permission: delete_document_package

Returns 204 No Content. A package still under way can’t be deleted and answers 409: void it first. A contract with changes answers 409 too, This contract has annexes. Delete the annexes first. Deleting a change that was in effect takes its effect off the contract again, and the contract’s history records it as change_removed.

Terminal window
curl -X DELETE 'https://api.doxtly.com/v1/document_packages/01a1ce9d-aaed-7516-b997-26d9c8cb49cb' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET"

POST/v1/document_packages/{id}/uploads

Key permission: update_draft_package

Send the file as multipart in file, or as JSON {storageId, path} to take it from a connected cloud drive (the key also needs get_cloud_files). A PDF, a picture (JPEG, PNG, HEIC or WebP) or an office document (DOCX, DOC, ODT or RTF); anything else answers 422. The file is turned into a PDF and counts toward your organization’s disk space.

Returns 201 Created with fileId, name, pages, markers (the signature markers found in the text), looksLikeTemplate, needsPassword (true for a PDF locked by a password, which the segment’s password then opens), and for an office document printConcerns, what looks wrong in its PDF (interactive_fields, blank_page, missing_text or substituted_fonts), and printSubstitutedFonts, the fonts set in others.

Terminal window
curl -X POST 'https://api.doxtly.com/v1/document_packages/01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d/uploads' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET" \
-F 'file=@mutual-nda.docx'
{
"fileId": "01a1ce9d-914c-7743-8f7e-4c30bf49f714",
"name": "mutual-nda.pdf",
"pages": 1,
"markers": [
"PROVIDER",
"CLIENT"
],
"looksLikeTemplate": true,
"printConcerns": [],
"printSubstitutedFonts": [],
"needsPassword": false
}

POST/v1/document_packages/{id}/documents

PATCH/v1/document_packages/{id}/documents/{documentId}

Key permission: update_draft_package. A segment built from a template also needs a key that can read templates.

Field Type Required Rules
title string Yes Up to 255 characters.
description string No Up to 5000 characters.
appendCertificate boolean No Add the audit certificate to the signed file. Default true.
multilingualAuditTrail boolean No Print the certificate in each party’s language. Default false.
initialsOnEveryPage array of strings No The party indicators who initial every page.
segments array Yes The parts of the document, joined in order into one PDF when the package is sent. At least one.

A segment is one of:

  • {"kind": "file", "source": {"uploadedFileId": "..."}, "placedFields": [...], "password": "..."}, a file you uploaded.
  • {"kind": "template", "templateId": "...", "data": {...}, "bindings": [...], "password": "..."}, a template generated with data. bindings are the values filled from the parties’ contacts; left out, a template added brings its own.

A document can have up to 20 segments, 500 pages and 50 MB, with each segment’s file up to 25 MB; more answers 422. password is the password of an encrypted PDF; a package’s answer only says hasPassword, never the password.

POST returns 201 Created, PATCH 200 OK, each with the document and the parties and conditionalParties it needs.

Terminal window
curl -X POST 'https://api.doxtly.com/v1/document_packages/01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d/documents' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET" \
-H 'Content-Type: application/json' \
-d '{"title":"Mutual NDA","segments":[{"kind":"template","templateId":"01a1aaf4-d8ea-7da1-92d1-a8e53781bbe1","data":{"partner":{"name":"Fjordline Ferries AS"}}}]}'
{
"id": "41d41c82-8ecf-4b46-97cd-35e450483f25",
"title": "Mutual NDA",
"description": null,
"appendCertificate": true,
"initialsOnEveryPage": [],
"multilingualAuditTrail": false,
"segments": [
{
"id": "434be230-3b21-5ce7-9d21-d1932ab37731",
"kind": "template",
"templateId": "01a1aaf4-d8ea-7da1-92d1-a8e53781bbe1",
"data": {
"partner": {
"name": "Fjordline Ferries AS"
}
},
"hasPassword": false,
"name": null
}
],
"parties": [
"PROVIDER",
"PARTNER"
],
"conditionalParties": []
}

PUT/v1/document_packages/{id}/documents/{documentId}/segments/{segmentId}/data

Key permission: update_draft_package

Takes {"data": {...}, "bindings": [...]} and returns 200 OK with {"missing": [...]}: the names of the values the template still needs, as data alone gives them. bindings is optional: left out, the segment keeps the ones it has; given, it replaces them.

A binding fills a template value from the contact a party was chosen from, or from that contact’s company, wherever data gives no value for it. The value is read from the contact when the package is sent.

Field Type Rules
path string The template’s variable, such as client.name. Up to 255 characters, one binding per path.
party string The party’s indicator, such as CLIENT.
subject string contact or company (the contact’s company).
field string A contact’s firstName, lastName, fullName, jobTitle, email, phone or language; a company’s name, taxId, street, postalCode, city, country, email, phone or website; or the key of a custom field.

Up to 200 bindings a segment. A sensitive custom field fills the document only when whoever sends it may read sensitive fields (read_sensitive_custom_fields for a key); its value is never kept with the package’s data. Where each value came from is kept with the sent package.

GET/v1/document_packages/{id}/documents/{documentId}/segments/{segmentId}/contact_values

Key permission: update_draft_package

Returns 200 OK with items: each binding, with its path, party, subject and field, and state (filled, no_contact, no_company, empty, hidden for a sensitive value you may not read, or unknown_field), value, contactId and sensitive. value and contactId are given only to a key that can read contacts, and value never for a sensitive field.

Terminal window
curl -X PUT 'https://api.doxtly.com/v1/document_packages/01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d/documents/41d41c82-8ecf-4b46-97cd-35e450483f25/segments/434be230-3b21-5ce7-9d21-d1932ab37731/data' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET" \
-H 'Content-Type: application/json' \
-d '{"data":{"nda":{"date":"2026-11-16","purpose":"Discussing a fleet safety review","years":3},"partner":{"name":"Fjordline Ferries AS","address":"Strandkaien 8, 5013 Bergen, Norway","representative":"Kari Solberg"}}}'
{
"missing": []
}

DELETE/v1/document_packages/{id}/documents/{documentId}

Key permission: update_draft_package

Returns 204 No Content.

Terminal window
curl -X DELETE 'https://api.doxtly.com/v1/document_packages/01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d/documents/4cd72378-544a-4603-afae-6088b09fc1aa' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET"

PUT/v1/document_packages/{id}/recipients

Key permission: update_draft_package

The body replaces all of them: parties, approvers (up to five) and viewers.

A party:

Field Type Rules
indicator string Required. The name the documents use for this party, such as CLIENT: capital letters, digits and underscores, starting with a letter. An empty string is a party with no role yet, as the parties of a change of a contract signed outside Doxtly start: it signs nothing and is sent nothing. While such a party is in the draft, every indicator the documents name needs a party before the draft can be sent.
fullName string Up to 255 characters.
email, phone string How the party is reached. A party needs what its channel needs.
userId UUID A person of your organization.
departmentId UUID Anybody of a department instead of a named person.
signingOrder integer The party’s turn, from 1. Parties with the same number can sign at the same time.
authMethod string How the party proves who they are: none, email_otp, sms_otp, whatsapp_otp, access_code or id_document.
accessCode string With access_code: 6 to 128 characters.
language string The party’s language.
delivery object {channel, templateId, language}, the request’s channel (email, sms, whatsapp or doxtly_email), its template and language. Left out, a party with an email address is asked by email; null means you deliver the link yourself.
jobTitle object {mode, value}: mode show prints the party’s job title under their signature, anything else leaves it out; value is the title, up to 150 characters, and left empty the party types it in when signing.
assurance string simple, advanced or qualified.
qualifiedRoutes array For a qualified signature: provider, local_card and upload.
signatureSources array The ways the party may sign: drawn, typed, stored, uploaded. Left out or null, the document type’s, else your organization’s. uploaded only for a party with userId or departmentId (else 422); a type that locks the ways refuses another list at sending.
allowPaperSigning boolean Let the party print and sign.
signsInPerson boolean The party signs in person on your device.
attachmentRequests array Files the party must add: key, dataPath (where the file arrives in the data, required, unique in the package), labels and descriptions (by language code, labels required in the organization’s default language), required, types, maxFiles, combineImages.
returnUrl string Where to send the party after signing, from your list of allowed sites.
contactId UUID The contact the party was chosen from: its values fill the bindings to this party, and the sent package keeps the link. A new link needs a key that can read contacts; 404 for a contact your organization doesn’t have.
payment object The party pays after signing: amount, a decimal with a dot such as 49.90, up to three decimals; currency, a three-letter code the integration takes; integrationId, one of your active payment integrations; description, up to 127 characters, what the payer sees (the package’s title when left out). Not for an approver or a department. What the provider would refuse stops the sending with 422, naming the party.

An approver takes fullName (required) and email, and a viewer takes fullName and email, both required. An approver can’t be a department and takes no signing settings. Parties and their order go through the signing order checks when the package is sent.

Returns 200 OK with the draft.

Terminal window
curl -X PUT 'https://api.doxtly.com/v1/document_packages/01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d/recipients' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET" \
-H 'Content-Type: application/json' \
-d '{"parties":[{"indicator":"PARTNER","fullName":"Kari Solberg","email":"kari.solberg@fjordline.example","signingOrder":1,"authMethod":"access_code","accessCode":"Fjord-2026","language":"en"},{"indicator":"PROVIDER","fullName":"Anna Kowalska","email":"anna.kowalska@northbridge.example","userId":"01a1aaef-8961-740c-9c12-2d3b67cf51a6","signingOrder":2}],"approvers":[],"viewers":[{"fullName":"Piotr Nowak","email":"piotr.nowak@northbridge.example"}]}'
{
"id": "01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d",
"parties": [
{
"indicator": "PARTNER",
"fullName": "Kari Solberg",
"email": "kari.solberg@fjordline.example",
"phone": null,
"userId": null,
"signingOrder": 1,
"authMethod": "access_code",
"language": "en",
"delivery": {
"channel": "email",
"templateId": null,
"language": null
},
"jobTitle": {
"mode": "hidden",
"value": null
},
"kind": "party",
"departmentId": null,
"allowPaperSigning": false,
"attachmentRequests": [],
"returnUrl": null,
"signsInPerson": false,
"assurance": null,
"qualifiedRoutes": [],
"contactId": null,
"signatureSources": null,
"hasAccessCode": true
}
],
"viewers": [
{
"fullName": "Piotr Nowak",
"email": "piotr.nowak@northbridge.example",
"userId": null
}
]
}

Shortened to the fields this call is about.

PUT/v1/document_packages/{id}/batch

Key permission: update_draft_package

Makes the draft a send to many people: one package for each person, in the name of one party.

Field Type Required Rules
indicator string Yes The party each person stands for.
people array Yes The people, each with fullName and optionally email, phone, language, accessCode and contactId, the contact the person was added from: its values fill the bindings to the party. For a person without one, values gives those values by "<segmentId>:<path>".
columns array No Values that differ by person: segmentId, path and the source they come from.

Returns 200 OK with the draft. Sending such a draft then answers 202 Accepted with batchId, for reading the batch. A draft of a contract change is made for the contract’s parties only and answers 409.

DELETE/v1/document_packages/{id}/batch

Key permission: update_draft_package

Goes back to sending the draft to the one person the party names. Returns 204 No Content.

Terminal window
curl -X PUT 'https://api.doxtly.com/v1/document_packages/01a1ce9d-aaed-7516-b997-26d9c8cb49cb/batch' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET" \
-H 'Content-Type: application/json' \
-d '{"indicator":"PARTNER","people":[{"fullName":"Erik Dahl","email":"erik.dahl@fjordline.example"},{"fullName":"Ingrid Halvorsen","email":"ingrid.halvorsen@nordvik-marine.example"}]}'
{
"id": "01a1ce9d-aaed-7516-b997-26d9c8cb49cb",
"batch": {
"indicator": "PARTNER",
"columns": [],
"people": [
{
"fullName": "Erik Dahl",
"email": "erik.dahl@fjordline.example",
"phone": null,
"language": null,
"values": {},
"overrides": {},
"contactId": null,
"signatureSources": null,
"hasAccessCode": false
},
{
"fullName": "Ingrid Halvorsen",
"email": "ingrid.halvorsen@nordvik-marine.example",
"phone": null,
"language": null,
"values": {},
"overrides": {},
"contactId": null,
"signatureSources": null,
"hasAccessCode": false
}
]
}
}

Shortened to the fields this call is about.

Terminal window
curl -X DELETE 'https://api.doxtly.com/v1/document_packages/01a1ce9d-aaed-7516-b997-26d9c8cb49cb/batch' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET"

POST/v1/document_packages/{id}/send_readiness

Key permission: update_draft_package

Takes optional parties, approvers and batch, as they would be set (what you leave out is read as the draft stores it), and returns 200 OK with {problem, problems, previewProblem}: null when all is well, otherwise {tab, message, place, contactId} with the part of the draft to fix, a sentence saying what’s wrong, and, when it is about one recipient, which: {list, row, field}, where list is parties, approvers or people (a batch), row the position in that list and field fullName, email, phone or null. contactId, given only when the problem is a value a contact lacks, names that contact. problem is about sending and is the first of problems, up to 20 of everything still in the way, the first thing to put right first; previewProblem is about the preview.

Terminal window
curl -X POST 'https://api.doxtly.com/v1/document_packages/01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d/send_readiness' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET" \
-H 'Content-Type: application/json' \
-d '{}'
{
"problem": {
"tab": "documents",
"message": "Mark in a document who is to sign it.",
"place": null
},
"problems": [
{
"tab": "documents",
"message": "Mark in a document who is to sign it.",
"place": null
}
],
"previewProblem": {
"tab": "documents",
"message": "Mark in a document who is to sign it.",
"place": null
}
}

POST/v1/document_packages/{id}/send

Key permission: send_document_package

Returns 200 OK with the package. Sending starts the first turn of the signing order and generates what the templates need. A draft prepared in the app as a send to many people answers 202 Accepted with {batchId}; follow it with Read a batch.

A package that can’t be sent answers 422 with what’s wrong, such as a party without an address for its channel, a party nothing would bring the link to (no request, no verification for Read a signing link, no channel to send it by and no workflow on their turn), a broken signing order or too many pages. A package already sent answers 409.

Terminal window
curl -X POST 'https://api.doxtly.com/v1/document_packages/01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d/send' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET"
{
"id": "01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d",
"title": "Mutual NDA - Fjordline Ferries AS",
"derivedStatus": "pending",
"expiresAt": "2026-12-03T08:16:37+01:00"
}

Shortened to the fields this call is about.

POST/v1/document_packages/{id}/clone

Key permission: clone_document_package

Returns 201 Created with a new draft built from the package. A copy of a contract is a contract with the same term, while its type still tracks contracts; a copy of a contract change is the next change of the same contract, doing the same, numbered and titled anew.

Terminal window
curl -X POST 'https://api.doxtly.com/v1/document_packages/01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d/clone' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET"
{
"id": "01a1ce9d-aaed-7516-b997-26d9c8cb49cb",
"title": "Mutual NDA - Fjordline Ferries AS",
"clonedFromId": "01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d",
"expiresInDays": 28
}

Shortened to the fields this call is about.

PATCH/v1/document_packages/{id}/deadline

Key permission: update_package_deadline

Field Type Required Meaning
expiresAt date-time Yes The new deadline, in the future.
notify boolean No Tell the parties still waiting. Default false.

Returns 200 OK with the package. A deadline in the past answers 422, and a finished package 409.

Terminal window
curl -X PATCH 'https://api.doxtly.com/v1/document_packages/01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d/deadline' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET" \
-H 'Content-Type: application/json' \
-d '{"expiresAt":"2026-12-10T16:00:00+00:00","notify":false}'
{
"id": "01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d",
"expiresAt": "2026-12-10T16:00:00+00:00"
}

Shortened to the fields this call is about.

PUT/v1/document_packages/{id}/reminders

Key permission: update_package_reminders

Takes {"reminders": [...]} and replaces them all. Up to five, each with:

Field Type Required Rules
anchor string Yes after_sent or before_expiry.
offsetDays integer Yes 1 to 90 days.
repeatEveryDays integer No 1 to 90 days.
maxRepeats integer No 1 to 10.
delivery object No {channel, templateId, language}.

Reminders set before_expiry need a package with a deadline. Returns 200 OK with the reminders.

Terminal window
curl -X PUT 'https://api.doxtly.com/v1/document_packages/01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d/reminders' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET" \
-H 'Content-Type: application/json' \
-d '{"reminders":[{"anchor":"after_sent","offsetDays":3,"repeatEveryDays":4,"maxRepeats":2},{"anchor":"before_expiry","offsetDays":2}]}'
[
{
"plan": {
"anchor": "after_sent",
"offsetDays": 3,
"repeatEveryDays": 4,
"maxRepeats": 2,
"delivery": null
},
"nextAt": "2026-11-15T09:00:00+01:00",
"sentCount": 0,
"notSent": []
},
{
"plan": {
"anchor": "before_expiry",
"offsetDays": 2,
"repeatEveryDays": null,
"maxRepeats": null,
"delivery": null
},
"nextAt": "2026-12-08T16:00:00+01:00",
"sentCount": 0,
"notSent": []
}
]

POST/v1/document_packages/{id}/recipients/{recipientId}/reassign

Key permission: reassign_package_party

Field Type Required Rules
fullName string Yes Up to 255 characters.
reason string Yes Up to 1000 characters, recorded in the audit trail.
email string No The new address.
phone string No Up to 32 characters.
language string No The new party’s language.

Returns 200 OK with the package.

Terminal window
curl -X POST 'https://api.doxtly.com/v1/document_packages/01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d/recipients/01a1ce9d-9ba9-79dc-96f9-5639c735042d/reassign' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET" \
-H 'Content-Type: application/json' \
-d '{"fullName":"Erik Dahl","email":"erik.dahl@fjordline.example","reason":"Kari Solberg is on leave; Erik Dahl signs for Fjordline."}'
{
"id": "01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d",
"recipients": [
{
"id": "01a1ce9d-9ba9-79dc-96f9-5639c735042d",
"indicator": "PARTNER",
"fullName": "Erik Dahl",
"email": "erik.dahl@fjordline.example",
"phone": null,
"userId": null,
"isMe": false,
"canAct": true,
"canActOnBehalf": false,
"delegationId": null,
"delegationMaySign": false,
"delegationMayDecline": false,
"signingOrder": 1,
"isWaitingForTurn": false,
"language": "en",
"deliveryChannel": "email",
"mayBeReplaced": true,
"usesAccessCode": true,
"authMethod": "access_code",
"kind": "party",
"approvedAt": null,
"approvalRejectedAt": null,
"approvalRejectionReason": null,
"groupName": null,
"claimedAt": null,
"mayBeReleased": false,
"signsInPerson": false,
"canHostInPerson": false,
"signatureSources": ["drawn", "typed"],
"requestDeliveryStatus": "sending",
"requestDeliveryReason": null,
"requestDeliveryAt": "2026-11-12T08:16:39+01:00",
"signingStatus": "pending"
}
]
}

Shortened to the fields this call is about.

POST/v1/document_packages/{id}/recipients/{recipientId}/release

Key permission: release_package_party

Lets go whoever took on a party given to a department, once they have done nothing with it: the party waits for somebody of the department again. Returns 200 OK with the package. A party that isn’t a department’s, that nobody has taken, or whose taker has already acted is left as it is, with the same answer.

Terminal window
curl -X POST 'https://api.doxtly.com/v1/document_packages/01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d/recipients/01a1ce9d-9ba9-79dc-96f9-5639c735042d/release' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET"
{
"id": "01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d",
"recipients": [
{
"id": "01a1ce9d-9ba9-79dc-96f9-5639c735042d",
"indicator": "PARTNER",
"fullName": "Erik Dahl",
"email": "erik.dahl@fjordline.example",
"phone": null,
"userId": null,
"isMe": false,
"canAct": true,
"canActOnBehalf": false,
"delegationId": null,
"delegationMaySign": false,
"delegationMayDecline": false,
"signingOrder": 1,
"isWaitingForTurn": false,
"language": "en",
"deliveryChannel": "email",
"mayBeReplaced": true,
"usesAccessCode": true,
"authMethod": "access_code",
"kind": "party",
"approvedAt": null,
"approvalRejectedAt": null,
"approvalRejectionReason": null,
"groupName": null,
"claimedAt": null,
"mayBeReleased": false,
"signsInPerson": false,
"canHostInPerson": false,
"signatureSources": ["drawn", "typed"],
"requestDeliveryStatus": "delivered",
"requestDeliveryReason": null,
"requestDeliveryAt": "2026-11-12T08:16:40+01:00",
"signingStatus": "pending"
}
]
}

Shortened to the fields this call is about.

POST/v1/document_packages/{id}/recipients/{recipientId}/access-code

Key permission: update_party_access_code

Takes {"accessCode": "..."}, at least 6 characters, and returns 200 OK with the package. A party who doesn’t use a password answers 422, a finished package 409, and a recipientId that isn’t one of the package’s parties 404.

Terminal window
curl -X POST 'https://api.doxtly.com/v1/document_packages/01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d/recipients/01a1ce9d-9ba9-79dc-96f9-5639c735042d/access-code' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET" \
-H 'Content-Type: application/json' \
-d '{"accessCode":"Bergen-1106"}'
{
"id": "01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d",
"recipients": [
{
"id": "01a1ce9d-9ba9-79dc-96f9-5639c735042d",
"indicator": "PARTNER",
"fullName": "Kari Solberg",
"email": "kari.solberg@fjordline.example",
"phone": null,
"userId": null,
"isMe": false,
"canAct": true,
"canActOnBehalf": false,
"delegationId": null,
"delegationMaySign": false,
"delegationMayDecline": false,
"signingOrder": 1,
"isWaitingForTurn": false,
"language": "en",
"deliveryChannel": "email",
"mayBeReplaced": true,
"usesAccessCode": true,
"authMethod": "access_code",
"kind": "party",
"approvedAt": null,
"approvalRejectedAt": null,
"approvalRejectionReason": null,
"groupName": null,
"claimedAt": null,
"mayBeReleased": false,
"signsInPerson": false,
"canHostInPerson": false,
"signatureSources": ["drawn", "typed"],
"requestDeliveryStatus": "delivered",
"requestDeliveryReason": null,
"requestDeliveryAt": "2026-11-12T08:16:38+01:00",
"signingStatus": "pending"
}
]
}

Shortened to the fields this call is about.

GET/v1/document_packages/{id}/recipients/{recipientId}/signing-link

Key permission: read_signing_link

Returns 200 OK with {"signingUrl": "..."}, and the fact is written to the audit trail. A recipientId that isn’t one of the package’s parties answers 404. A party who signs in person has no link and answers 409, and so does a party with no verification, whose link would let anyone in.

Terminal window
curl 'https://api.doxtly.com/v1/document_packages/01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d/recipients/01a1ce9d-9ba9-79dc-96f9-5639c735042d/signing-link' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET"
{
"signingUrl": "https://northbridge.app.doxtly.com/s/b7387c947608f60d91eeba723c825774c3ef54efa0c34b1db619ddec7e59fc42d8d82777a7183f4ca72c25fb352aa74f"
}

POST/v1/signing_document_packages/{id}/recipients/{recipientId}/resend_signing_link

Key permission: resend_signing_request

Takes an optional {channel, templateId, language}, with channel email, sms, whatsapp or doxtly_email. An empty body sends it the way the party was asked before. A party Doxtly has not asked yet gets the signature request rather than the reminder, so a templateId must then name a template written for a signature request. Returns 204 No Content.

Terminal window
curl -X POST 'https://api.doxtly.com/v1/signing_document_packages/01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d/recipients/01a1ce9d-9ba9-79dc-96f9-5639c735042d/resend_signing_link' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET" \
-H 'Content-Type: application/json' \
-d '{}'

POST/v1/signing_document_packages/{id}/void

Key permission: void_document_package

Field Type Required Meaning
reason string Yes Up to 1000 characters.
tellParties boolean No Notify the parties. Default true.
includeReason boolean No Include the reason in that notice. Default false.

Returns 200 OK with the package. A package that has already finished answers 409.

Terminal window
curl -X POST 'https://api.doxtly.com/v1/signing_document_packages/01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d/void' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET" \
-H 'Content-Type: application/json' \
-d '{"reason":"Fjordline asked to postpone the review until spring.","tellParties":false}'
{
"id": "01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d",
"derivedStatus": "voided",
"canVoid": false,
"tellsPartiesWhenVoided": true
}

Shortened to the fields this call is about.

POST/v1/signing_document_packages/{id}/retry-freeze

Key permission: retry_package_freeze

Run this when a package shows freezeFailed. Returns 200 OK with the package. A package with nothing to prepare is returned as it stands.

Terminal window
curl -X POST 'https://api.doxtly.com/v1/signing_document_packages/01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d/retry-freeze' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET"
{
"id": "01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d",
"freezeFailed": false
}

Shortened to the fields this call is about.

GET/v1/document_packages/{id}/identity-checks

Key permission: read_package_identity_checks

One entry for each party asked for an identity document, or who has already started a check: returned with 200 OK as an array. Each has recipientId; status (started, passed, failed, abandoned, or null while the party has not started); failure, why it failed (abandoned, consent_declined, device_not_supported, country_not_supported, under_supported_age, document_expired, document_type_not_allowed, document_unverified, selfie_no_photo_on_document, selfie_mismatch, selfie_manipulated, selfie_unverified, name_mismatch or other); attemptsAllowed, attemptsUsed, verifiedName, documentType (passport, id_card or driving_license), documentCountry, nameDifferenceAcceptedBy, concludedAt; and canAllowAnotherAttempt, canAcceptNameDifference and canChangeMethod, what can still be decided about it. Allowing another attempt, accepting a name difference and changing the method are decisions for a person signed in to the application.

Terminal window
curl 'https://api.doxtly.com/v1/document_packages/01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d/identity-checks' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET"
[]

PATCH/v1/document_packages/{id}/responsible

Key permission: change_package_responsible

Takes {"responsibleUserId": "..."}, someone active in the organization who can read the package. Returns 200 OK with the package.

GET/v1/document_package_types/responsible_candidates

Key permission: change_package_responsible

With ?typeId=<id>, lists who can answer for packages of that type; without it, everyone who can read documents. Returns 200 OK with {items: [...]}, each {id, fullName, email}.

Terminal window
curl -X PATCH 'https://api.doxtly.com/v1/document_packages/01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d/responsible' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET" \
-H 'Content-Type: application/json' \
-d '{"responsibleUserId":"01a1aaf1-2f23-7ea9-aa44-51944c5010c7"}'
{
"id": "01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d",
"responsible": {
"id": "01a1aaf1-2f23-7ea9-aa44-51944c5010c7",
"fullName": "Piotr Nowak",
"email": "piotr.nowak@northbridge.example"
}
}

Shortened to the fields this call is about.

Terminal window
curl 'https://api.doxtly.com/v1/document_package_types/responsible_candidates?typeId=01a1ab61-340e-74e7-aead-28e1675e6a33' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET"
{
"items": [
{
"id": "01a1aaf1-5ba7-7659-bc70-e9cf4c3c4870",
"fullName": "Helena Brandt",
"email": "helena.brandt@northbridge.example"
},
{
"id": "01a1aaf1-36ba-7e9c-842d-d4c07007f33f",
"fullName": "Emily Carter",
"email": "emily.carter@northbridge.example"
},
{
"id": "01a1aaef-8961-740c-9c12-2d3b67cf51a6",
"fullName": "Anna Kowalska",
"email": "anna.kowalska@northbridge.example"
}
]
}

Shortened: each list shows its first items.

GET/v1/documents/{id}/files/{fileId}

Key permission: download_package_document

Returns 200 OK with the stored file: the document’s source, its current file or the scan a party signing on paper uploaded, whichever fileId names. A finished document’s file is the fileId of its completedFile in Get a package. A fileId the document doesn’t hold answers 404.

GET/v1/document_packages/{id}/documents/{documentId}/pdf

Key permission: download_package_document

Returns 200 OK with the PDF of one document of a package, by the id the package lists for it: a sent one as it is stored, a draft’s as it would go out, without sending anything. A draft’s render counts against the same limit as the application’s preview: 20 renders at once, then 10 a minute for each key or person. Past that the answer is 429 Too Many Requests, with Retry-After.

Terminal window
curl 'https://api.doxtly.com/v1/documents/01a1cdf2-a237-7eef-9019-b27b45fd957b/files/01a1cdf3-d8d3-7bf3-9ae2-4b00bcd60224' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET" \
-o mutual-nda-thornbury.pdf
Terminal window
curl 'https://api.doxtly.com/v1/document_packages/01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d/documents/01a1ce9d-9baf-7a83-ba70-0249a6644f7c/pdf' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET" \
-o mutual-nda-fjordline.pdf

GET/v1/documents/{id}/audit-certificate

Key permission: download_audit_certificate

Returns 200 OK with the audit certificate of a document as a PDF, audit-certificate-<id>.pdf. A document that isn’t signed by everyone yet, nor sealed, answers 403.

Terminal window
curl 'https://api.doxtly.com/v1/documents/01a1cdf2-a237-7eef-9019-b27b45fd957b/audit-certificate' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET" \
-o audit-certificate-01a1cdf2-a237-7eef-9019-b27b45fd957b.pdf

GET/v1/document_package_batches/{id}

Key permission: read_package_batch

Returns 200 OK with id, name, total (people in the batch), created (packages made so far), failed, status (processing or finished), failures (who could not get a package, as {row, fullName, reason}) and createdAt. An id that isn’t one of your batches answers 404.

Terminal window
curl 'https://api.doxtly.com/v1/document_package_batches/01a1ccdd-8c09-7507-b919-8f413adb175c' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET"
{
"id": "01a1ccdd-8c09-7507-b919-8f413adb175c",
"name": "Information security policy 2026",
"total": 12,
"created": 12,
"failed": 0,
"status": "finished",
"failures": [],
"createdAt": "2026-11-12T00:07:13+01:00"
}

POST/v1/document_package_bulk_actions

Key permission: start_package_bulk_action

Starts one action on up to 500 packages, as the bulk bar of the document list does: reminding the parties who are waiting, voiding, or handing the packages to another responsible person.

Headers: X-Api-Key, X-Api-Secret, Content-Type: application/json

Field Type Required Rules
action string Yes remind, void or change_responsible.
packageIds array Yes 1 to 500 package ids.
reason string With void Up to 500 characters.
tellParties, includeReason boolean No As for voiding. Default false.
responsibleUserId UUID With change_responsible The new person.

Returns 202 Accepted with the action, status queued; the work runs in the background, each package on its own. Your organization can start 30 bulk actions an hour.

Status When
400 packageIds is empty, void has no reason, or change_responsible has no responsibleUserId.
422 More than 500 ids, an id that isn’t a UUID, an unknown action, or a reason over 500 characters.
429 Your organization started 30 bulk actions in the last hour.

GET/v1/document_package_bulk_actions/{id}

Key permission: start_package_bulk_action

Returns 200 OK with how the action is going, and what it left alone. A key reads only the actions keys started; one started in the app answers 404.

Field Meaning
id, action The action and what it does.
status queued, running, finished or failed.
total How many packages it was given.
succeeded How many it acted on.
skipped The packages it left alone, as {packageId, title, reason}. reason is not_allowed (no such package in your organization), not_open (finished, voided or not sent, so nothing to remind of or void), nobody_to_remind, not_delivered (the reminders could not be sent), person_cannot_take (the new responsible person can’t take this package) or failed.

Remind the waiting parties of two packages:

Terminal window
curl -X POST 'https://api.doxtly.com/v1/document_package_bulk_actions' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET" \
-H 'Content-Type: application/json' \
-d '{"action":"remind","packageIds":["01a1ce9d-8ee4-7449-b6ae-e0710bbdca7d","01a1cdf2-9fc6-7060-bca4-63bb570a14b9"]}'

Response 202:

{
"id": "01a1ce9d-aed9-796b-9b1b-3d0c6eaacf00",
"action": "remind",
"status": "queued",
"total": 2,
"succeeded": 0,
"skipped": []
}

A moment later, reading the action shows that the first package’s party was reminded, and the second package, already signed, was left alone:

Terminal window
curl 'https://api.doxtly.com/v1/document_package_bulk_actions/01a1ce9d-aed9-796b-9b1b-3d0c6eaacf00' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET"
{
"id": "01a1ce9d-aed9-796b-9b1b-3d0c6eaacf00",
"action": "remind",
"status": "finished",
"total": 2,
"succeeded": 1,
"skipped": [
{
"packageId": "01a1cdf2-9fc6-7060-bca4-63bb570a14b9",
"title": "Mutual NDA - Thornbury Analytics",
"reason": "not_open"
}
]
}

POST/v1/document_package_exports

Key permission: create_package_export

Field Type Required Meaning
from, to date-time Unless packageIds is given The range of the packages’ creation dates.
packageTypeIds array No Only these document types.
statuses array No Only these statuses.
packageIds array No A selection instead of dates, up to 500.

The export is built in the background and returns 201 Created. An export started by a key covers the whole organization. One already being built answers 409.

Terminal window
curl -X POST 'https://api.doxtly.com/v1/document_package_exports' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET" \
-H 'Content-Type: application/json' \
-d '{"packageIds":["01a1cdf2-9fc6-7060-bca4-63bb570a14b9"]}'
{
"id": "01a1ce9f-e84a-72c6-8b72-e786ba65e8e3",
"status": "pending",
"packageCount": 0,
"parts": [],
"requestedAt": "2026-11-12T08:19:08+01:00",
"expiresAt": null
}

POST/v1/document_package_exports/preview

Key permission: create_package_export

Takes the same body and returns 200 OK with {packages, bytes}: how much the export would hold.

GET/v1/document_package_exports

Key permission: read_package_export

Returns 200 OK with an array of the 25 most recent exports, each as below.

GET/v1/document_package_exports/{id}

Key permission: read_package_export

Returns 200 OK with id, status (pending, running, ready or failed), packageCount, parts as {name, bytes}, requestedAt and expiresAt. An export you can’t read answers 404.

Terminal window
curl 'https://api.doxtly.com/v1/document_package_exports/01a1ce9f-e84a-72c6-8b72-e786ba65e8e3' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET"
{
"id": "01a1ce9f-e84a-72c6-8b72-e786ba65e8e3",
"status": "ready",
"packageCount": 1,
"parts": [
{
"name": "doxtly-packages-1.zip",
"bytes": 194309
}
],
"requestedAt": "2026-11-12T08:19:08+01:00",
"expiresAt": "2026-11-19T08:19:09+01:00"
}

GET/v1/document_package_exports/{id}/parts/{number}

Key permission: read_package_export

Downloads one part, numbered from 1, with 200 OK as a ZIP file under the part’s name. A part the export doesn’t have answers 404.

Terminal window
curl 'https://api.doxtly.com/v1/document_package_exports/01a1ce9f-e84a-72c6-8b72-e786ba65e8e3/parts/1' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET" \
-o export-1.zip

Internal notes on a package, for your organization’s staff: what was agreed on the phone, where the paper original is kept. A package’s parties never see them, and neither does a portal or any public page. Every package has notes, whatever its type.

GET/v1/document_packages/{id}/notes

POST/v1/document_packages/{id}/notes

PATCH/v1/document_packages/{id}/notes/{noteId}

DELETE/v1/document_packages/{id}/notes/{noteId}

Call Key permission Body Answer
GET .../notes get_package_notes 200 OK with items: every note, the newest first, in one answer.
POST .../notes create_package_note body 201 Created with the note.
PATCH .../notes/{noteId} update_package_note body 200 OK with the note. A note somebody else wrote answers 403.
DELETE .../notes/{noteId} delete_package_note 204 No Content. A note somebody else wrote answers 403.

body is the note’s text, 1 to 5,000 characters, stored without the spaces around it; an empty or longer one answers 422 naming body. A note is signed by the person or key that wrote it, and only its author changes it. Its author deletes it, and so does an Administrator in the app: a key deletes only the notes it wrote. On a contract, each change in annexes says how many notes it has in notesCount.

Field Type Meaning
id UUID The note’s identifier.
body string Its text.
author object name, the person’s or key’s name, with userId or accessKeyId while the account or key exists.
isOwn boolean Whether the reader wrote it, and so may change it.
canDelete boolean Whether the reader may delete it.
createdAt date-time When it was written.
editedAt date-time or null When its text was last changed.
Terminal window
curl -X POST 'https://api.doxtly.com/v1/document_packages/01a1d674-3140-7538-be28-a1ae139bdf20/notes' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET" \
-H 'Content-Type: application/json' \
-d '{"body":"The signed originals are in the Warsaw office, binder 4."}'
{
"id": "01a1d676-4b6d-7736-9652-59002ded2c9a",
"body": "The signed originals are in the Warsaw office, binder 4.",
"author": {
"name": "Contract register sync",
"userId": null,
"accessKeyId": "01a1d674-2f4d-7800-8fa5-85f914efdd60"
},
"isOwn": true,
"canDelete": true,
"createdAt": "2026-11-13T20:50:39+01:00",
"editedAt": null
}
Terminal window
curl 'https://api.doxtly.com/v1/document_packages/01a1d674-3140-7538-be28-a1ae139bdf20/notes' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET"

After the note was changed to say binder 7:

{
"items": [
{
"id": "01a1d676-4b6d-7736-9652-59002ded2c9a",
"body": "The signed originals are in the Warsaw office, binder 7.",
"author": {
"name": "Contract register sync",
"userId": null,
"accessKeyId": "01a1d674-2f4d-7800-8fa5-85f914efdd60"
},
"isOwn": true,
"canDelete": true,
"createdAt": "2026-11-13T20:50:39+01:00",
"editedAt": "2026-11-13T20:50:39+01:00"
}
]
}

A package carries the values of your organization’s custom fields of packages that its document type has: those defined for every type and those for its own. Every answer that is a package - Get a package, a row of List packages, Read a draft - has them in two fields, as a contact does: customFields, the values of the ordinary fields by key, and sensitiveCustomFields, the keys of the sensitive fields that hold a value. Somebody who sees the package only as one of its parties gets them empty. A draft’s values are set with customFields in Create a draft or Change a draft, checked against the fields of the type the request files it under.

PATCH/v1/document_packages/{id}/custom_fields

Key permission: update_package_custom_fields. Works on a draft and on a package already sent: the fields are your organization’s data about the package, not what was signed, so a change touches no audit trail. Takes customFields, an object by key, where a value is a string or a JSON number and null or an empty string takes it away; keys you leave out keep their values. Returns 200 OK with customFields and sensitiveCustomFields.

  • A key the package’s type has no field of, or a value not of its field’s type, is refused with 422, naming customFields.<key>.
  • Giving a sensitive field needs read_sensitive_custom_fields as well, otherwise 403.
  • A value of a unique field that another package of your organization holds is refused with 409, nothing saved, and detail names that package.
  • On a contract, the change goes into the contract’s history as fields_changed, with each field’s value before and after; a sensitive one only as changed.
Terminal window
curl -X PATCH 'https://api.doxtly.com/v1/document_packages/01a1ccdd-8c09-7507-b919-8f413adb175c/custom_fields' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET" \
-H 'Content-Type: application/json' \
-d '{"customFields":{"dealId":"PD-4471","contractValue":"125000"}}'
{
"customFields": {
"dealId": "PD-4471",
"contractValue": "125000"
},
"sensitiveCustomFields": []
}

GET/v1/document_packages/{id}/sensitive_fields

Key permission: read_sensitive_custom_fields, and a key that may read the package. Returns 200 OK with customFields, the values of the package’s sensitive fields by key, without the ordinary ones.

List packages takes filter[fields.<key>][eq]=… for any field, filter[fields.<key>][like]=… for a text field (the value contains it, in any letter case), and filter[fields.<key>][gte] and [lte] for a date (YYYY-MM-DD) or a number; and sort=fields.<key> or sort=-fields.<key>, a number sorted as a number and a package without a value last either way. A key no field of packages has, or a sensitive one, answers 422. An export has a column for each field that is not sensitive in its index.csv, headed by its label.

A package filed under a document type that tracks contracts is a contract: beside its signing status it has a term and a state, and the documents that change it (annexes, a termination agreement, a notice, a related letter) are packages of their own, filed with it. Contracts explains how they work. Through the API a key reads all of this on the package, changes a term, starts a change, and adds documents signed outside Doxtly, one at a time or many from a sheet. Which document types track contracts, and how many days before the end they warn, is set in the app.

Days are written YYYY-MM-DD, such as 2027-12-31, and the API takes them in no other form. They are days of your organization’s calendar, with no time of day. A day written otherwise answers 422, naming the field in words, in the request’s language: Check “Ends on”: it is not a date. Write it as 2027-12-31. Only a sheet for an import takes other forms.

Get a package has these fields; a row of List packages has contract without term, annex, signedOutsideOn and changes.

Field Type Meaning
contract object or null Where the contract stands, and its term as written. null for a package that is no contract.
annex object or null For a change of a contract: what it does and to which contract. null for any other package.
annexes array On a contract: its changes, the first made first. Empty on any other package.
contractHistory array On a contract: what happened to it, the oldest first.
recordedParties array On a document signed outside Doxtly: who signed it, as it was added, each with fullName, email, company and contactId. Such a package has no recipients.
signedOutsideOn date or null The day a document signed outside Doxtly was signed.

contract:

Field Type Meaning
state string or null Where it stands today, below. null while it is still being signed.
effectiveFrom date or null Its first day in force: startsOn of its term, or the day it was signed. null until it is signed.
endsOn date or null Its last day in force: the end of its term, moved on by renewals and annexes, or the last day an ending set. null for an indefinite period. Before the contract is signed, the end its term names.
terminatedOn date or null The last day a termination agreement or a notice set.
noticeDeadline date or null The last day to give notice for the contract to end at endsOn. null without a notice period, or once a change ended it.
renews boolean Whether it renews itself at its end.
signedOutsideOn date or null As on the package.
term object The term as written, only on Get a package: startsOn, endsOn, renewal, notice and noticeEndsAtMonthEnd, as Change a contract’s term takes them.
state In the app Meaning
upcoming Not yet in force Signed, and its term starts later.
in_force In force In force.
ending_soon Ending soon In force, and within the warning days its document type sets before its last day, or, for a contract that renews, before the last day to give notice.
ended Ended Its term ran to its end.
terminated Terminated A termination agreement or a notice ended it before its term would have.

annex, and each item of annexes:

Field Type Meaning
kind string What the change does: see the kinds of change.
number integer or null An annex’s number within its contract, counted from 1. null for an ending or a related document.
effectiveOn date or null For amends_terms: from when the new terms apply.
newEndsOn date or null For extends: the contract’s new last day.
indefinite boolean For extends: the contract now runs for an indefinite period.
lastDay date or null For ends_by_agreement and ends_by_notice: the contract’s last day in force.
inEffect boolean Whether it took effect: once everybody signed it, or at once for one signed outside Doxtly. A related document never does.
inEffectSince date or null The day it took effect.
contract object Only on annex: the contract it changes, as {id, title, number}.
id, title, status, createdAt, notesCount Only on items of annexes: the change’s package, its signing status, when it was made and how many notes it has.

Each line of contractHistory has id, kind, occurredAt, actor ({name} of the person or key, null for what the contract did by itself), annex ({id, title, number} of the change it is about), before and after (the term, for term_changed), endsOn (the end a renewal, a change or its removal gave the contract), renewedFrom (the end a renewal moved on from) and fieldChanges (for fields_changed: each field’s key, before, after and sensitive; a sensitive value is null).

kind What happened
signed Everybody signed the contract in Doxtly.
signed_outside The contract was added as signed outside Doxtly.
term_changed Somebody changed the term.
fields_changed Somebody changed its custom fields.
annex_in_effect A change took effect.
change_removed Somebody deleted a change that was in effect.
renewed The term renewed itself. Several periods renewed at once are one line.
ended The term ran to its end.
terminated A change ended the contract before its term would have.
Terminal window
curl 'https://api.doxtly.com/v1/document_packages/01a1d674-3140-7538-be28-a1ae139bdf20' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET"
{
"id": "01a1d674-3140-7538-be28-a1ae139bdf20",
"title": "Office cleaning - Brightway Facilities",
"number": "SUP/2026/014",
"typeName": "Supplier contracts",
"derivedStatus": "completed",
"recipients": [],
"contract": {
"state": "in_force",
"effectiveFrom": "2026-03-15",
"endsOn": "2027-03-31",
"terminatedOn": null,
"noticeDeadline": "2026-12-31",
"renews": true,
"signedOutsideOn": "2026-03-02",
"term": {
"startsOn": "2026-03-15",
"endsOn": "2027-03-31",
"renewal": { "amount": 12, "unit": "month" },
"notice": { "amount": 3, "unit": "month" },
"noticeEndsAtMonthEnd": true
}
},
"annex": null,
"annexes": [
{
"id": "01a1d676-01d0-7222-a845-bf92018433ab",
"title": "Annex 1 - new cleaning prices",
"number": 1,
"kind": "amends_terms",
"effectiveOn": "2027-01-01",
"newEndsOn": null,
"indefinite": false,
"lastDay": null,
"status": "completed",
"inEffect": true,
"inEffectSince": "2026-11-10",
"createdAt": "2026-11-13T20:50:20+01:00",
"notesCount": 0
}
],
"contractHistory": [
{
"id": "01a1d674-316a-7952-a03d-6aa2f7e86ac4",
"kind": "signed_outside",
"occurredAt": "2026-11-13T20:48:21+01:00",
"actor": { "name": "Contract register sync" },
"annex": null,
"before": null,
"after": null,
"endsOn": null,
"renewedFrom": null,
"fieldChanges": []
},
{
"id": "01a1d676-01e5-7bdb-b98d-18767e52bd0d",
"kind": "annex_in_effect",
"occurredAt": "2026-11-13T20:50:20+01:00",
"actor": null,
"annex": {
"id": "01a1d676-01d0-7222-a845-bf92018433ab",
"title": "Annex 1 - new cleaning prices",
"number": 1
},
"before": null,
"after": null,
"endsOn": "2027-03-31",
"renewedFrom": null,
"fieldChanges": []
}
],
"recordedParties": [
{
"fullName": "Helen Marsh",
"email": "helen.marsh@brightway.example",
"company": "Brightway Facilities Ltd",
"contactId": null
},
{
"fullName": "Anna Kowalska",
"email": "anna.kowalska@northbridge.example",
"company": "Northbridge Advisory sp. z o.o.",
"contactId": null
}
],
"signedOutsideOn": "2026-03-02"
}

Shortened to the fields this section is about, and to two lines of history.

To find contracts, List packages takes filter[isContract], filter[contractState], filter[changeOf], group=contract and the sorts contractEnd and contractAlertOn. The contracts ending soon, the soonest first, are filter[contractState][eq]=ending_soon&sort=contractAlertOn.

PUT/v1/document_packages/{id}/contract_term

Key permission: update_contract_term

Sets the term of a contract: a draft, one being signed, or one signed already. The term is what your organization records about the contract, not what was signed, so it can be corrected at any time. The body replaces the whole term: a field left out is null.

Field Type Required Rules
startsOn date or null No The first day in force. null: from the day it is signed.
endsOn date or null No The last day in force, not before startsOn. null: for an indefinite period.
renewal object or null No {amount, unit}: at its end the contract renews itself for this period, again and again, until a change ends it. Only with endsOn.
notice object or null No {amount, unit}: the notice period, counted back from the end to give noticeDeadline.
noticeEndsAtMonthEnd boolean No Notice takes effect only at the end of a calendar month. Default false, and always false without notice.

A period’s amount is 1 to 999 and its unit is day, week, month or year. A month or a year added to a day its month doesn’t have lands on that month’s last day: a month from 31 January is 28 or 29 February.

Returns 200 OK with the package, as Get a package gives it. Once the package has been sent, the change goes into the contract’s history as term_changed, with the term before and after; when it moves the dates of a signed contract, workflows on A contract changes start.

Status When
422 The package is no contract: This package is not a contract: its document type does not track contracts.
422 The package is a change of a contract: This package is a change of a contract: it has no term of its own. Change the term of the contract itself.
422 A day that is not written 2027-12-31 (Check “Ends on”: it is not a date. Write it as 2027-12-31.), an end before the start, a renewal without an end, a period out of range or of an unknown unit.
Terminal window
curl -X PUT 'https://api.doxtly.com/v1/document_packages/01a1d674-3140-7538-be28-a1ae139bdf20/contract_term' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET" \
-H 'Content-Type: application/json' \
-d '{"startsOn":"2026-03-15","endsOn":"2027-03-31","renewal":{"amount":12,"unit":"month"},"notice":{"amount":3,"unit":"month"},"noticeEndsAtMonthEnd":true}'
{
"id": "01a1d674-3140-7538-be28-a1ae139bdf20",
"contract": {
"state": "in_force",
"effectiveFrom": "2026-03-15",
"endsOn": "2027-03-31",
"terminatedOn": null,
"noticeDeadline": "2026-12-31",
"renews": true,
"signedOutsideOn": "2026-03-02",
"term": {
"startsOn": "2026-03-15",
"endsOn": "2027-03-31",
"renewal": { "amount": 12, "unit": "month" },
"notice": { "amount": 3, "unit": "month" },
"noticeEndsAtMonthEnd": true
}
},
"contractHistory": [
{
"id": "01a1d674-5c33-758e-bf22-d136fc2b006f",
"kind": "term_changed",
"occurredAt": "2026-11-13T20:48:32+01:00",
"actor": { "name": "Contract register sync" },
"annex": null,
"before": {
"startsOn": "2026-03-15",
"endsOn": "2027-03-14",
"renewal": { "amount": 12, "unit": "month" },
"notice": { "amount": 3, "unit": "month" },
"noticeEndsAtMonthEnd": true
},
"after": {
"startsOn": "2026-03-15",
"endsOn": "2027-03-31",
"renewal": { "amount": 12, "unit": "month" },
"notice": { "amount": 3, "unit": "month" },
"noticeEndsAtMonthEnd": true
},
"endsOn": null,
"renewedFrom": null,
"fieldChanges": []
}
]
}

Shortened to the fields this call is about. With noticeEndsAtMonthEnd, notice ends a contract only at the end of a month, so the notice period is counted back from the last day of a month on or before endsOn, and a notice period in months can be given until the end of the month that count lands in. With the end on 14 March 2027, that day is 28 February, three months before it is 28 November, and so noticeDeadline was 30 November 2026. With the end on 31 March, the count starts at 31 March itself, and noticeDeadline moved to 31 December 2026.

POST/v1/document_packages/{id}/annexes

Key permission: create_annex

Starts a change of a signed contract: a draft of its own, filed with the contract, that does what its kind says once everybody has signed it. It is what Create annex and End contract do in the app. The draft has the contract’s document type, settings, parties and viewers, and a title such as “Annex 2 to …”, in your organization’s language. When the document type has a template for that kind of change, the draft holds a document made from it and filled with the contract’s data; otherwise it has none yet. Then work on it as on any draft, from Add or change a document to Send a draft.

For a contract added as signed outside Doxtly, the parties of the change are the people recorded as having signed it. Each one with an email becomes a party. They are asked by email, and they have no roles: the contract doesn’t say whom each one signs as, and Doxtly doesn’t guess it, so each has an empty indicator and the draft has partiesChooseRoles true. Give each one the indicator they sign as with Set the parties, or leave it empty for one who doesn’t sign. Sending is refused while an indicator the documents name has no party: Choose which party signs as .... The contract was signed outside Doxtly, so its parties have no roles, and Doxtly does not guess them. Someone recorded without an email can’t be asked to sign: they are left out, and the draft lists their names in partiesLeftOut. To have them sign, add them with an address.

Field Type Required Rules
kind string Yes What the change does, below.
effectiveOn date No For amends_terms: from when the new terms apply.
newEndsOn date With extends, unless indefinite The contract’s new last day.
indefinite boolean No With extends: the contract runs on for an indefinite period. Default false.
lastDay date With ends_by_agreement The contract’s last day in force. For ends_by_notice, left out, it is the notice period from today, at a month’s end where the term says so, or today for a contract without a notice period.

Whatever another kind would take is ignored. A day before the contract is in force is refused.

kind In the app Numbered
amends_terms Annex changing the terms Yes
extends Annex extending the contract Yes
ends_by_agreement Termination agreement No
ends_by_notice Notice of termination No
related Related document: kept with the contract, it changes nothing No

An annex takes the next number of its contract. Deleting the latest annex while it is still a draft gives its number back; any other keeps its number taken. A change takes no number from its document type’s numbering, also when it is sent: it is known by its title, such as “Annex 2 to …”, and its contract’s number, annex.contract.number, and its draft’s numberPlaceholder is empty.

Returns 201 Created with the draft, as Read a draft gives it, with annex saying what it will do.

Status When
409 The contract isn’t signed by everybody yet: An annex can be made only of a contract everybody has signed.
409 The package is itself a change: An annex amends a contract: make it of the contract itself.
422 The package is no contract, an unknown kind (Choose what the annex does: changes the terms, extends the contract or ends it.), a missing day (Give the new end date, or extend the contract indefinitely., Give the last day the contract is in force.), a day not written 2027-12-31 (Check “New end date”: it is not a date. Write it as 2027-12-31.), or a day before the contract is in force (A change cannot end or extend the contract to a day before it is in force.).

An annex extending a contract signed in Doxtly, whose document type has a template for extensions:

Terminal window
curl -X POST 'https://api.doxtly.com/v1/document_packages/01a1d677-8366-7e50-b846-3266555d8aab/annexes' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET" \
-H 'Content-Type: application/json' \
-d '{"kind":"extends","newEndsOn":"2028-12-31"}'
{
"id": "01a1d749-c339-720e-9174-ad6db56577fa",
"title": "Annex 2 to Advisory services agreement – Nordvik Marine AS",
"packageTypeId": "01a1ab61-340e-74e7-aead-28e1675e6a33",
"documents": [
{
"id": "1e9faa24-7294-486c-aa3c-115dfb6a684c",
"title": "Annex extending the agreement",
"segments": [
{
"id": "1582f644-c849-4f62-979b-9e14dc20d349",
"kind": "template",
"templateId": "01a1d670-4eec-712e-8638-ae9128a48f70",
"contractValues": [
"client.city",
"client.company",
"client.job_title",
"client.name",
"client.postal_code",
"client.street"
],
"data": {
"client": {
"city": "Bergen",
"company": "Nordvik Marine AS",
"job_title": "Chief Financial Officer",
"name": "Ingrid Halvorsen",
"postal_code": "5003",
"street": "Bryggen 21"
}
}
}
],
"parties": ["NORTHBRIDGE", "CLIENT"]
}
],
"parties": [
{
"indicator": "NORTHBRIDGE",
"fullName": "Anna Kowalska",
"email": "anna.kowalska@northbridge.example",
"userId": "01a1aaef-8961-740c-9c12-2d3b67cf51a6",
"contactId": null
},
{
"indicator": "CLIENT",
"fullName": "Ingrid Halvorsen",
"email": "ingrid.halvorsen@nordvik-marine.example",
"userId": null,
"contactId": "01a1ccda-31be-7e48-8ee3-b69d1cd816b8"
}
],
"viewers": [],
"contractTerm": null,
"annex": {
"kind": "extends",
"number": 2,
"effectiveOn": null,
"newEndsOn": "2028-12-31",
"indefinite": false,
"lastDay": null,
"inEffect": false,
"inEffectSince": null,
"contract": {
"id": "01a1d677-8366-7e50-b846-3266555d8aab",
"title": "Advisory services agreement – Nordvik Marine AS",
"number": "CC/2026/005"
}
},
"partiesLeftOut": [],
"systemValues": {
"_package.annex.kind": "extends",
"_package.annex.number": "2",
"_package.annex.newEndsOn": "2028-12-31",
"_package.annex.contract.id": "01a1d677-8366-7e50-b846-3266555d8aab",
"_package.annex.contract.title": "Advisory services agreement – Nordvik Marine AS",
"_package.annex.contract.number": "CC/2026/005",
"_package.annex.contract.signedOn": "2026-11-13",
"_package.annex.contract.startsOn": "2026-11-13",
"_package.annex.contract.endsOn": "2027-12-31"
}
}

Shortened to the fields this call is about. The contract has an annex already, so this one is number 2. The document is the type’s template for extensions, filled with what the contract was filled with (contractValues names those values), and the parties are the contract’s.

A change of a contract signed outside Doxtly, recorded with three people who signed it, one of them without an email:

Terminal window
curl -X POST 'https://api.doxtly.com/v1/document_packages/01a1d796-35c8-7df8-b9d8-71fda04d0009/annexes' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET" \
-H 'Content-Type: application/json' \
-d '{"kind":"amends_terms","effectiveOn":"2027-01-01"}'
{
"id": "01a1d796-36df-7548-b370-64181f7ea6db",
"title": "Annex 1 to Advisory services agreement – Fenwick Analytics Ltd",
"documents": [
{
"id": "a25f65fe-e90d-411f-9f4f-df2772b4d02c",
"title": "Annex changing the terms",
"parties": ["NORTHBRIDGE", "CLIENT"]
}
],
"parties": [
{
"indicator": "",
"fullName": "Anna Kowalska",
"email": "anna.kowalska@northbridge.example",
"contactId": null
},
{
"indicator": "",
"fullName": "Oliver Grant",
"email": "oliver.grant@fenwick.example",
"contactId": null
}
],
"annex": {
"kind": "amends_terms",
"number": 1,
"effectiveOn": "2027-01-01",
"newEndsOn": null,
"indefinite": false,
"lastDay": null,
"inEffect": false,
"inEffectSince": null,
"contract": {
"id": "01a1d796-35c8-7df8-b9d8-71fda04d0009",
"title": "Advisory services agreement – Fenwick Analytics Ltd",
"number": "NB-2025-031"
}
},
"partiesLeftOut": ["Clare Whitfield"],
"filledAtSending": [],
"partiesChooseRoles": true
}

Shortened to the fields this call is about. The template names NORTHBRIDGE and CLIENT, and nobody signs as either yet: Anna Kowalska and Oliver Grant have an empty indicator, and Clare Whitfield, recorded without an email, is left out. Until both indicators have a party, Check whether a draft can be sent answers Choose which party signs as NORTHBRIDGE. The contract was signed outside Doxtly, so its parties have no roles, and Doxtly does not guess them., and the same for CLIENT.

POST/v1/document_packages/signed

Key permission: add_signed_document

Adds a document that was signed on paper or in another system, so that your organization keeps it with the rest: a contract with its term, a change of a contract, or any other document. Nothing is sent and nobody is asked to sign. The package is finished at once, with the files as its documents, marked as Signed outside Doxtly, and the people who signed it are recorded as its recordedParties, not invited. It isn’t counted as a package sent for signature; its files take disk space.

The request is multipart/form-data with two parts:

Part Rules
files[] The PDFs, in order: 1 to 20, together up to 50 MB.
data A JSON object, below.
Field of data Type Required Rules
typeId UUID Yes The document type.
title string Yes Up to 255 characters.
number string No Up to 120 characters, unique within the document type.
signedOn date Yes The day it was signed, not in the future.
responsibleUserId UUID For a contract added with an access key Who answers for the package: they are told when the contract is about to end. Left out, a contract added in the app answers to whoever added it; one added with an access key is refused (422), as nobody would be told.
parties array Yes, except for a related document Up to 50, each with fullName (required), email, company (each up to 255 characters) and contactId, the contact the party is.
documents array No {title} for each file, in the order of files[], each up to 255 characters; none, or a blank title, names a document after its file without .pdf.
contractTerm object No For a type that tracks contracts: the term. Left out, the contract is in force from signedOn for an indefinite period.
annex object No A change of a signed contract: contractId (required) with the fields of Create an annex. Not with contractTerm.
customFields object No The package’s custom field values, by key, checked as in Change the custom fields.

A contract is in force by its term from the start, and its history begins with signed_outside. A change takes effect at once, as of signedOn, and gets the contract’s next annex number when it is one. A document of a type that tracks no contracts, and without annex, is only kept.

Status When
403 A party’s contactId given by a key that can’t read contacts, or a sensitive custom field without read_sensitive_custom_fields.
404 typeId is none of your document types, annex.contractId none of your packages (This contract is not available.), or a contactId none of your contacts.
409 The contract named in annex isn’t signed yet, or is itself a change.
422 A required field is missing, with violations naming it (Give the date it was signed.).
422 No file (Add the signed document as a PDF file.), more than 20 or over 50 MB, a file that is not a PDF, titles for another number of files than were sent (Give a title for each file, or none at all.), no party (Name at least one party who signed it.), a signing date in the future, a day not written 2027-12-31 (Check “Signed on”: it is not a date. Write it as 2027-12-31.), a number the type already has (A document of this type already has this number.), contractTerm on a type that tracks no contracts, both contractTerm and annex, or data that is no JSON.
422 A contract added with an access key without responsibleUserId: A contract added through an access key needs someone who answers for it - responsibleUserId, or the responsible person’s column in an import: they are told when the contract is about to end. A change of a contract and a document that is no contract don’t need one.
Terminal window
curl -X POST 'https://api.doxtly.com/v1/document_packages/signed' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET" \
-F 'files[]=@cleaning-services-agreement.pdf' \
-F 'files[]=@schedule-1-scope-and-prices.pdf' \
-F 'data={"typeId":"01a1cd1f-2c54-74fc-b780-2c6d0e391e3c","title":"Office cleaning - Brightway Facilities","number":"SUP/2026/014","signedOn":"2026-03-02","responsibleUserId":"01a1aaef-8961-740c-9c12-2d3b67cf51a6","parties":[{"fullName":"Helen Marsh","email":"helen.marsh@brightway.example","company":"Brightway Facilities Ltd"},{"fullName":"Anna Kowalska","email":"anna.kowalska@northbridge.example","company":"Northbridge Advisory sp. z o.o."}],"contractTerm":{"startsOn":"2026-03-15","endsOn":"2027-03-14","renewal":{"amount":12,"unit":"month"},"notice":{"amount":3,"unit":"month"},"noticeEndsAtMonthEnd":true},"documents":[{"title":"Cleaning services agreement"},{"title":"Schedule 1 - Scope and prices"}]}'

Returns 201 Created with the package, as Get a package gives it:

{
"id": "01a1d674-3140-7538-be28-a1ae139bdf20",
"title": "Office cleaning - Brightway Facilities",
"recipients": [],
"documents": [
{
"id": "01a1d674-314e-75ee-93ae-293cc0dd33fe",
"title": "Cleaning services agreement",
"status": "completed",
"completedAt": "2026-11-13T20:48:21+01:00"
},
{
"id": "01a1d674-315d-70ee-a1e5-929f29aaaa56",
"title": "Schedule 1 - Scope and prices",
"status": "completed",
"completedAt": "2026-11-13T20:48:21+01:00"
}
],
"typeName": "Supplier contracts",
"derivedStatus": "completed",
"responsible": {
"id": "01a1aaef-8961-740c-9c12-2d3b67cf51a6",
"fullName": "Anna Kowalska",
"email": "anna.kowalska@northbridge.example"
},
"number": "SUP/2026/014",
"contract": {
"state": "ending_soon",
"effectiveFrom": "2026-03-15",
"endsOn": "2027-03-14",
"terminatedOn": null,
"noticeDeadline": "2026-11-30",
"renews": true,
"signedOutsideOn": "2026-03-02",
"term": {
"startsOn": "2026-03-15",
"endsOn": "2027-03-14",
"renewal": { "amount": 12, "unit": "month" },
"notice": { "amount": 3, "unit": "month" },
"noticeEndsAtMonthEnd": true
}
},
"annex": null,
"annexes": [],
"recordedParties": [
{
"fullName": "Helen Marsh",
"email": "helen.marsh@brightway.example",
"company": "Brightway Facilities Ltd",
"contactId": null
},
{
"fullName": "Anna Kowalska",
"email": "anna.kowalska@northbridge.example",
"company": "Northbridge Advisory sp. z o.o.",
"contactId": null
}
],
"signedOutsideOn": "2026-03-02"
}

Shortened to the fields this call is about. The last day to give notice was 17 days away, within the 45 warning days of this document type, so the contract started as ending_soon.

An annex signed on paper is added the same way, with annex in data:

Terminal window
curl -X POST 'https://api.doxtly.com/v1/document_packages/signed' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET" \
-F 'files[]=@annex-1-cleaning-prices.pdf' \
-F 'data={"typeId":"01a1cd1f-2c54-74fc-b780-2c6d0e391e3c","title":"Annex 1 - new cleaning prices","signedOn":"2026-11-10","parties":[{"fullName":"Helen Marsh","email":"helen.marsh@brightway.example","company":"Brightway Facilities Ltd"}],"annex":{"contractId":"01a1d674-3140-7538-be28-a1ae139bdf20","kind":"amends_terms","effectiveOn":"2027-01-01"}}'
{
"id": "01a1d676-01d0-7222-a845-bf92018433ab",
"title": "Annex 1 - new cleaning prices",
"number": null,
"annex": {
"kind": "amends_terms",
"number": 1,
"effectiveOn": "2027-01-01",
"newEndsOn": null,
"indefinite": false,
"lastDay": null,
"inEffect": true,
"inEffectSince": "2026-11-10",
"contract": {
"id": "01a1d674-3140-7538-be28-a1ae139bdf20",
"title": "Office cleaning - Brightway Facilities",
"number": "SUP/2026/014"
}
},
"contract": null,
"signedOutsideOn": "2026-11-10"
}

Shortened to the fields this call is about.

Brings many documents signed outside Doxtly in at once, from a sheet with a row for each and their PDFs: an archive of supplier contracts, say, when your organization starts keeping them in Doxtly. Each row becomes a package as Add a signed document makes one, checked by the same rules. The import runs in the background.

Call Key permission
POST /v1/signed_document_imports import_signed_documents
POST /v1/signed_document_imports/{id}/sheet import_signed_documents
POST /v1/signed_document_imports/{id}/files import_signed_documents
DELETE /v1/signed_document_imports/{id}/files/{fileId} import_signed_documents
PUT /v1/signed_document_imports/{id}/mapping import_signed_documents
GET /v1/signed_document_imports/{id}/preview import_signed_documents
POST /v1/signed_document_imports/{id}/start import_signed_documents
DELETE /v1/signed_document_imports/{id} import_signed_documents
GET /v1/signed_document_imports/{id} read_signed_document_import
GET /v1/signed_document_imports/{id}/rows read_signed_document_import
GET /v1/signed_document_imports/{id}/report read_signed_document_import

An import belongs to the person or key that opened it: nobody else finds it, and an id of another’s answers 404, No such import. Its files count towards your organization’s disk space. An import is removed seven days after it finished, or after it was last prepared; once it finishes, its PDFs are gone from it, kept in the packages it made.

A CSV, XLSX, ODS or XLS file, with headers in its first row and up to 500 rows below, each a document. You name the columns yourself when you map them, so their order and headers are free; headers as the app’s own template writes them, in English, Polish or Spanish, and a field’s name such as signedOn, are recognised for the suggested mapping.

Field What the cell holds
title The package’s title. Empty: the first file’s title.
type A document type’s name. Without this column, the mapping’s typeId is the type of every row.
number The package’s number.
signedOn The day it was signed. Required.
files The file names of its PDFs, separated by ;. Required.
documentTitles A title for each file, separated by ;, in the order of the files.
responsible The email of the member of your organization who answers for it. A contract imported with an access key needs it; without it the row is refused, A contract added through an access key needs someone who answers for it - responsibleUserId, or the responsible person’s column in an import: they are told when the contract is about to end. One imported in the app answers to whoever imported it.
startsOn, endsOn The contract’s first and last day in force.
renewal, notice A period, such as 12 months, 2 years or 30 days, in English, Polish or Spanish.
changeOf For a change: the number of the contract it changes, an existing one or one an earlier row imports.
changeKind The kind of change: a code of Create an annex, or its name in English, Polish or Spanish, such as Annex extending the contract. Empty: amends_terms.
changeDate The day the kind needs: from when the terms apply, the new end (empty: indefinite), or the last day.

A day may be written 2027-12-31, 31.12.2027, 31/12/2027, 31-12-2027, 2027/12/31 or 2027.12.31. Each party takes up to three columns: its name, which it needs, its email and its company. A custom field of packages takes a column of its own.

POST/v1/signed_document_imports

Send the sheet as sheet, multipart/form-data, up to 25 MB. Returns 201 Created with the import, its columns as {index, letter, header} (index 0 for column A), and a mapping suggested from the headers.

Status When
422 No sheet (Choose the sheet to import.), a file that can’t be read (The sheet cannot be read. Save it as CSV, XLSX, ODS or XLS and try again.), no rows below the header, over 500 rows, or over 25 MB.
Terminal window
curl -X POST 'https://api.doxtly.com/v1/signed_document_imports' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET" \
-F 'sheet=@supplier-contracts.csv'
{
"id": "01a1d74b-07ff-7ce5-8fee-ccd7b51cda9c",
"status": "draft",
"sheetName": "supplier-contracts.csv",
"columns": [
{ "index": 0, "letter": "A", "header": "Title" },
{ "index": 1, "letter": "B", "header": "Document type" },
{ "index": 2, "letter": "C", "header": "Number" },
{ "index": 3, "letter": "D", "header": "Signing date" },
{ "index": 4, "letter": "E", "header": "Files" },
{ "index": 5, "letter": "F", "header": "Party 1 - name" },
{ "index": 6, "letter": "G", "header": "Party 1 - email" },
{ "index": 7, "letter": "H", "header": "Party 1 - company" },
{ "index": 8, "letter": "I", "header": "In force from" },
{ "index": 9, "letter": "J", "header": "In force until" },
{ "index": 10, "letter": "K", "header": "Renews for" },
{ "index": 11, "letter": "L", "header": "Notice period" },
{ "index": 12, "letter": "M", "header": "Change of contract (number)" },
{ "index": 13, "letter": "N", "header": "Kind of change" },
{ "index": 14, "letter": "O", "header": "Date of change" },
{ "index": 15, "letter": "P", "header": "Responsible person (email)" }
],
"rowCount": 3,
"mapping": {
"typeId": null,
"columns": {
"title": 0,
"type": 1,
"number": 2,
"signedOn": 3,
"files": 4,
"responsible": 15,
"startsOn": 8,
"endsOn": 9,
"renewal": 10,
"notice": 11,
"changeOf": 12,
"changeKind": 13,
"changeDate": 14
},
"parties": [
{ "fullName": 5, "email": 6, "company": 7 }
],
"customFields": {}
},
"createContacts": false,
"files": [],
"progress": { "imported": 0, "failed": 0, "pending": 0, "total": 0 },
"createdAt": "2026-11-14T00:43:01+01:00",
"startedAt": null,
"finishedAt": null,
"expiresAt": "2026-11-21T00:43:01+01:00"
}

POST .../sheet, with a corrected sheet as sheet, takes the place of the first: the files stay, and so does the mapping while the columns are the same. It answers 200 OK with the import.

POST/v1/signed_document_imports/{id}/files

Send one PDF as file, up to 25 MB, once for each file; rows name a file by its file name, and a file of a name the import has already takes the place of that one. An import takes up to 2,000 files. Returns 200 OK with {id, name, size, uploadedAt}. DELETE .../files/{fileId} takes one out again, 204 No Content.

Status When
422 No file, a file that is not a PDF, over 25 MB, or one file too many.
409 The import has started: This import has started already: it can no longer be changed. This holds for every call that changes an import.
Terminal window
curl -X POST 'https://api.doxtly.com/v1/signed_document_imports/01a1d74b-07ff-7ce5-8fee-ccd7b51cda9c/files' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET" \
-F 'file=@courier-services-agreement.pdf'
{
"id": "01a1d74b-08ce-7b80-82ac-3979497867b6",
"name": "courier-services-agreement.pdf",
"size": 655,
"uploadedAt": "2026-11-14T00:43:01+01:00"
}

PUT/v1/signed_document_imports/{id}/mapping

Says which column holds which field, by index, 0 for column A, and answers with what each row would become.

Field Type Rules
typeId UUID The document type of every row, when no column gives type.
columns object The column of each field, by its name. signedOn and files are required.
parties array At least one party, each {fullName, email, company} with a column each; fullName is required. Up to 10.
customFields object The column of each custom field of packages, by its key.
createContacts boolean Make a contact for each party email no contact has. The key needs a permission that manages contacts as well, such as create_contact, otherwise 403. Default false.

A column is read for one field only. A mapping that can’t be read answers 422, The columns of the sheet cannot be read so. Check the fields marked., with a violation at mapping.<field> for each fault: There is no such column in the sheet., This column is already read for another field., There is no such field., Choose the column of this field., Choose the document type, or the column that gives it., Choose the columns of at least one party.

Returns 200 OK with the preview: valid and invalid, the number of rows that can and can’t be imported, rows, and unusedFiles, the files no row names. Each row has rowNumber (as in the sheet, the header being row 1), valid, title, typeId, number, files, problems, each {field, message} in the request’s language, where field is the column the problem is about, such as responsible for a contract without a responsible person and changeDate for a change’s date, or null, and awaitedContract, the number of a contract an earlier row imports, which this change waits for. GET .../preview gives the preview again, after files were added for example.

Terminal window
curl -X PUT 'https://api.doxtly.com/v1/signed_document_imports/01a1d74b-07ff-7ce5-8fee-ccd7b51cda9c/mapping' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET" \
-H 'Content-Type: application/json' \
-d '{"columns":{"title":0,"type":1,"number":2,"signedOn":3,"files":4,"startsOn":8,"endsOn":9,"renewal":10,"notice":11,"changeOf":12,"changeKind":13,"changeDate":14,"responsible":15},"parties":[{"fullName":5,"email":6,"company":7}],"customFields":{},"createContacts":false}'
{
"valid": 2,
"invalid": 1,
"rows": [
{
"rowNumber": 2,
"valid": true,
"title": "Courier services - Swiftline Couriers",
"typeId": "01a1cd1f-2c54-74fc-b780-2c6d0e391e3c",
"number": "SUP/2026/021",
"files": ["courier-services-agreement.pdf"],
"problems": [],
"awaitedContract": null
},
{
"rowNumber": 3,
"valid": true,
"title": "Printer lease - Copyhaus Leasing",
"typeId": "01a1cd1f-2c54-74fc-b780-2c6d0e391e3c",
"number": "SUP/2026/022",
"files": ["printer-lease-agreement.pdf"],
"problems": [],
"awaitedContract": null
},
{
"rowNumber": 4,
"valid": false,
"title": "Annex 2 - cleaning extended",
"typeId": "01a1cd1f-2c54-74fc-b780-2c6d0e391e3c",
"number": null,
"files": [],
"problems": [
{
"field": "files",
"message": "The file \"annex-2-cleaning-extension.pdf\" was not added to the import."
}
],
"awaitedContract": null
}
],
"unusedFiles": []
}

POST/v1/signed_document_imports/{id}/start

Imports the rows that are valid now, in the background, and answers 200 OK with the import, its status importing. The rows that are not valid are left out, with why, for the report. When no row is valid it answers 409, No row of the sheet can be imported. Fix the rows marked and load the sheet again.

GET/v1/signed_document_imports/{id}

The import, with status (draft, importing or finished) and progress: imported, failed (rows refused while importing, or left out at the start), pending and total. Ask again every few seconds until status is finished.

{
"id": "01a1d74b-07ff-7ce5-8fee-ccd7b51cda9c",
"status": "finished",
"progress": { "imported": 2, "failed": 1, "pending": 0, "total": 3 },
"startedAt": "2026-11-14T00:43:09+01:00",
"finishedAt": "2026-11-14T01:02:09+01:00",
"expiresAt": "2026-11-21T01:02:09+01:00",
"files": []
}

Shortened to the fields this call is about.

GET/v1/signed_document_imports/{id}/rows

What became of each row, in the order of the sheet, paged with page and perPage (up to 100, default 50). status takes one status, pending, imported, failed or skipped, and failed=1 the rows not imported, failed and skipped together. Each row has rowNumber, status, cells (the text of each cell from column A), problems and package, {id, title, number} of the package it became.

Terminal window
curl 'https://api.doxtly.com/v1/signed_document_imports/01a1d74b-07ff-7ce5-8fee-ccd7b51cda9c/rows?status=imported' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET"
{
"items": [
{
"rowNumber": 2,
"status": "imported",
"cells": [
"Courier services - Swiftline Couriers",
"Supplier contracts",
"SUP/2026/021",
"2026-05-04",
"courier-services-agreement.pdf",
"Tom Reyes",
"tom.reyes@swiftline.example",
"Swiftline Couriers Ltd",
"2026-05-15",
"2027-05-14",
"12 months",
"1 month",
"",
"",
"",
"anna.kowalska@northbridge.example"
],
"problems": [],
"package": {
"id": "01a1d75c-8bd9-7c28-8951-71344df1acfe",
"title": "Courier services - Swiftline Couriers",
"number": "SUP/2026/021"
}
}
],
"meta": {
"total": 2,
"page": 1,
"perPage": 50,
"totalPages": 1,
"hasMore": false,
"hasPrevious": false
}
}

Shortened: the list shows its first item.

GET/v1/signed_document_imports/{id}/report

The rows not imported, as a CSV file to correct and import again: the row’s number, its cells under the sheet’s headers, and a last column with why, in the request’s language.

Terminal window
curl 'https://api.doxtly.com/v1/signed_document_imports/01a1d74b-07ff-7ce5-8fee-ccd7b51cda9c/report' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET" \
-o supplier-contracts-not-imported.csv
Row,Title,"Document type",Number,"Signing date",Files,"Party 1 - name","Party 1 - email","Party 1 - company","In force from","In force until","Renews for","Notice period","Change of contract (number)","Kind of change","Date of change","Responsible person (email)","Why it was not imported"
4,"Annex 2 - cleaning extended","Supplier contracts",,2026-11-12,annex-2-cleaning-extension.pdf,"Helen Marsh",helen.marsh@brightway.example,"Brightway Facilities Ltd",,,,,SUP/2026/014,"Annex extending the contract",2028-03-31,,"The file ""annex-2-cleaning-extension.pdf"" was not added to the import."

DELETE/v1/signed_document_imports/{id}

Gives an import up, with its files and rows, 204 No Content. One that is importing answers 409. The packages a finished import made stay.

GET/v1/document_package_types

Key permission: get_document_package_types

Parameter What it does
page, perPage Paging.
sort name or createdAt, with - for descending.
filter[search][like] Types whose name contains the text, as the reader sees it: the General type by its name in the request’s language.

Returns 200 OK with items and meta: every document type of the organization, whatever the departments it is opened to. Each item has id, name, packageCount (the packages filed under it), departments, createdAt, builtIn (true for General, which every organization has), customName, tracksContracts, contractWarningDays, retentionDays, numbering, signingRules, signingTerms, sendSignedCopies and changeTemplates. The id is what a package’s packageTypeId, the filter[type.id][eq] of List packages and the packageTypeId filter of an outgoing webhook take.

Terminal window
curl -g 'https://api.doxtly.com/v1/document_package_types?sort=name' \
-H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET"
{
"items": [
{
"id": "01a1ab61-340e-74e7-aead-28e1675e6a33",
"name": "Lease agreement",
"packageCount": 14,
"departments": [],
"createdAt": "2026-09-02T08:14:51+00:00",
"builtIn": false,
"customName": null,
"tracksContracts": true,
"contractWarningDays": 30
},
{
"id": "01a1aaef-8a1c-7d1f-9a3b-6f0c2e1d4b57",
"name": "General",
"packageCount": 52,
"departments": [],
"createdAt": "2026-08-30T10:02:13+00:00",
"builtIn": true,
"customName": null,
"tracksContracts": false,
"contractWarningDays": 30
}
],
"meta": {
"total": 2,
"page": 1,
"perPage": 20,
"totalPages": 1,
"hasMore": false,
"hasPrevious": false
}
}

Shortened to the fields this call is about.

A key can’t look at a package as a party sees it, preview a single document segment or upload pictures for a draft: those serve the package editor and run in the application.

Document types, with whether they track contracts, their warning days and their templates for changes, are set in the app; a key lists them. So is the dashboard’s Contracts ending soon: the same list is filter[contractState][eq]=ending_soon&sort=contractAlertOn. The app’s sheet template for an import is for people; an integration writes its own sheet with the columns of The sheet.