Capycom
Log inSign up
← All guides

Practical guide

Capycom API: Automate Mailing Paper Letters from Make, n8n or Your Own Script

How to trigger a real paper letter in Canada straight from a script, using the Capycom API, an idempotency key, Make or n8n.

A Paper Letter Triggered by a Script

An invoice marked paid in a billing tool, a form submitted on a website, a customer record updated in a CRM: any of these events can now trigger a real printed letter mailed across Canada, with no one opening a browser or licking a stamp. That is what the Capycom API does, an interface built for developers and automation tools rather than for someone writing a letter by hand on the site.

What the API Can Do

The actions mirror the service itself, just driven by code instead of a click.

  • get a price estimate before tax
  • create the letter from text and an address supplied by the program
  • check its status, paid, picked up, printed, then mailed
  • list the recent letters sent under one key
  • cancel a draft that has not been paid yet

The API key is created in the Capycom client area, under Personal Information then API Access, the exact same account section used to connect an AI assistant through the MCP protocol, a related feature covered in an earlier article.

Why an Idempotency Key

An automation scenario can fail partway through: a dropped connection, a timeout, a platform that retries the same request out of caution. Without protection, that can print and mail the same letter twice. The Capycom API accepts an idempotency key for exactly this reason, a unique identifier attached to the creation request that guarantees a retried request never produces a second mailing.

Worth knowing: just like the MCP connector, the person behind the account is always the one who pays on capycom.ca. No API key and no program ever charges an account on its own.

Who It Is For

Canada Post does not accept HTTP requests, but plenty of business software does. The API is built for anyone setting up a scenario on an automation platform such as n8n or Make, both designed to connect applications to each other through their APIs, or for anyone who would rather write their own script. A merchant can trigger a paper reminder letter after an unpaid invoice, a notary office can mail an automatic appointment confirmation, a nonprofit can follow up with members without retyping every address by hand.

In practice, an n8n or Make scenario starts with a trigger, say a new customer added in a CRM or an invoice still unpaid past its due date. An HTTP node then calls the Capycom API with the letter text and the recipient's address, gets a price before tax back, creates the letter, then waits for confirmation before moving to the next step, sending a confirmation email for instance. None of this requires opening capycom.ca during creation, only the final payment happens there, made by the person responsible for the account.

Open Documentation

The public code behind the integration, originally built for the MCP connector, is published on GitHub. Documentation for the API itself lives on the capycom.ca/ia page, alongside the MCP connector's own documentation.

What stays the same either way: Capycom prints the letter, seals it in an envelope, stamps it and mails it across Canada, whether the request comes from a click on a website or a line of code in a Make scenario.

Sources

Photo credit: Markus Spiske, Pexels photo (free license).

Read also