UK letter API Live · UK

A UK letter API that quotes before it posts

Send an address and the pages over REST. We check the address, return the price, print the letter and post it by Royal Mail, and write a signed record. Built for software and AI agents that send letters on someone’s behalf.

Letters from £1.50 ex VAT. Test mode is free and posts nothing.

The REST API

JSON over HTTPS, one key

The base address is https://api.atomside.com/v1. Send your key as Authorization: Bearer as_test_…. Every answer names its dated API version in the Atomside-Version header, and there is an OpenAPI document at /v1/openapi.json. The same operations are MCP tools and CLI commands.

The main operations. The docs list every one.
MethodPathWhat it does
GET/v1/accountTest or live, who letters are sent as, what is left to spend, what the next letter will do
POST/v1/addresses/checkCheck a UK address: how it will print, or close matches
POST/v1/filesUpload a file (PDF, Word, ODT, RTF, text, Markdown, HTML, JPG or PNG, up to 10 MB)
POST/v1/letters/checkEvery page as it will print, the price and a list of checks, each with a fix
POST/v1/quotesQuote a letter: proof, page and sheet count, price, and what sending will do
POST/v1/lettersSend a quote. Needs an Idempotency-Key header
GET/v1/letters/{letter}Status, timeline, approval, money and, once posted, the record
GET/v1/lettersFind letters by recipient, status, date, reference or label
POST/v1/letters/{letter}/cancelCancel a letter that has not gone to print
GET/v1/letters/{letter}/approvalWait for a person to decide, up to 50 seconds a call

The UK detail, handled

Royal Mail classes

First or second class, set per letter. Second is the default. We print at 16:00 on working days and post the same day.

Postcode and address checks

Every quote checks the UK address and returns it as it will print, with what changed, or close matches if it is not found. Nothing is charged for a bad address.

Quote first

The quote returns the price in credits and pounds, the page and sheet count, a proof to open, and whether sending will go ahead, wait for a person or be refused. It lasts 24 hours.

Budgets and approval

Each agent has limits per letter, per day and per month, and an approval mode: a person approves every letter, only letters over a limit, or none.

Signed record

Each posted letter gets a record holding the SHA-256 of the exact file printed, signed and chained. Anyone can check it with our public key.

Test mode

Test keys render the real proof, run every rule and post nothing. Test postcodes rehearse what can go wrong.

Example

Quote a letter

POST /v1/quotes is free. To send, POST /v1/letters with the quote id and an Idempotency-Key header: a retry with the same key returns the same letter and sends nothing new.

A refusal has one shape everywhere: code, a sentence to repeat, retry and what happened to the money.

POST /v1/quotesrequest and response
curl -X POST https://api.atomside.com/v1/quotes \
  -H "Authorization: Bearer $ATOMSIDE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "to": { "name": "Ms A. Sample", "line1": "12 Specimen Road",
            "town": "Exampleton", "postcode": "XX1 1XX" },
    "pages": [{ "text": "Dear Ms Sample, ...", "format": "markdown" }]
  }'

// HTTP 200. Nothing is charged.
{
  "quote": "qt_example000000001",
  "test": true,
  "pages": 1,
  "sheets": 1,
  "class": "second",
  "price": { "credits": 15, "gbp": "1.50" },
  "address": { "match": "found", "prints_as": ["Ms A. Sample", "12 Specimen Road", "Exampleton", "XX1 1XX"] },
  "on_send": "goes_ahead",
  "expires": "2026-11-17T09:30:00.000Z"
}
From the API reference, in test mode. Shortened: the answer also has the checks, page images and posting dates.

Compared

Going direct to a print-and-post API

A print-and-post API prints and posts what you send it, and you hold the account. Atomside adds what you need when software or an agent decides to send: a price first, limits, a person’s approval and a record. And we print and post the letters ourselves.

WhatPrint-and-post API, directAtomside
Supplier accountYou open and hold itNone: one Atomside key
Price before sendingDepends on the supplierEvery letter is quoted first, in credits and pounds
Spending limits for an agentYou build themPer letter, per day and per month, set per agent
A person approvesYou build itBuilt in: every letter, only over the limits, or never
Duplicate sendsDepends on the supplierIdempotency key required on every send
Evidence afterwardsDepends on the supplierA signed record and an evidence bundle you can check

Sending thousands of letters a month and only care about the unit price? A bulk mail provider will be cheaper. Many letter APIs built for agents are built around US mail; Atomside covers the UK only, in pounds, with Royal Mail classes and UK addresses.

Price

From £1.50 a letter, ex VAT

Pay in credits; a credit is 10p. A one-sheet, black and white, second-class letter is 15 credits (£1.50), first class 25 credits (£2.50), each extra sheet 2 credits (20p), up to 5 sheets. Printing and postage are included. Prices exclude VAT. Nothing monthly.

Quote your first test letter

No card. Test mode is free and posts nothing.