Skip to main content
A letter does not have one flat price the way an email does. What it costs depends on how many pages it is, how it is printed and delivered, and where it is going. POST /v1/letters/price returns the exact cost for any combination — without creating a letter.

Price a letter

Send the destination country and either a pageCount or the PDF itself as pdfBase64 — the only difference is who counts the pages. Add the same print and delivery options you plan to send with, so the quote matches the real letter.
You get back a letter_price object. amount and currency are the price you are billed for a letter sent with the same page count and options.

Request fields

Not every delivery class is available for every destination — a successful quote confirms the combination before you commit to it.

Quote first, then send

Pricing needs only letters:read, so a read-only key — or an agent in a planning step — can quote a letter before anything is created. Physical mail cannot be unsent, so quote first and send only when the projected cost is inside whatever ceiling you enforce for the workload:
TypeScript
Dairo enforces a ceiling of its own: letters count against your account’s send budget, with each page counting as one unit, and a create that would breach the budget is rejected before anything is printed.

How letters bill

Letters are metered separately from email and billed per letter at the letter’s own priced amount — each letter costs what its pages, options, and destination add up to, which is the same calculation the price endpoint runs. A letter that fails validation or production before the print handoff is not billed. For how metering and billing work across the platform, see Plans & pricing.

Next steps