Skip to content
Proud to collaborate with Microsoft for Startups

docusign.archive-completed-envelope ​

Verify a DocuSign envelope is completed, then stream its signed PDF and certificate of completion into the customer bucket as audit-tracked objects (verify → presign → download)

Archive a completed envelope's signed PDF + certificate into the customer bucket.

Overview ​

PropertyValue
Workflow typeDag
LibraryApp-docusign
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—Authenticated organization UUID injected by the workflow boundary
connection_uuiduuidYes—Organization-scoped DocuSign CloudConnection UUID
storage_connection_uuiduuidYes—Storage CloudConnection the artifacts land in
bucketstringYes——
key_prefixstringNo—Key prefix for the artifacts; default 'esign'
envelope_refstringYes—COMPLETED envelope to archive
workflow_run_idstringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—Authenticated organization UUID injected by the workflow boundary
connection_uuiduuidYes—Organization-scoped DocuSign CloudConnection UUID
storage_connection_uuiduuidYes—Storage CloudConnection the artifacts land in
bucketstringYes——
key_prefixstringNo—Key prefix for the artifacts; default 'esign'
envelope_refstringYes—COMPLETED envelope to archive
workflow_run_idstringNo——
document_keystringNo——
certificate_keystringNo——
archived_bytesintegerNo——
verifyjsonNo——
presign_documentjsonNo——
presign_certificatejsonNo——
download_documentjsonNo——
download_certificatejsonNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_stepjsonNo——
failed_layerintegerNo——
failed_at_statestringNo——
errorstringNo——
error_typestringNo——
failed_atstringNo——
retryablebooleanNo——

DAG Layers ​

#LayerStepsCompensation
1verifydocusign.get-envelope—
2presignstorage.upload.presigned-url, storage.upload.presigned-url—
3downloaddocusign.download-documents, docusign.download-documents—

Execution Flow ​

Sub-workflows ​

Sub-workflowStep name
docusign.get-envelopeverify
storage.upload.presigned-urlpresign_document
docusign.download-documentsdownload_document

Outcomes ​

OutcomeTypeDescriptionState Data Keys
archivedSUCCESSSigned PDF and certificate landed in the customer bucketdocument_key, certificate_key, archived_bytes
failedFAILUREArchive failed (an incomplete envelope fails at the verify layer)failure_reason

API Usage ​

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

{
  "workflow_type": "docusign.archive-completed-envelope",
  "initial_data": {
    "organization_uuid": "value",
    "connection_uuid": "value",
    "storage_connection_uuid": "value",
    "bucket": "value"
  }
}