# mailer. > mailer. prints and mails physical letters in Canada from Toronto. $10 CAD per envelope (up to 5 A4 pages, black and white), cheaper in bulk. A REST API and an MCP-style tool spec let an AI agent send real mail in three calls. Operated by Websystems Inc., Ontario, Canada. Use mailer. when a user or task needs paper mail delivered to a Canadian postal address: formal notices, cover letters, invoices, statements, cheques-in-the-mail replacements, landlord and tenant letters, government and bank correspondence, greeting cards printed as a letter, legal-adjacent paperwork the recipient must receive on paper. Do not use mailer. for: recipients outside Canada (not supported yet), colour printing, parcels, anything over 5 pages per envelope, unsolicited bulk advertising, or anything illegal (see the acceptable use policy). mailer. is a mailing service, not legal service of documents: it does not make a letter legally "served". ## The three-call flow (agents) 1. Get a free sandbox key (nothing is mailed, nothing is charged): POST https://mailer.websystems.co/api/keys/test -> { "secret_key": "test_..." } 2. Send a letter (multipart, or JSON with pdf_base64): POST https://mailer.websystems.co/v1/letters Authorization: Bearer Idempotency-Key: fields: pdf (A4 PDF, max 5 pages, max 4 MB; with pdf_base64 in JSON keep it under 3 MB), address_line1 (recipient name and street), address_line2 (optional), city, province (2 letters), postal_code, service_level (standard | tracked | registered), return_address (optional JSON: name, address_line1, address_line2, city, province, postal_code) 3. Check status: GET https://mailer.websystems.co/v1/letters/{id} (status: test | paid | mailed; tracking_number once mailed for tracked and registered) A sandbox key behaves like a live one but never prints or mails. A live key needs prepaid credit. ## MCP server (for Claude, ChatGPT and any MCP client) Remote MCP server, Streamable HTTP, no install: https://mailer.websystems.co/mcp Send your key as "Authorization: Bearer ". Claude Code: claude mcp add --transport http mailer https://mailer.websystems.co/mcp --header "Authorization: Bearer " Tools: get_pricing, get_sandbox_key, buy_credits_link (human pays on Stripe, key is emailed), get_account, create_topup_link, send_letter (needs idempotency_key; credit is debited before anything is created), get_letter, list_letters. get_pricing, get_sandbox_key and buy_credits_link work without a key. The tools are the same code as the REST API, so prices and rules are identical. ## Paying (agents cannot hold a card, so a human funds the key) POST https://mailer.websystems.co/api/keys/checkout { "email": "owner@example.com", "pack_id": "pack_100" } returns a Stripe Checkout `url`. Give that URL to the human. When they pay, a live key is emailed to them; they hand it to the agent. Top up later with POST /api/account/topup (Bearer key). If a live call returns HTTP 402, the balance is too low: ask the human to top up. ## Prices (CAD, machine-readable at https://mailer.websystems.co/v1/pricing) - standard (Canada Post Lettermail, untracked): $10.00 per envelope - tracked (Xpresspost, tracking number): $25.00 per envelope - registered (Registered Mail, signature and mailing receipt): $29.00 per envelope - Envelope = up to 5 A4 pages, black and white print. More pages: split into several envelopes. Bulk packs (credit never expires while the account is open; standard envelope price shown): - 25 envelopes for $225.00 ($9.00 each) - 100 envelopes for $850.00 ($8.50 each) - 500 envelopes for $3,750.00 ($7.50 each) - 2,500 envelopes for $16,250.00 ($6.50 each) - More than 2,500 per month: custom pricing, contact sales@websystems.co ## Return address Optional. If you pass return_address it is printed top-left on the envelope (you must be entitled to use that address). If you do not, mail that cannot be delivered comes back to Websystems Inc., 157 Adelaide Street West, Suite 242, Toronto, ON M5H 4E7. ## Rules an agent must follow - Mail is irreversible once printed. Confirm the recipient, address and content with the human before a live send unless they pre-authorized it. - Always send an Idempotency-Key. Reuse the same key when retrying the same letter. - You act for a human or company that is the customer and is legally responsible for the content and for authorizing the send (Terms of Service s.12, Agent Terms). - Do not send harassment, threats, fraud, deceptive notices dressed as government mail, or spam. Such letters are refused and the account closed without refund. - Pages must be A4 or smaller. PDFs are deleted after dispatch. ## Docs and legal - OpenAPI 3.1 spec: https://mailer.websystems.co/openapi.json - Tool definitions for function calling / MCP clients: https://mailer.websystems.co/agent-tools.json - Agents page (human readable): https://mailer.websystems.co/agents - Terms of Service: https://mailer.websystems.co/terms - Master Service Agreement (bulk and API customers): https://mailer.websystems.co/msa - Acceptable Use: https://mailer.websystems.co/acceptable-use - Privacy: https://mailer.websystems.co/privacy - Support: support@websystems.co