Volver al catálogo

DocuPost MCP

docupost_mcp

Price, send, track and cancel physical letters and postcards through DocuPost's hosted MCP server.

Acciones
7
Triggers
0
Autenticación
—
OAuth gestionado
No
Información técnica: el detalle de parámetros, schemas y triggers de esta página está pensado para equipos de integración. Si solo necesitas saber si tu herramienta favorita está disponible, basta con ver la lista de acciones.

Acciones disponibles (7)

Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.

Cancel mailingDOCUPOST_MCP_CANCEL_MAILINGAcción

Cancels 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.

Parámetros de entrada

  • idstringObligatorio

    The ID from a previous result, e.g. "letter_01JD4Q8Z...", "postcard_...", "check_...".

Parámetros de salida

Sin parámetros.

Get accountDOCUPOST_MCP_GET_ACCOUNTAcción

Returns the DocuPost account's current balance in USD.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

Sin parámetros.

Get mailingDOCUPOST_MCP_GET_MAILINGAcción

Returns 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_).

Parámetros de entrada

  • idstringObligatorio

    The ID from a previous result, e.g. "letter_01JD4Q8Z...", "postcard_...", "check_...".

Parámetros de salida

Sin parámetros.

List lettersDOCUPOST_MCP_LIST_LETTERSAcción

Lists 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.

Parámetros de entrada

  • limitinteger

    Default 25.

  • cursorstring

    next_cursor from the previous page.

  • created_afterstring

    ISO 8601 date-time. Default: 30 days ago. Earliest 2024-04-27.

Parámetros de salida

Sin parámetros.

Quote priceDOCUPOST_MCP_QUOTE_PRICEAcción

Prices 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.

Parámetros de entrada

  • sizestringenum

    Postcards. Default 4x6.

    4x66x9
  • typestringObligatorioenum
    letterpostcardcheck
  • colorboolean

    Letters. Default false. FedEx Overnight is always color.

  • pagesinteger

    Letters: required. Pages in the document.

  • countrystring

    Letters and postcards: recipient country, 2-letter ISO code. Default US.

  • quantityinteger

    How many pieces to price. Default 1.

  • mail_classstringenum

    Letters: usps_first_class, usps_standard, usps_priority, usps_priority_express, fedex_overnight. Checks: usps_first_class, usps_first_class_tracked, usps_priority, fedex_overnight. Default usps_first_class.

    usps_first_classusps_standardusps_priorityusps_priority_expressfedex_overnightusps_first_class_tracked
  • double_sidedboolean

    Letters. Default true.

  • extra_servicestringenum

    Letters, usps_first_class only.

    certifiedcertified_return_receipt
  • return_envelopestringenum

    Letters. Default none.

    nonestandardprepaid
  • attachment_pagesinteger

    Checks: pages in the attached PDF, if any.

Parámetros de salida

Sin parámetros.

Send letterDOCUPOST_MCP_SEND_LETTERAcción

Mails 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.

Parámetros de entrada

  • toobjectObligatorio

    Recipient.

  • fromobjectObligatorio

    Sender and return address (US). No company.

  • colorboolean

    Default false.

  • documentobjectObligatorio

    Exactly one of "html" or "url".

  • mail_classstringenum

    Default usps_first_class. fedex_overnight: US only.

    usps_first_classusps_standardusps_priorityusps_priority_expressfedex_overnight
  • descriptionstring

    Private note shown in the dashboard, never printed.

  • double_sidedboolean

    Default true.

  • extra_servicestringenum

    Certified mail. usps_first_class only.

    certifiedcertified_return_receipt
  • idempotency_keystring

    Optional. Without it, an identical request made within 10 minutes is treated as a retry and returns the first piece instead of mailing another. A new unique value mails an identical second copy.

  • return_envelopestringenum

    Default none.

    nonestandardprepaid
  • envelope_logo_urlstring

    Logo image on the envelope (DocuPost Premium).

  • custom_envelope_idstring

    Only if the user gives you one; DocuPost provides these.

Parámetros de salida

Sin parámetros.

Send postcardDOCUPOST_MCP_SEND_POSTCARDAcción

Mails 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.

Parámetros de entrada

  • toobjectObligatorio

    Recipient.

  • fromobjectObligatorio

    Sender (US). No company.

  • sizestringenum

    Default 4x6.

    4x66x9
  • descriptionstring

    Private note shown in the dashboard, never printed.

  • back_image_urlstringObligatorio
  • front_image_urlstringObligatorio
  • idempotency_keystring

    Optional. Without it, an identical request made within 10 minutes is treated as a retry and returns the first piece instead of mailing another. A new unique value mails an identical second copy.

Parámetros de salida

Sin parámetros.