Resources
Deliverables
List the deliverables of a completed envelope and download the signed PDF with the SignatureAPI CLI deliverables commands.
A deliverable is the signed PDF that SignatureAPI generates when an envelope completes, with the audit log by default. The deliverables commands find it and give you its download URL. Each one sends the same request as the matching API operation:
| Command | API operation |
|---|---|
deliverables list | List deliverables |
deliverables get | Retrieve a deliverable |
They act in test mode unless you pass --mode live or use a live API key. See Working with resources for modes and credentials.
Download the signed PDF
Find the deliverable
A deliverable exists once the envelope is completed. Its PDF is ready a little later, when the deliverable is generated. List the envelope’s deliverables:
npx signatureapi deliverables list --envelope eb4cf433-a8af-4161-b37b-7ef57d423e56Each line shows the deliverable ID (del_...) and its status. The PDF is ready when the status is generated.
Get its URL
npx signatureapi deliverables get del_6FF89lKNyTNamOJCJd1tLLThe output shows the status and the URL of the signed PDF.
Download the file
In a script, read the URL from the --json result and download it:
url=$(npx signatureapi deliverables get del_6FF89lKNyTNamOJCJd1tLL --json | jq -r 'select(.type == "result") | .data.url')
curl -sSfo signed.pdf "$url"By default, the URL expires after one hour. Run deliverables get again for a fresh one. Anyone with the URL can download the document until then, so keep it out of shared logs.
To download it as soon as it is ready, wait for deliverable.generated first. Until then, the status is pending or processing and url is null. The deliverable lifecycle explains each status.
Command reference
Generated from the help of the published signatureapi package.
deliverables list
List the deliverables of an envelope, newest first. A deliverable exists once the envelope is completed.
Usagenpx signatureapi deliverables list --envelope <envelope-id> [options]
| Option | Description |
|---|---|
--envelope <envelope-id> | Envelope whose deliverables to list. Required. |
--limit <count> | Deliverables per page, 1 to 20 (default: 20). |
--cursor <cursor> | Cursor of the page to get, from a previous result's next_cursor. |
Global options: --mode, --api-key-var, --credential-store, --json.
# List a completed envelope's deliverables
npx signatureapi deliverables list --envelope 5e5ace5e-...Related: Deliverable
deliverables get
Show a deliverable: its status and the URL of the signed documents.
Usagenpx signatureapi deliverables get <deliverable-id> [options]
| Argument | Description |
|---|---|
<deliverable-id> | ID of the deliverable (del_...), as deliverables list shows it. Required. |
Global options: --mode, --api-key-var, --credential-store, --json.
# Show a deliverable
npx signatureapi deliverables get del_...Related: Deliverable