---
title: "Document URL and Upload"
description: "Give each document a file URL: upload PDF or DOCX files to the Library or through the API, or link a file on a supported host such as Amazon S3 or Azure."
canonical: "https://signatureapi.com/docs/api/resources/documents/url"
source: "https://signatureapi.com/docs/api/resources/documents/url.md"
last_verified_api_version: "1.18.1"
last_modified: "2026-11-18T11:48:11Z"
---

# Document URL and Upload

Give each document a file URL: upload PDF or DOCX files to the Library or through the API, or link a file on a supported host such as Amazon S3 or Azure.

_Last verified against API version 1.18.1._

Every document in an envelope requires a `url` pointing to a PDF or DOCX file. SignatureAPI downloads the file when the envelope is created.

There are three ways to provide a file URL:

- [Upload via the Dashboard](https://signatureapi.com/docs/api/resources/documents/url#upload-via-dashboard)
- [Upload via the API](https://signatureapi.com/docs/api/resources/documents/url#upload-via-api)
- [Host it externally](https://signatureapi.com/docs/api/resources/documents/url#external-store) on a service like S3 or Azure

## Upload via Dashboard

Upload files to your account's **Library** in the Dashboard. Library files never expire and can be reused across multiple envelopes. This method works well for recurring documents and templates.

To upload a file, go to the **Library** tab in the Dashboard.

![The Library page in the Dashboard: an upload area at the top and a table of uploaded files with key, type, size, upload time and a Copy URL button on each row](https://signatureapi.com/docs/images/upload-library.webp)

Click **Upload a file** or drag and drop your file, then confirm the upload. Click **Copy URL** to copy the file URL.

Use the URL as the document's `url` when you [create an envelope](https://signatureapi.com/docs/api/resources/envelopes/create):

```json Document with a Library file
{
  "url": "https://api.signatureapi.com/v1/uploads/upl_1sAAaVfabdt0esVjmSTmLA#agreement-v1",
  "format": "pdf"
}
```

## Upload via API

To upload a file from your server, use [Create Upload](https://signatureapi.com/docs/api/resources/uploads/create): it sends the bytes in a single request and takes files up to 4.5 MB. For a larger file, [create an upload URL](https://signatureapi.com/docs/api/resources/uploads/create-url) and PUT the file's bytes to it. This flow takes files up to your account's maximum document size.

> **Note:** API uploads are temporary and are deleted 24 hours after creation. To reuse a file, [store the upload](https://signatureapi.com/docs/api/resources/uploads/store) or upload it to your Library in the Dashboard.

Use the upload's URL as the document's `url`: the `url` returned by Create Upload, or the `reference` returned with the upload URL.

```json Document with an API upload
{
  "url": "https://api.signatureapi.com/v1/uploads/upl_3JJz6t1o8A5YjX5VpnX27Z",
  "format": "pdf"
}
```

## External Store

You can provide a URL from a supported hosting service. SignatureAPI downloads the file from that location when the envelope is created, so the URL must work without signing in: use a public URL, or a pre-signed or signed URL that is still valid at that moment.

The URL must use HTTPS, be at most 2048 characters long, and have one of these hosts. `*` stands for one or more characters, such as your bucket or account name.

| Service              | Accepted hosts                                                                                                |
| -------------------- | ------------------------------------------------------------------------------------------------------------- |
| Amazon S3            | `*.s3.*.amazonaws.com`, `*.s3.amazonaws.com`, `s3.amazonaws.com`, `s3.*.amazonaws.com`                        |
| AWS CloudFront       | `*.cloudfront.net`                                                                                            |
| Cloudflare R2        | `*.r2.dev`, `*.r2.cloudflarestorage.com`                                                                      |
| Azure Blob Storage   | `*.blob.core.windows.net`                                                                                     |
| Google Cloud Storage | `storage.googleapis.com`                                                                                      |
| Google Drive         | `drive.google.com`                                                                                            |
| Dropbox              | `www.dropbox.com`                                                                                             |
| Supabase Storage     | `*.supabase.co`                                                                                               |
| Vercel Blob          | `*.public.blob.vercel-storage.com`                                                                            |
| Convex               | `*.convex.cloud`                                                                                              |
| Bubble               | `*.cdn.bubble.io`                                                                                             |
| SignatureAPI uploads | `api.signatureapi.com` (the `url` of an [upload](https://signatureapi.com/docs/api/resources/uploads/object)) |

For Amazon S3, CloudFront, R2, Azure, Google Cloud Storage and Supabase, pre-signed or signed URLs are recommended. For Google Drive, Dropbox, Vercel, Convex and Bubble, make sure the URL downloads the file itself, not a preview page.

A URL from any other host, including a custom domain in front of one of these services, returns a [validation-error](https://signatureapi.com/docs/v1/errors/validation-error). The downloaded file must also fit the [document limits](https://signatureapi.com/docs/api/resources/documents/object#limits): at most 10 MB and 100 pages.

Want support for another source? [Contact support](mailto:support@signatureapi.com).
