Skip to Content

resend_document

Resend a sent document, as Resend on its web page does: the latest round is voided with your reason and a new round goes out on the same document to the same people (or with some of them changed: recipients[] by index into the latest round's recipients, as get_document lists them), with the same boxes, the sender's values, routing, expiry length and reminders.

destructivewaits for confirmSends, cancels or emails people. Clients ask you before running it.

What it does

Resend a sent document, as Resend on its web page does: the latest round is voided with your reason and a new round goes out on the same document to the same people (or with some of them changed: recipients[] by index into the latest round's recipients, as get_document lists them), with the same boxes, the sender's values, routing, expiry length and reminders. Everyone on the new round is emailed a fresh link. Allowed for a round that is out, declined or expired (not completed, voided or one the sender signed: 409 not_resendable), for its sender, an owner/admin or someone who can edit the document (else 403). Use remind_envelope to nudge people on the same round instead. Returns { envelope_id } of the new round. Two steps: called WITHOUT confirm: true it does nothing and returns an error saying what it would do (the details are in structuredContent); show that to the user and, once they agree, call again with the same arguments and confirm: true.

Two calls

Called without confirm: true, it does nothing and returns an error that says what would happen. Show that to the user, then call again with the same inputs and confirm: true.

Inputs

NameTypeDescription
document_idrequiredstring
reasonrequiredstringWhy it is sent again; stored on the audit trail.Up to 1000 characters
recipientsobject[]Only the people to change; the others are copied unchanged.Up to 50 items
indexrequiredintegerPosition in the latest round's recipients (0 = first).At least 0
namerequiredstringUp to 256 characters
emailrequiredstringUp to 254 characters
deliverystringSwitch how their link reaches them (absent: kept). "embedded" is never emailed and needs the Business plan or a sandbox; after a downgrade, switch an embedded person to "email" to resend.One of: email, embedded
esign_risk_acknowledgedbooleanThe sender acknowledges the agency may reject an electronic signature on this form (warn-mode hosted forms only).
idempotency_keystringSame key = same resend: a retry finishes or returns the first one instead of sending again.Up to 255 characters
confirmbooleantrue to really do it. Without it nothing happens: you get an error describing what would happen, to show the user.

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": "resend_document",
    "arguments": {
      "document_id": "<document_id>",
      "reason": "<reason>"
    }
  }
}

Input schema

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

{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "document_id": {
      "type": "string"
    },
    "reason": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1000,
      "description": "Why it is sent again; stored on the audit trail."
    },
    "recipients": {
      "type": "array",
      "maxItems": 50,
      "description": "Only the people to change; the others are copied unchanged.",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "index": {
            "type": "integer",
            "minimum": 0,
            "description": "Position in the latest round's recipients (0 = first)."
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "email": {
            "type": "string",
            "maxLength": 254
          },
          "delivery": {
            "type": "string",
            "enum": [
              "email",
              "embedded"
            ],
            "description": "Switch how their link reaches them (absent: kept). \"embedded\" is never emailed and needs the Business plan or a sandbox; after a downgrade, switch an embedded person to \"email\" to resend."
          }
        },
        "required": [
          "index",
          "name",
          "email"
        ]
      }
    },
    "esign_risk_acknowledged": {
      "type": "boolean",
      "description": "The sender acknowledges the agency may reject an electronic signature on this form (warn-mode hosted forms only)."
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Same key = same resend: a retry finishes or returns the first one instead of sending again."
    },
    "confirm": {
      "type": "boolean",
      "description": "true to really do it. Without it nothing happens: you get an error describing what would happen, to show the user."
    }
  },
  "required": [
    "document_id",
    "reason"
  ]
}

On this page