First-party app
Docusign

DocuSign

Send envelopes for signature with Docusign eSignature, track their status, download signed documents, and manage recipients, templates and account users.

stable Documents & FilesLegal & ComplianceProductivity

About

DocuSign ships in the w6w first-party pack. It declares 16 actions, 2 health checks, and the host runs its code in a sandbox that never sees the credential.

App id
io.w6w.docusign
Version
0.1.2
Author
w6w
Licence
MIT
Categories
Documents & Files · Legal & Compliance · Productivity

Overview

Docusign eSignature is how a document gets signed — send it, track who has opened or signed it, read back what a recipient filled in, and download the finished PDF — and this app covers that lifecycle over Docusign’s own REST API.

It creates envelopes from an inline document or a saved template, sends them for signature, lists and reads envelope and recipient status, retrieves submitted form data, and downloads signed documents. Templates and account users round out the coverage needed to build a request without guessing recipient roles. Both Docusign’s production and developer-sandbox environments are supported, so a workflow can be built and tested against a sandbox account before pointing it at production.

Good for sending contracts, agreements or consent forms for signature from a workflow trigger, tracking signing status without polling manually, pulling completed documents into storage automatically, or embedding a signing session inside another application.

Build with DocuSign

Three routes to the same 16 actions. The Workflow tab is generated from DocuSign's own manifest and carries its real ids, so it is copy-pasteable; the Code and CLI examples are the same call for any action on any app, so every app-specific value in them is a blank you fill in.

Create Envelope

envelope-create

Create an envelope from inline documents and recipients, as a draft or sent immediately for signature.

Create Envelope from Template

envelope-create-from-template

Create an envelope from a Docusign template, filling its roles with real recipients, as a draft or sent immediately.

Download Envelope Document

envelope-document-download

Download one document, the combined PDF, the certificate of completion or a ZIP archive from an envelope, base64-encoded.

List Envelope Documents

envelope-document-list

List the documents in an envelope, with the document IDs needed to download them.

Get Envelope Form Data

envelope-form-data-get

Read the values recipients entered into an envelope's fields (tabs), grouped per recipient.

Get Envelope

envelope-get

Fetch one envelope, including its current status.

List Envelopes

envelope-list

Search envelopes by date range, status, folder or free text. Docusign requires a From date unless you pass explicit envelope IDs.

Add Envelope Recipients

envelope-recipient-add

Add one or more recipients to an existing envelope.

List Envelope Recipients

envelope-recipient-list

List an envelope's recipients and each one's signing status.

Send Envelope

envelope-send

Send a draft envelope for signature by moving it to the `sent` status, optionally re-notifying recipients.

Get Envelope Statuses

envelope-status-list

Fetch the status of many envelopes in one call. Preferred over polling each envelope separately — Docusign rate-limits per-envelope status polling.

Void Envelope

envelope-void

Cancel an in-flight envelope, recording a reason shown to its recipients.

Create Recipient View (Embedded Signing URL)

recipient-view-create

Mint a single-use, five-minute embedded signing URL for a captive recipient of a sent envelope.

Get Template

template-get

Fetch one template, including its roles and documents.

List Templates

template-list

List the account's envelope templates, with their IDs and roles.

List Account Users

user-list

List the users on the Docusign account, filtered by email, name, status or group.

A workflow step names the app and the action, and the editor fills in the connection when you pick one. This is the Step shape from the workflow spec, carrying DocuSign's real ids.

{
  "manifestVersion": "2",
  "name": "docusign-example",
  "steps": [
    {
      "id": "envelope-create",
      "uses": {
        "app": "io.w6w.docusign",
        "action": "envelope-create",
        "connection": "conn_YOUR_CONNECTION_ID"
      },
      "with": {
        "emailSubject": "<emailSubject>",
        "documents": "<documents>",
        "recipients": "<recipients>"
      }
    }
  ]
}

Here are some of the things you can do

  • Create Envelope

    perform
    envelope-create
  • Create Envelope from Template

    perform
    envelope-create-from-template
  • Download Envelope Document

    read
    envelope-document-download
  • List Envelope Documents

    read
    envelope-document-list
  • Get Envelope Form Data

    read
    envelope-form-data-get

+11 more actions available

Every app-specific value here is a blank you have to fill in. An app action is reached through the connection that authenticates it, so the address is a connection id, not the app id — and connections belong to your account, so a public page cannot know yours. Create one for DocuSign, then fill in the three blanks: conn_YOUR_CONNECTION_ID, the action key, and the parameters that action declares. The call itself is real — the shape is transcribed from the studio's own snippet builder, which prints the same kind of blanks — but nothing in it is specific to DocuSign. The Workflow tab is where this app's real ids are.

Install
npm install @w6w/sdk
yarn add @w6w/sdk
pnpm add @w6w/sdk
deno add npm:@w6w/sdk
Code
import { W6wClient, isActionRun } from "@w6w/sdk";

// Reads W6W_BASE_URL and W6W_TOKEN from the environment when omitted.
const client = new W6wClient();

const envelope = await client.run({
  urn: "conn_YOUR_CONNECTION_ID",
  action: "envelope-send",
  payload: {
    envelopeId: "<value>",
    // resendEnvelope: "<value>",
  },
});

if (isActionRun(envelope)) console.log(envelope.value);
Install the CLI
npm install -g @w6w/cli
CLI
w6w run conn_YOUR_CONNECTION_ID --action envelope-send --payload '{"envelopeId":"<value>"}'

Give an AI agent DocuSign — without giving it DocuSign's credentials. One MCP endpoint exposes every app, function and workflow the caller is entitled to, as tools it can discover and run. Access is granted per team while we onboard.

One tool call
{
  "name": "w6w_invoke",
  "arguments": {
    "ref": "app:io.w6w.docusign#envelope-create",
    "input": {
      "emailSubject": "<emailSubject>",
      "documents": "<documents>",
      "recipients": "<recipients>"
    }
  }
}

Every tool names its target with a single ref. The app: form above doesn't name a connection at all — the host resolves which of the caller's DocuSign connections to sign with, and refuses rather than guesses when the answer is ambiguous.

What the agent gets

Credentials it can't read

The token is attached host-side, at the moment of the call. It is never a tool argument, never in the model's context, and never in a transcript — so a prompt injection has nothing to exfiltrate.

A tool surface scoped to the caller

Tools are derived per end user from what that person has actually connected and is entitled to — not one shared bot identity carrying the union of everyone's access.

A durable workflow in one call

Multi-step work runs on the workflow engine and returns a run handle the agent can poll — retries, branching and state survive the conversation that started them.

Health-aware discovery

DocuSign's declared health checks are on the surface too, so an agent can tell "the vendor is down" from "your credential expired" before it burns a retry on either.

The MCP surface is part of the hosted platform. DocuSign itself is MIT, and the runtime that executes it is source-available (FSL).

Request MCP access

Health checks

DocuSign declares its own checks, so its health is a property of the app rather than something the host guesses at.

service

Docusign platform status

Atlassian Statuspage for status.docusign.com, narrowed to the eSignature component group and reported per region. Unauthenticated and unsigned.

quota

API rate-limit headroom

Reads Docusign's X-RateLimit-* and X-BurstLimit-* response headers from a lightweight account read. Hourly allowance is account-wide across every integration.