Rby Resend
Create a broadcast
Creates a marketing email to every subscribed contact in one segment, saved as a draft or, with send set to true, sent or scheduled at once.
Description
Pass `segment_id`, `from`, `subject` and `html` or `text`; contact properties can personalize the body. Add `topic_id` to reach only the contacts subscribed to that topic. On the MCP server `create-broadcast` only saves the draft: send it with `send-broadcast`. A draft made without `send` goes out later with `resend broadcasts send <id>` or `POST /broadcasts/:broadcast_id/send`.
create-broadcast.md
Create a broadcast
Creates a marketing email to every subscribed contact in one segment, saved as a draft or, with send set to true, sent or scheduled at once.
Pass segment_id, from, subject and html or text; contact properties
can personalize the body. Add topic_id to reach only the contacts subscribed
to that topic. On the MCP server create-broadcast only saves the draft: send
it with send-broadcast. A draft made without send goes out later with
resend broadcasts send <id> or POST /broadcasts/:broadcast_id/send.
Set up
Use the first option your agent supports.
MCP (official, remote)
Add this server to your agent's MCP settings, then sign in when asked.
{ "mcpServers": { "resend": { "url": "https://mcp.resend.com/mcp" } } }
Call the MCP tool create-broadcast.
Server URL: https://mcp.resend.com/mcp
CLI (official)
Install the command, then confirm it runs.
npm install -g resend-cli
resend --version
Run resend broadcasts create.
Set $RESEND_API_KEY in your environment first (get a key: https://resend.com/api-keys).
API (official)
- Base URL: https://api.resend.com
- Endpoint:
POST /broadcasts - Auth: send the header
Authorization: Bearer $RESEND_API_KEY - Get a key: https://resend.com/api-keys
- Docs: https://resend.com/docs/api-reference/introduction
Before doing anything else, make one read-only call to confirm access.
Rules
- Ask the user before anything that sends messages, costs money, or changes data.
- Never print API keys.
Built from these files in the repository
The layout and the rules come from lib/catalog/render-markdown.ts, the set-up wording from lib/catalog/render-access.ts.