Skip to Content

set_envelope_recipients

Set who a document goes to, in signing order: each recipient's role label (as the form names it, see suggest_roles), name, email and kind (signer fills and signs, filler fills only, cc gets a copy).

destructiveSends, cancels or emails people. Clients ask you before running it.

What it does

Set who a document goes to, in signing order: each recipient's role label (as the form names it, see suggest_roles), name, email and kind (signer fills and signs, filler fills only, cc gets a copy). Give client_id to fill the name and email from a Clients record (a name or email you also give wins). It replaces the whole list; a recipient keeps their key (and the boxes given to them) when you pass the same key or label, and a recipient you leave out loses their boxes; a recipient who becomes a CC loses their boxes, and a filler their signature boxes (listed in cleared_boxes). The first client_id also becomes the document's client when it has none. Nobody can be marked as the sender here, and the role the person marked as their own ("That's me") stays as it is and can't be named. Nothing is emailed. Returns the document's saved Prepare state (recipients, routing, each box's owner and value, version; the same state the web Prepare page shows; a government ID number in a box shows only its last 3 characters, masked: true, and is sent in full), a box tally, and send: whether it is ready to send (else why not) and the web link to review it. When ready, send it with send_envelope and use_prepare_draft: true.

Inputs

NameTypeDescription
document_idrequiredstringThe document's id (from upload_document, create_from_template or a document list).
recipientsrequiredobject[]1 to 10 items
keystringKeep an existing recipient's key (e.g. "r1"); new ones get one.Up to 64 characters
labelrequiredstringThe role, as the form names it ("Applicant").Up to 120 characters
namestringUp to 200 characters
emailstringFormat: email · Up to 254 characters
kindrequiredstringOne of: signer, filler, cc
party_typestringOne of: applicant, applicant_secondary, director, sponsor, employer, employee, agent, witness, guarantor, guardian, interpreter, other
client_idstringA client from the workspace's Clients: their name and email fill in.
routingstringsequential (in this order, the default) or parallel.One of: sequential, parallel

Call it

Your MCP client builds this request for you. This is what it sends to https://appliflo.com/api/mcp, with the required inputs filled with placeholders.

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "set_envelope_recipients",
    "arguments": {
      "document_id": "<document_id>",
      "recipients": []
    }
  }
}

Input schema

The JSON Schema the server lists for this tool in tools/list.

{
  "type": "object",
  "properties": {
    "document_id": {
      "type": "string",
      "description": "The document's id (from upload_document, create_from_template or a document list)."
    },
    "recipients": {
      "type": "array",
      "minItems": 1,
      "maxItems": 10,
      "items": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "maxLength": 64,
            "description": "Keep an existing recipient's key (e.g. \"r1\"); new ones get one."
          },
          "label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "description": "The role, as the form names it (\"Applicant\")."
          },
          "name": {
            "type": "string",
            "maxLength": 200
          },
          "email": {
            "type": "string",
            "format": "email",
            "maxLength": 254
          },
          "kind": {
            "type": "string",
            "enum": [
              "signer",
              "filler",
              "cc"
            ]
          },
          "party_type": {
            "type": "string",
            "enum": [
              "applicant",
              "applicant_secondary",
              "director",
              "sponsor",
              "employer",
              "employee",
              "agent",
              "witness",
              "guarantor",
              "guardian",
              "interpreter",
              "other"
            ]
          },
          "client_id": {
            "type": "string",
            "description": "A client from the workspace's Clients: their name and email fill in."
          }
        },
        "required": [
          "label",
          "kind"
        ]
      }
    },
    "routing": {
      "type": "string",
      "enum": [
        "sequential",
        "parallel"
      ],
      "description": "sequential (in this order, the default) or parallel."
    }
  },
  "required": [
    "document_id",
    "recipients"
  ]
}

On this page