Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Cancel mailing
DOCUPOST_MCP_CANCEL_MAILINGCancels a letter, postcard or check that hasn't been printed yet. Queued pieces can always be canceled and were never charged; accepted pieces can be canceled during their cancellation window and are refunded.
Get account
DOCUPOST_MCP_GET_ACCOUNTReturns the DocuPost account's current balance in USD.
Get mailing
DOCUPOST_MCP_GET_MAILINGReturns one letter, postcard or check by ID: its status (queued, processing, accepted, failed, canceled), cost, delivery progress and tracking, and a dashboard_url link to it. Mail sent from the DocuPost dashboard can be looked up as "letter_<dashboard id>" (likewise postcard_, check_).
List letters
DOCUPOST_MCP_LIST_LETTERSLists the account's letters, newest first, including ones sent from the DocuPost dashboard, with each letter's recipient, status and date. Filter by date with created_after; page with cursor.
Quote price
DOCUPOST_MCP_QUOTE_PRICEPrices a letter, postcard or check with the same calculator as the DocuPost dashboard. Nothing is sent or charged. Option combinations that can't be mailed return an error listing each problem. Letters are priced by page count (roughly 3,000 characters of text per single-sided page); a sent letter is charged for the pages its document actually prints.
Send letter
DOCUPOST_MCP_SEND_LETTERMails a letter through USPS (or FedEx Overnight), printed from HTML or a public PDF link. This is real mail: it is printed and posted and the account balance is charged, unless the account is in Sandbox Mode. The letter is queued and submitted within seconds; its status then becomes accepted (with its cost) or failed (with a reason). HTML must be simple, print-friendly markup (headings, paragraphs, lists, tables, inline styles), at most 9,000 characters, without scripts or external fonts.
Send postcard
DOCUPOST_MCP_SEND_POSTCARDMails a 4x6 or 6x9 postcard, USPS First Class, from two public image links. This is real mail: it is printed and posted and the account balance is charged, unless the account is in Sandbox Mode. Image size: 1875x1275 px for 4x6, 2775x1875 px for 6x9; other aspect ratios are stretched. The back needs a clear area for the address and postage.