Snow goosesendletter

How to Send a Letter With an API in Canada

Send the sender, recipient and letter text to the sendletter API with your key. It prints, folds, stamps and mails the letter with Canada Post, usually within one business day. Try it first with a test key, which mails and bills nothing. A one-page letter costs $2.48 all in at first and as low as $1.69 at volume.

1. Try it with a test key

Create a test key on your account's Developers page (no card needed), then send a request. A test key validates everything and prices the letter, but never prints, mails or bills.

Send an Idempotency-Key with every create request. It makes a retry safe: the same key and request returns the original response instead of mailing a second letter.

  1. Endpoint. POST https://sendletter.app/api/v1/letters with your key in an Authorization: Bearer header.
  2. Mode. Use draft mode to send structured text, formatted for your own HTML, or upload for a PDF or Word file.
  3. Addresses. The recipient must be a Canadian address. The return address can be anywhere.
  4. Options. Letter size (a folded #10 window envelope by default, or a flat 9×12 or 10×15 mailer), black and white or colour, and one or two sides.

The full request, with every field, is in the API reference. There is also an OpenAPI file and a Postman collection linked from it.

2. Read what comes back

The response is the letter: its id, its status, the number of pages, envelopes and stamps it needs, the amount in cents, and the price line by line (mailing fee, envelope, printing, postage). If a postal code belongs to a different province than the one written, the response includes a warning rather than refusing the letter.

3. Follow its status, or cancel it

StatusMeaning
queuedAccepted, waiting to be printed. It can still be cancelled.
printedPrinted and being stamped. It can no longer be cancelled.
mailedHanded to Canada Post.
cancelledCancelled before printing; its billing is voided or refunded.

Subscribe to a webhook for letter.mailed instead of polling: events are signed, and failed deliveries are retried over about a day and a half. Ordinary Lettermail has no delivery tracking, so mailed is the last status. For a delivery you must prove, use Canada Post Registered Mail yourself; see registered versus regular mail.

4. Send many at once

A batch endpoint takes up to 100 letters in one request, and a batch counts as one request against the rate limit of 120 a minute per key. Re-sending the same batch with the same key creates only the letters not created the first time. 5,000 letters is 50 requests.

5. What it costs

Your mailing number in 30 days1 page, black and white, #10, all in
1st$2.48
10th$2.09
50th$1.81
100th and after$1.69

Postage is a Canada Post stamp at $1.24, passed through at cost; only the mailing fee falls with volume. Your first live letter is charged when you send it, and after that usage is invoiced once a month. There is no subscription. The rate table and a calculator cover other page counts and envelopes.

Go live

  1. Add a card on your profile and create a live key.
  2. Set a daily spending limit (it starts at $500 a day) so a bug cannot run up a bill.
  3. Keep your idempotency key tied to your own record, such as an invoice number, so a crash can recover. See idempotency for physical mail.

Sources

Send a letter without leaving your desk

Write or upload it, add the addresses, and we print and mail it via Canada Post. From $3.49, printing and tax included.

Send a letter