# AI onboarding

> Let coding assistants and agents work with Sendtern safely.

Copy a setup prompt for Codex, Claude Code or OpenCode. Paste it into an agent that has access to your repository. The agent can implement the integration and use the Playground to test it.

## Give your agent the docs

| File | Contains |
| --- | --- |
| [/setup.md](https://sendtern.com/setup.md) | Repository integration, test capture and migration |
| [/llms.txt](https://sendtern.com/llms.txt) | A concise index of the setup and API resources |
| [/docs/llms.txt](https://sendtern.com/docs/llms.txt) | A Markdown article index grouped by topic |
| [/llms-full.txt](https://sendtern.com/llms-full.txt) | A bundle of core guides and reference links |

## Rules for agents

1. Use a **Sending only** key. Never give an agent Full access.
2. Read the key from `SENDTERN_API_KEY`. Never write it into source files.
3. Always send an `Idempotency-Key` header so retries don't duplicate email.
4. Ask the workspace operator to check delivery status in the dashboard. The sending key only queues mail.
5. On `429`, wait for the seconds in `Retry-After` before retrying.

## Check the integration

Use POST /test/emails first, then inspect the capture in Email Playground. Switch to production once the sender domain is verified and the recipient has been approved.
