# Email API, webhooks and AI agents

Chapter 7 of 16 · SendBunny product tour · SendBunny Free · 1:12

Video: https://media.sendbunny.co/demo/ch07-v1.mp4
Page: https://sendbunny.co/videos/email-api-webhooks-ai-agents

## In short

Your app sends through SendBunny with an API key: Send mail is the safe default, and the key is shown only once. Every email your app sends appears under Transactional for 90 days. Webhooks tell your app about deliveries, bounces, clicks and unsubscribes, and each one is signed. You can also connect an AI agent like Claude Code or Codex over MCP, choose exactly what it may do, and disconnect it any time.

## Key moments

- 0:03 Create an API key
- 0:14 Choose what the key may do
- 0:25 Every email your app sent
- 0:33 Add a webhook
- 0:48 Connect an AI agent
- 1:01 Key or agent: when to use which

## Transcript

0:03 Building an app? It can send through SendBunny too: password resets, receipts, sign-in links. Open API & agents, press Create key, and give it a name.

0:14 Choose what the key is for. Send mail is the safe default: it sends, and looks up what it sent. Copy the key now, because it's shown only once.

0:25 Every email your app sends shows up under Transactional for ninety days, so you can check exactly what went out, and whether it arrived.

0:33 Want your app to hear what happens next? In Settings, open Webhooks, add your app's address, and pick the events: a delivery, a bounce, a click, an unsubscribe. Each one is signed, so your app knows it really came from you.

0:48 You can also connect an AI agent, like Claude, Claude Code or Codex. Press Connect an agent, pick your app, and follow its steps. You choose exactly what it may do, and you can disconnect it any time.

1:01 Use an API key for code you write, and an agent when you'd rather have an assistant do the work, like checking what went out today.

## Read more

- [Send email API](https://sendbunny.co/docs/send-email-api)
- [Email MCP server](https://sendbunny.co/email-mcp-server)
- [Transactional email for developers](https://sendbunny.co/use-cases/developer-transactional)
