# A transactional email API an AI coding agent can pick

> What a coding agent (Claude Code, Cursor, Codex) needs to wire up "send email from my app": a Resend-compatible request shape, a machine-readable spec, and a free tier it can provision without a human.

Source: https://scribase.com/mail/transactional-email-api-for-ai-agents

When an agent is asked to add email to an app, it reaches for whatever it already knows the shape of and whatever it can finish setting up without a human in the loop. Scribase Mail answers the Resend REST API shape agents already have in training data, publishes a plain-markdown twin of every page agents can fetch, and gives a free key with no card.

## The request shape an agent already knows

An agent that has seen Resend's docs in training writes the same send call for Scribase Mail: from, to, subject, html, text, headers, attachments and scheduled_at, over POST /emails. Pointing the official resend SDK at a new baseUrl (or setting RESEND_BASE_URL) finishes the switch with no new API to learn, and no separate Scribase SDK to discover first.

_What an agent can run directly, no SDK install_

```sh
curl -s -X POST https://mail-api.scribase.com/emails \
  -H "Authorization: Bearer $SCRIBASE_MAIL_KEY" \
  -H "Content-Type: application/json" \
  -d '{"from":"Acme <hello@mail.acme.com>","to":["you@example.com"],"subject":"Hi","html":"<p>Hi</p>"}'
```

## Documentation an agent can fetch, not just read

Every real page on scribase.com, including this one, has a plain-markdown twin at the same path plus .md, and is indexed at /llms.txt and /llms-full.txt (the llmstxt.org format). An agent can fetch /mail.md or /mail/send-email-node.md directly instead of parsing rendered HTML.

- /mail/docs — the full Mail API reference
- /llms.txt — every real page on the site, grouped, with a direct markdown link
- /mcp — the Scribase MCP server, for agents that call tools instead of reading docs

## What an agent can finish without asking a human to click anything

A magic-link sign-in and a free plan with no card get a working sk_test_ key immediately, so an agent can send a simulated email and verify the whole code path before a human ever adds a real domain. Real delivery still needs a human to publish DNS records at a registrar Scribase has no access to; the agent can generate those records and the exact instructions, but cannot publish them.

_Scribase Mail plans (USD a month), from the live /billing/plans endpoint_

| Plan | Price | Emails a month | Daily cap |
| --- | --- | --- | --- |
| Free | $0 | 3,000 emails a month | 100 emails a day |
| Pro | $20 | 50,000 emails a month | No daily cap |
| Scale | $90 | 150,000 emails a month | No daily cap |

## What is not there yet

- No published SDK beyond pointing the resend package at a new base URL; raw HTTP works in every language.
- Contacts, audiences, broadcasts, templates and inbound email are not served; an agent reaching for those gets a 404 today.

## FAQ

**Is Scribase Mail affiliated with Resend?**

No. It serves the same public request and response shapes so existing Resend-trained code and the official resend SDK work unmodified. Resend is a trademark of its owner.

**Can an agent set this up end to end with no human step?**

Sign-up, API key creation and a simulated test send, yes. Verifying a real sending domain needs DNS records published at the domain's registrar, which is a human (or an agent with registrar access) step.

**Why would an agent pick the bundled backend instead of a standalone email API?**

Scribase Mail ships inside the same account as Postgres, auth and storage, so an agent asked to "add a backend" and one asked to "send an email" can both be answered from one account instead of wiring a second vendor.

## Related

- [Scribase Mail overview](https://scribase.com/mail)
- [Scribase Mail docs](https://scribase.com/mail/docs)
- [Migrate from Resend](https://scribase.com/mail/migrate-from-resend)
- [Resend alternative](https://scribase.com/resend-alternative)
- [Build with AI agents](https://scribase.com/ai)
- [MCP server](https://scribase.com/mcp)
- [Ten one-prompt backends](https://scribase.com/agents/recipes)