Skip to content
Proud to collaborate with Microsoft for Startups

docusign.send-envelope ​

Send a drafted DocuSign envelope to its recipients

Send a drafted envelope. Already-sent envelopes surface DocuSign's refusal.

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—Drafted envelope id to send

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—Drafted envelope id to send
envelope_statusstringNo——
sent_atstringNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_stepjsonNo——
failed_layerintegerNo——
failed_at_statestringNo——
errorstringNo——
error_typestringNo——
failed_atstringNo——
retryablebooleanNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—executeSending the envelope
completedNoYesYes—Envelope sent
failedNoYesNo—Envelope send failed

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

Outcomes ​

OutcomeTypeDescriptionState Data Keys
sentSUCCESSThe envelope was sentenvelope_status, sent_at
failedFAILUREEnvelope send 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.send-envelope",
  "initial_data": {
    "organization_uuid": "value",
    "connection_uuid": "value",
    "envelope_ref": "value"
  }
}