Skip to content
Proud to collaborate with Microsoft for Startups

docusign.download-documents ​

Stream a DocuSign envelope artifact (combined PDF or certificate of completion) into a presigned upload URL — bytes never enter workflow state

Stream an envelope's combined PDF or certificate into a presigned PUT URL.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-docusign
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—Authenticated organization UUID injected by the workflow boundary
connection_uuiduuidYes—Organization-scoped DocuSign CloudConnection UUID
workflow_run_idstringNo—Engine-stamped parent DAG run id
envelope_refstringYes——
artifactstringYes—combined (all documents, one PDF) or certificate (of completion)
upload_urlstringYes—HTTPS presigned PUT destination (vaulted — never persisted in plain)
content_typestringNo—Must match what the presign was issued for; default application/pdf

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—Authenticated organization UUID injected by the workflow boundary
connection_uuiduuidYes—Organization-scoped DocuSign CloudConnection UUID
workflow_run_idstringNo—Engine-stamped parent DAG run id
envelope_refstringYes——
artifactstringYes—combined (all documents, one PDF) or certificate (of completion)
upload_urlstringYes—HTTPS presigned PUT destination (vaulted — never persisted in plain)
content_typestringNo—Must match what the presign was issued for; default application/pdf
bytes_writtenintegerNo——
downloaded_atstringNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_stepjsonNo——
failed_layerintegerNo——
failed_at_statestringNo——
errorstringNo——
error_typestringNo——
failed_atstringNo——
retryablebooleanNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—executeStreaming the artifact to its destination
completedNoYesYes—Artifact delivered
failedNoYesNo—Artifact download failed

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

Outcomes ​

OutcomeTypeDescriptionState Data Keys
deliveredSUCCESSThe artifact reached its destinationbytes_written, artifact
failedFAILUREArtifact download failedfailure_reason, failure_type, retryable

Business Errors ​

CodeMessage Template
DOCUSIGN_ORGANIZATION_CONTEXT_INVALIDAuthenticated organization context is missing or does not match the workflow input
DOCUSIGN_CONNECTION_NOT_FOUNDDocuSign connection {connection_uuid} was not found in the authenticated organization
DOCUSIGN_CONNECTION_WRONG_PROVIDERConnection {connection_uuid} is not a DocuSign connection
DOCUSIGN_CONNECTION_SERVICE_UNAVAILABLEThe shared cloud connection service is unavailable
DOCUSIGN_PROVIDER_CAPABILITY_MISSINGThe installed DocuSign provider does not expose the required API operation
DOCUSIGN_AUTHENTICATION_FAILEDDocuSign refused the request:
DOCUSIGN_PROVIDER_REQUEST_FAILEDThe DocuSign API request failed:
DOCUSIGN_RESPONSE_SHAPE_INVALIDThe DocuSign API returned an unexpected shape:
DOCUSIGN_PAGINATION_INVALIDpage must be >= 1 and limit between 1 and
DOCUSIGN_ENVELOPE_NOT_FOUNDNo envelope {envelope_ref} is visible in this DocuSign account
DOCUSIGN_DOCUMENT_TOO_LARGEThe document exceeds the {max_bytes}-byte envelope cap
DOCUSIGN_DOCUMENT_FETCH_FAILEDCould not fetch the document from its source URL:
DOCUSIGN_UPLOAD_FAILEDThe presigned destination refused the document:
DOCUSIGN_ENVELOPE_STATE_INVALIDDocuSign refused the envelope operation:

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "docusign.download-documents",
  "initial_data": {
    "organization_uuid": "value",
    "connection_uuid": "value",
    "envelope_ref": "value",
    "artifact": "value"
  }
}