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
- Create an account at Send Letters Online.
- Open API access and arrange enabled access. Obtain your API key privately.
- 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. - 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
- REST requests, uploads and errors
- MCP setup for Claude and Cursor
- Shared agent tool inputs and confirmation
- A2A messaging
- Security and safe integration
Important spending safeguards
- REST
POST /ordersimmediately creates and pays for an order. It has no quote-confirmation handshake. - MCP and A2A offer
preview_letter_price. Callingcreate_letter_orderwithoutconfirmed: truereturns a quote and creates nothing. - A confirmed agent order also requires
expectedTotalPencematching 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.