Maqetin gives coding agents an email API to build with.

Let Claude Code, Codex, Cursor and your own coding agents install Maqetin, track your events and send transactional email with the JavaScript SDK and the send API.

Install

npm install @maqetin/sdk-js

Prompt your agent

Read https://maqetin.com/llms.txt and the developer guide at https://maqetin.com/developers, then add Maqetin to this app: identify users on sign-in and track the events that matter.

Your agent reads /llms.txt and the developer guide; the prompt above points it at both.

What your agent can use.

Released tools work today. Planned ones are on the way; this page will say when each one ships.

JavaScript SDK
One npm package for the browser and for Node. identify() on sign-in, track() for events, and a server entry that sends email with a secret key.
Send API
One REST endpoint sends a transactional email. An Idempotency-Key makes retries safe, so an agent can wire it into a webhook without double sends.
Scoped API keys
Publishable keys can only send events; secret keys stay on the server and are scoped to what each service needs.
Event names
Suggested object.action names for fintech, ecommerce and SaaS, so an agent can map your app’s events without guessing.
llms.txt
A plain summary of Maqetin and its pages at /llms.txt, so assistants know what works today and what is planned.
MCP server Planned
Connect your agent to Maqetin over MCP to work with contacts and events from any client.
CLI Planned
Send events, look up contacts and test transactional sends from your terminal.
OpenAPI spec Planned
A machine-readable description of the REST API that agents and code generators can load.
Agent skills Planned
Small modules that teach Claude Code, Codex, Cursor and other coding agents how to integrate Maqetin.

For other languages and mobile, see SDKs. To let an AI agent send email, build journeys and read results itself, see Email API for AI agents.

What it looks like in practice.

Ask in plain words. Each example uses only tools that are released today.

Install Maqetin

Add Maqetin to my Next.js app

Detected Next.js. I installed @maqetin/sdk-js, put your publishable key in NEXT_PUBLIC_MAQETIN_KEY, called identify() after sign-in with your user id and plan, and reset() on sign-out. Open a profile in Maqetin to watch the first events arrive.

  • JavaScript SDK
  • Publishable key

Track the events that matter

Track KYC and the first transfer

I added track() calls for kyc.started, kyc.completed and transfer.completed where your onboarding code already handles those steps, with tier, amount and currency as properties. The names follow Maqetin’s object.action convention.

  • Event names
  • JavaScript SDK

Send transactional email

Send a receipt when a payment succeeds

Your payment webhook now calls messages.send from the server SDK with your secret key, the receipt template and the amount. The payment id is the idempotency key, so a retried webhook does not send the receipt twice.

  • Send API
  • Server SDK

Map your current events

Map the events we send to our analytics tool onto Maqetin

I listed every event your app sends today and matched each one to Maqetin’s suggested names, kept the ones with no match as custom events, and added track() beside your existing calls so both tools receive them.

  • Event names
  • JavaScript SDK

Keep keys where they belong

Check that no secret key can reach the browser

Your web bundle only uses the publishable key, which can send events and nothing else. The secret key is read from MAQETIN_SECRET_KEY on the server, and the server SDK refuses to run in a web page, so it cannot end up there.

  • Scoped API keys

Build event-triggered email with Maqetin and your favorite agent.