Use the Docusign CLI from KosmoKrator to call Docusign tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.
Docusign can be configured headlessly with `kosmokrator integrations:configure docusign`.
# Install KosmoKrator first if it is not available on PATH.curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash# Configure and verify this integration.kosmokrator integrations:configure docusign --set access_token="$DOCUSIGN_ACCESS_TOKEN" --set account_id="$DOCUSIGN_ACCOUNT_ID" --set base_path="$DOCUSIGN_BASE_PATH" --enable --read allow --write ask --jsonkosmokrator integrations:doctor docusign --jsonkosmokrator integrations:status --json
Credentials
Authentication type: Manual OAuth tokenoauth2_manual_token. Configure credentials once, then use the same stored profile from
scripts, coding CLIs, Lua code mode, and the MCP gateway.
Key
Env var
Type
Required
Label
access_token
DOCUSIGN_ACCESS_TOKEN
Secret secret
yes
Access Token
account_id
DOCUSIGN_ACCOUNT_ID
Text text
yes
Account ID
base_path
DOCUSIGN_BASE_PATH
URL url
yes
API Base Path
Call Docusign Headlessly
Use the generic call form when another coding CLI or script needs a stable universal interface.
Every function below can be called headlessly. The generic form is stable across all integrations;
the provider shortcut is shorter but specific to Docusign.
docusign.docusign_list_envelopes
Read read
List envelopes in the DocuSign account. Filter by status (sent, delivered, completed, signed, declined, voided), date range, or search text. Returns envelope summaries with IDs, subjects, statuses, and dates.
Get detailed information about a DocuSign envelope including status, recipients, documents, and signing history. Use this to check if an envelope has been signed or to review its details.
Create a new DocuSign envelope for electronic signature. You can create from a template (pass template_id) or from scratch with inline documents and recipients. Set status to "sent" to send immediately or "created" to save as a draft.
List templates available in the DocuSign account. Templates define reusable envelope structures with pre-configured documents, recipients, and signing tabs. Use a template ID to create envelopes from a template.
Get details for a DocuSign template including its documents, recipient roles, signing tabs, and email settings. Use this to understand a template before creating an envelope from it.
List documents in a DocuSign envelope. Returns document IDs, names, types (content or summary), and page counts. Use document IDs to download individual documents.
Download a document from a DocuSign envelope. Returns the document content as base64-encoded data. Use "combined" as the document_id to download all documents as a single combined PDF.
Get information about the authenticated DocuSign user, including name, email, and associated accounts. Useful for verifying credentials and discovering account IDs.
Use these parameter tables when building CLI payloads without calling integrations:schema first.
docusign.docusign_list_envelopes
List envelopes in the DocuSign account. Filter by status (sent, delivered, completed, signed, declined, voided), date range, or search text. Returns envelope summaries with IDs, subjects, statuses, and dates.
Filter by status: sent, delivered, completed, signed, declined, voided, or "all" (default: all).
from_date
string
no
Start date for filter (YYYY-MM-DD). Defaults to 30 days ago if not specified.
to_date
string
no
End date for filter (YYYY-MM-DD). Defaults to today.
search_text
string
no
Search envelope subjects and recipient names.
count
integer
no
Number of results to return (default: 25, max: 100).
start_position
integer
no
Zero-based index for pagination (default: 0).
order
string
no
Sort direction: "asc" or "desc" (default: "desc").
order_by
string
no
Sort field: "last_modified", "created", or "sent" (default: "last_modified").
docusign.docusign_get_envelope
Get detailed information about a DocuSign envelope including status, recipients, documents, and signing history. Use this to check if an envelope has been signed or to review its details.
Comma-separated list of additional data to include: "recipients", "documents", "extensions", "custom_fields", "tabs".
docusign.docusign_create_envelope
Create a new DocuSign envelope for electronic signature. You can create from a template (pass template_id) or from scratch with inline documents and recipients. Set status to "sent" to send immediately or "created" to save as a draft.
The full envelope definition JSON object. Required fields: documents (or templateId), recipients (signers, cc, etc.), emailSubject, and status ("sent" or "created"). See DocuSign eSignature REST API docs for full schema.
docusign.docusign_list_templates
List templates available in the DocuSign account. Templates define reusable envelope structures with pre-configured documents, recipients, and signing tabs. Use a template ID to create envelopes from a template.
Get details for a DocuSign template including its documents, recipient roles, signing tabs, and email settings. Use this to understand a template before creating an envelope from it.
List documents in a DocuSign envelope. Returns document IDs, names, types (content or summary), and page counts. Use document IDs to download individual documents.
Download a document from a DocuSign envelope. Returns the document content as base64-encoded data. Use "combined" as the document_id to download all documents as a single combined PDF.
The document ID to download. Use "combined" to get all documents as a single PDF.
docusign.docusign_get_current_user
Get information about the authenticated DocuSign user, including name, email, and associated accounts. Useful for verifying credentials and discovering account IDs.
Headless calls still follow the integration read/write permission policy. Configure read/write defaults
with integrations:configure. Add --force only for trusted automation that should bypass that policy.