MCPHub
目录@giankarsendlettersonline
S

Send Letters Online

Send real physical letters by UK and international post. Check balance, list orders, get live price quotes and place letter orders with a quote-first, human-confirmed spending safeguard.

通讯效率工具httpOther
0星标更新于2026年11月25日

Send Letters Online: API and MCP

Official website: SendLettersOnline.co.uk

Developer documentation and examples for sending physical letters through Send Letters Online.

This repository documents the hosted service. It does not contain the private application, a self-hostable server or an official SDK.

Choose your integration

Integration Endpoint Use it for
REST https://sendlettersonline.co.uk/api/v1 Direct HTTP integration
MCP https://sendlettersonline.co.uk/api/mcp Compatible AI assistants
A2A v0.3 https://sendlettersonline.co.uk/api/a2a Compatible agent platforms

All three use the same enabled customer account, Account Credit and order history. Adding credit does not itself enable API access.

Get started safely

  1. Create an account at Send Letters Online.
  2. Open API access and arrange enabled access. Obtain your API key privately.
  3. Supply the key using your shell’s secure environment/secret facility as SLO_API_KEY. Never put it in a repository, screenshot, chat or issue.
  4. Try the read-only balance request:
curl --fail-with-body --silent --show-error \
  https://sendlettersonline.co.uk/api/v1/balance \
  -H "Authorization: Bearer ${SLO_API_KEY}"

The response has balanceCents (integer pence) and currency: "GBP".

Alternatively, with Node.js 20 or later:

node examples/read-only.mjs balance
node examples/read-only.mjs orders
node examples/read-only.mjs order YOUR_ORDER_ID
node examples/read-only.mjs a2a-balance

The executable examples only read data. They never place an order.

Documentation

Important spending safeguards

  • REST POST /orders immediately creates and pays for an order. It has no quote-confirmation handshake.
  • MCP and A2A offer preview_letter_price. Calling create_letter_order without confirmed: true returns a quote and creates nothing.
  • A confirmed agent order also requires expectedTotalPence matching the current quote. Your client must obtain human approval for that specific letter, address and total.
  • API operations are live. Do not assume a sandbox or test-mode credential.
  • Do not automatically retry an uncertain order-creation request. Check order history first to avoid duplicate letters and charges.

UK services include Second Class, First Class, Signed For, Tracked and Special Delivery options. Availability depends on destination and current service rules. Postal aims are not unconditional delivery guarantees.

Useful links

Documentation checked against the implementation on 24 November 2026. For pricing, request a current agent quote rather than hardcoding totals.