BUILD WITH AI
Use Outbox Stack with AI assistants.
Coding assistants such as Claude Code, Cursor and Codex can add Outbox Stack to your app. This page lists what they can read, how to give them a key that can't do damage, and what to check before you go live.
Every page of this site has a plain Markdown copy, so an assistant doesn't have to run the site to read it.
| File | What it has |
|---|---|
| /llms.txt | A short index of the site, with a link to every Markdown page. |
| /llms-full.txt | Every docs page in one file. Give this one to a coding assistant. |
| /openapi.json | The REST API, machine-readable: every endpoint, field and error. |
| /pricing.md | Every price in naira and US dollars, with worked totals for a month of sending. |
Any page + .md | The Markdown copy of that page, for example /docs/send-app-email.md or /security.md. |
There is no Outbox Stack MCP server yet. Assistants that can make HTTP requests use the REST API, described in the OpenAPI spec.
Ask your assistant to read llms-full.txt before it writes code, so it uses the real API instead of guessing. For example, paste this into Claude Code, Cursor or Codex:
Read https://outboxstack.app/llms-full.txt. Then send our password reset email through Outbox Stack using the Node.js SDK (@getoutbox/sdk). Read the API key from OUTBOX_API_KEY, send an Idempotency-Key for each email, and show me the code before you change anything else.Swap the SDK for the one your app uses: pip install outboxstack for Python, composer require getoutbox/outbox-php for PHP, composer require getoutbox/outbox-laravel for Laravel, or go get github.com/Outbox-Stack/outbox-go for Go.
An assistant only needs to send. Give it the smallest key that does that.
- While it builds, create a test key. It accepts mail without sending it, so a mistake reaches no one.
- When you go live, create a Sending only key on Developers and lock it to one sender domain. It can't change your workspace or send as your other brands.
- Put the key in
OUTBOX_API_KEYin your environment, not in the code or the chat. If a key ends up somewhere it shouldn't, revoke it on Developers; that takes effect at once.
Assistants read AGENTS.md (or CLAUDE.md) at the root of your repository each time they start. Add this so every session knows how your app sends email:
## Email: Outbox Stack
- Docs as Markdown: https://outboxstack.app/llms-full.txt
- REST API spec: https://outboxstack.app/openapi.json
- Send with POST https://outboxstack.app/v1/messages and the header Authorization: Bearer $OUTBOX_API_KEY.
- Send an Idempotency-Key header for each logical email, so a retry never sends it twice.
- Read the key from OUTBOX_API_KEY. Never commit a key. Use a test key in development.
- Newsletters go through campaigns in the dashboard, not the API.Before you switch to a live key, check these yourself:
- The key comes from the environment, and no key is committed anywhere in the repository.
- Every send has an
Idempotency-Keymade from something stable, such as the order or reset request ID, so a retry doesn't send twice. - Bounces and complaints reach your app through signed webhooks, and the code checks the signature.
- A test send shows up on Email activity in the dashboard with the right sender, subject and recipient.
For every endpoint and field, read the documentation. If something looks broken, check the status page. For anything else, email support@outboxstack.app.