Skip to content
Developer API

Documents API

Create, send, retrieve, download, and manage documents programmatically via the REST API.

Last updated April 15, 2026

Base URL

https://api.ziasign.com/api/v1

All endpoints require authentication.

List Documents

GET /documents

Query parameters:

ParameterTypeDescription
statusstringFilter by status: draft, sent, completed, voided, expired
pageintegerPage number (default: 1)
pageSizeintegerResults per page (default: 20, max: 100)
searchstringSearch by document name or signer email
sortBystringSort field: createdAt, updatedAt, name
sortOrderstringasc or desc (default: desc)

Response


Create & Send Document


FieldTypeRequiredDescription
filebinaryYesThe document file (PDF, PNG, JPG, JPEG)
namestringNoDocument name (defaults to filename)
signersJSONYesArray of signer objects
fieldsJSONNoArray of field placement objects
sendbooleanNoSend immediately (default: false — creates as draft)
subjectstringNoCustom email subject
messagestringNoCustom email body message
expirationDaysintegerNoDays until expiration (default: 30)

cURL Example


JavaScript Example


Get Document

GET /documents/{id}

Returns the full document details including status, signers, fields, and audit trail.

Download Document

GET /documents/{id}/download

Returns the document PDF. For completed documents, this includes all signatures and the Certificate of Completion.

Query parameters:

ParameterTypeDescription
certificatebooleanInclude Certificate of Completion (default: true)
auditTrailbooleanInclude audit trail pages (default: true)

Void Document

POST /documents/{id}/void

Cancels a sent document. All signers are notified that the document has been voided.

Resend Notification

POST /documents/{id}/resend

Document Statuses

StatusDescription
draftCreated but not yet sent
sentSent to signers, awaiting signatures
viewedAt least one signer has opened the document
partially_signedAt least one signer has signed (multi-signer docs)
completedAll signers have signed
voidedCancelled by the sender
expiredSigning period elapsed without completion

Frequently asked questions

Can I upload a document and send it in a single API call?

Yes. The POST /documents endpoint accepts the file, signers, and fields in a single multipart request. Set the 'send' parameter to true to send immediately.

What is the maximum file size for API uploads?

25 MB per file via the API, same as the web interface. For larger files, contact support for Enterprise accommodations.

How do I check the status of a sent document?

Use GET /documents/{id} to retrieve the document details, including the current status (draft, sent, viewed, partially_signed, completed, voided, expired).

Related documentation