When defining a document in an envelope, you must provide either a PDF Document or a DOCX template. There are several ways to provide a file to be used as a document in SignatureAPI:

Upload via Dashboard

You can manually upload document or template files to your account’s Library in the Dashboard. Files uploaded to your Library never expire and can be reused across multiple envelopes. This method is ideal if you work with a small set of recurring documents or templates. To upload files to your Library, go to the Library tab in the Dashboard.
Click Upload a file or drag and drop your file, then confirm the upload. Click the Copy URL button to copy the file URL to your clipboard. You can use this URL when defining your document:
// POST /v1/envelopes
{
  "title": "Dummy Agreement",
  "documents": [
    {
      "url": "https://api.signatureapi.com/v1/uploads/upl_7kWstHtxXmje18omrlV6OA#dummy-agreement-v1"
      //...
    }
  ],
  "recipients": [
    //...
  ]
  //...
}

Upload via API

You can programmatically upload document or template files to SignatureAPI using the Create Upload endpoint.
Uploads created via the API are temporary and intended for immediate use. If you plan to reuse a file, consider uploading it to your Library in the Dashboard (see above).
Check the Create Upload endpoint for more details. You can use the Upload URL returned by the API as the url parameter when defining your document:
// POST /v1/envelopes
{
  "title": "Dummy Agreement",
  "documents": [
    {
      "url": "https://api.signatureapi.com/v1/uploads/upl_7kWstHtxXmje18omrlV6OA"
      //...
    }
  ],
  "recipients": [
    //...
  ]
  //...
}

External Store

As an alternative to uploading, you can provide a publicly accessible URL to your file using the url parameter. SignatureAPI will download the document or template from the specified location. Supported sources include: