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
| Property | Value |
|---|---|
| Workflow type | Dag |
| Library | App-docusign |
| Version | 1.0 |
Input Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | Authenticated organization UUID injected by the workflow boundary |
connection_uuid | uuid | Yes | — | Organization-scoped DocuSign CloudConnection UUID |
storage_connection_uuid | uuid | Yes | — | Storage CloudConnection the artifacts land in |
bucket | string | Yes | — | — |
key_prefix | string | No | — | Key prefix for the artifacts; default 'esign' |
envelope_ref | string | Yes | — | COMPLETED envelope to archive |
workflow_run_id | string | No | — | — |
Output Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | Authenticated organization UUID injected by the workflow boundary |
connection_uuid | uuid | Yes | — | Organization-scoped DocuSign CloudConnection UUID |
storage_connection_uuid | uuid | Yes | — | Storage CloudConnection the artifacts land in |
bucket | string | Yes | — | — |
key_prefix | string | No | — | Key prefix for the artifacts; default 'esign' |
envelope_ref | string | Yes | — | COMPLETED envelope to archive |
workflow_run_id | string | No | — | — |
document_key | string | No | — | — |
certificate_key | string | No | — | — |
archived_bytes | integer | No | — | — |
verify | json | No | — | — |
presign_document | json | No | — | — |
presign_certificate | json | No | — | — |
download_document | json | No | — | — |
download_certificate | json | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_step | json | No | — | — |
failed_layer | integer | No | — | — |
failed_at_state | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
failed_at | string | No | — | — |
retryable | boolean | No | — | — |
DAG Layers
| # | Layer | Steps | Compensation |
|---|---|---|---|
| 1 | verify | docusign.get-envelope | — |
| 2 | presign | storage.upload.presigned-url, storage.upload.presigned-url | — |
| 3 | download | docusign.download-documents, docusign.download-documents | — |
Execution Flow
Sub-workflows
| Sub-workflow | Step name |
|---|---|
docusign.get-envelope | verify |
storage.upload.presigned-url | presign_document |
docusign.download-documents | download_document |
Outcomes
| Outcome | Type | Description | State Data Keys |
|---|---|---|---|
archived | SUCCESS | Signed PDF and certificate landed in the customer bucket | document_key, certificate_key, archived_bytes |
failed | FAILURE | Archive 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"
}
}