# 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.

## What assistants can read

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](https://outboxstack.app/llms.txt) | A short index of the site, with a link to every Markdown page. |
| [/llms-full.txt](https://outboxstack.app/llms-full.txt) | Every docs page in one file. Give this one to a coding assistant. |
| [/openapi.json](https://outboxstack.app/openapi.json) | The REST API, machine-readable: every endpoint, field and error. |
| [/pricing.md](https://outboxstack.app/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](https://outboxstack.app/docs/send-app-email.md) or [/security.md](https://outboxstack.app/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.

## Give your assistant the docs

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.

## A safe key for an agent

An assistant only needs to send. Give it the smallest key that does that.

-   **While it builds,** create a [test key](https://outboxstack.app/docs#test-mode). 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_KEY` in 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.

## Add Outbox Stack to AGENTS.md

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.
```

## Check what it built

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-Key` made 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](https://outboxstack.app/docs#events), and the code checks the signature.
-   A test send shows up on **Email activity** in the dashboard with the right sender, subject and recipient.

## Still stuck

For every endpoint and field, read the [documentation](https://outboxstack.app/docs). If something looks broken, check the [status page](https://outboxstack.app/status). For anything else, email [support@outboxstack.app](mailto:support@outboxstack.app).

---
Source: https://outboxstack.app/docs/ai-agents/
