GET /v1/documents
GET /v1/documents/:id
{
  "id": "fcad499b03c6fc222bc66208317a18c9",
  "name": "Non disclosure agreement.pdf",
  "pages": 10,
  "original": "https://annature..",
  "master": "https://annature..",
  "created": "2019-12-17T05:30:00Z"
}

A document represents the content of an envelope in the form of a PDF. It includes metadata such as the file name and number of pages.

Documents can only be created when creating an envelope, and each envelope must contain at least one document.

Original and master copies

Each document, like the envelope it belongs to, has two versions:

  • The original copy represents the document exactly as it was uploaded — before any fields (such as signatures or dates) were applied.
  • The master copy (also referred to as the “live copy”) reflects the most up-to-date version of the document, with any applied fields and completed actions.

The master copy is available only if the envelope has progressed beyond the created status. If the envelope is voided, download access to the document is disabled.

Attributes

id
string

A user-defined identifier for the document.

If not supplied, Annature will generate one automatically. Supplying your own ID is recommended, as it allows you to reference this document in future API requests without needing to store the generated ID from the response.

name
string(500)

The file name of the document. This value is used as the download file name when retrieving the document from Annature.

pages
integer

The number of pages in the document.

original
string

A temporary URL that can be used to download the original version of the document (before any fields were applied).

Download links are valid for 60 minutes. After expiry, the endpoint will return a 403 Forbidden response.

master
string

A temporary URL that can be used to download the master version of the document.

This value will be null if the associated envelope has a created status.

Download links are valid for 60 minutes. After expiry, the endpoint will return a 403 Forbidden response.

created
string

The ISO 8601 timestamp for when the document was created.

GET /v1/documents
GET /v1/documents/:id
{
  "id": "fcad499b03c6fc222bc66208317a18c9",
  "name": "Non disclosure agreement.pdf",
  "pages": 10,
  "original": "https://annature..",
  "master": "https://annature..",
  "created": "2019-12-17T05:30:00Z"
}