Actions

Call the deleteDocument MCP tool

Permanently delete a document. This cannot be undone, there is no restore. To take a public page offline WITHOUT destroying the document, use updateDocument unpublish:true instead. If the document is currently public, its live /p/ page goes dead the instant this is confirmed, breaking any link already shared outside Reachium. Refuses a document still referenced as a campaign's lead-magnet resource (any campaign whose trigger_config points document_id at it) so a live funnel can never end up DMing a dead link: delete or repoint those campaigns first, then retry. Also refuses a document already delivered to any lead as a personalized link (reason document_in_use): that delivery history cannot be repointed, so it is a permanent block, not a fixable one. Two-step: the FIRST call (no confirm_token) returns a preview naming the document and its public/private state and deletes NOTHING; call again with the same document_id plus confirm_token to execute.

Called through the Actions bridge: the response is that tool's own result, wrapped as { data: <tool result> } under HTTP 200. Billing, daily-cap, and confirm-step outcomes are embedded INSIDE data, never remapped to an HTTP status (see the templated /api/v1/actions/{toolName} operation above for the full protocol, and x-mcp-actions for this tool's machine-readable scope/cap/confirm_behavior fields). Authentication, request-shape, and optional idempotency-protocol failures still use their documented non-200 statuses.

post/api/v1/actions/deleteDocument

Request

  • Base URL: https://app.reachium.io
  • URL: https://app.reachium.io/api/v1/actions/deleteDocument
  • Auth: HTTP bearer

Headers

Idempotency-Keystring

Optional caller-generated key (8-200 characters: letters, digits, dot, underscore, colon, or hyphen). A final tool result is replayed for the same key and body. An ambiguous result remains 409 under that key; reconcile external state before using a new key. Reuse with a different body returns 422.

Request body

document_idstring uuid required

The document to delete (from getDocuments or a createDocument result).

confirm_tokenstring

From the preview response. Re-send with the same document_id to execute.

Response

The result of calling this tool.

dataunknown required
errorunknown required

Changes

No recorded changes to this operation across all 1 revision of this API.