url value as the url property of a document.
The following file formats are supported:
| Format | Media Type |
|---|---|
application/pdf | |
| DOCX | application/vnd.openxmlformats-officedocument.wordprocessingml.document |
Retention
Uploads have one of two retention types, indicated by theretention property:
| Retention | Description |
|---|---|
| Temporary | Created through the API. Automatically deleted 24 hours after creation. Use this for one-time document sends. |
| Permanent | Created through the Library in your dashboard. Stored indefinitely and reusable across multiple envelopes. Identified by a unique key. |
The Upload resource replaces the File resource. The File resource is soft-deprecated but remains available for backward compatibility.
Attributes
The unique identifier of the upload.
The retention type of the upload.
| Value | Description |
|---|---|
temporary | The file is automatically deleted 24 hours after creation. |
permanent | The file is stored indefinitely. Created through the dashboard library. |
A unique identifier for the upload within your account. Present only on permanent uploads (
retention is permanent).Only lowercase letters, numbers, hyphens, and underscores are allowed. Maximum 100 characters.The internal URL used to reference this upload in other API calls, such as
document.url.You cannot use this URL to download the file directly.The file format of the upload.
| Value | Description |
|---|---|
pdf | A PDF file (application/pdf). |
docx | A DOCX file (application/vnd.openxmlformats-officedocument.wordprocessingml.document). |
The SHA-256 hash of the uploaded file, in hexadecimal format.
The size of the uploaded file in bytes. Maximum 5 MB (5,242,880 bytes).
The date and time when the upload was created, in ISO 8601 format.
The date and time when the upload will be automatically deleted, in ISO 8601 format. Present only on temporary uploads (
retention is temporary). The expiration is 24 hours after creation.