Resend CLI Skill
Triggers: send email, Resend, email delivery, PMC email, broadcast, domain verification, phattmedia.club email
Invocation
cd /root/.openclaw/workspace/skills/resend
npx tsx scripts/resend.ts <command> [options]
All commands accept --json for agent-mode output: { ok, command, result, count }.
Common Workflows
Send an email
npx tsx scripts/resend.ts emails send \
--from noreply@phattmedia.club \
--to recipient@example.com \
--subject "Hello" \
--html "<p>Message body</p>"
List domains
npx tsx scripts/resend.ts domains list
Create and send a broadcast
# Create
npx tsx scripts/resend.ts broadcasts create \
--name "Newsletter #1" \
--from noreply@phattmedia.club \
--subject "This month's update" \
--html "<h1>Hello subscribers</h1>"
# Send (use ID from create output)
npx tsx scripts/resend.ts broadcasts send <id>
All Commands
| Group |
Subcommands |
emails |
send, get <id>, cancel <id> |
domains |
list, get <id>, verify <id>, create --name, delete <id> |
contacts |
list, get <id>, create --email, update <id>, delete <id> |
broadcasts |
list, get <id>, create, send <id>, delete <id> |
api-keys |
list, create --name, delete <id> |
Known Defaults
- Domain: phattmedia.club — ID
8c193c1e-b3fc-410b-91af-392d2ea37a22
- Default from:
noreply@phattmedia.club
- Default audience ID:
8c193c1e-b3fc-410b-91af-392d2ea37a22 (contacts/broadcasts)
Notes
- Credentials hardcoded in
scripts/lib/client.ts
- User-Agent
openclaw-resend-cli/1.0 required on every request (Cloudflare 1010 otherwise)
- Rate limit: 2 req/sec; CLI adds 500ms between paginated calls
- Free tier: 3,000 emails/month, 100/day
1---2name: resend3description: Send emails via Resend API. Transactional emails, newsletters, domain verification. Use for email delivery, PMC broadcasts, or transactional mail.4---56# Resend CLI Skill78**Triggers:** send email, Resend, email delivery, PMC email, broadcast, domain verification, phattmedia.club email910## Invocation1112```bash13cd /root/.openclaw/workspace/skills/resend14npx tsx scripts/resend.ts <command> [options]15```1617All commands accept `--json` for agent-mode output: `{ ok, command, result, count }`.1819## Common Workflows2021### Send an email22```bash23npx tsx scripts/resend.ts emails send \24 --from noreply@phattmedia.club \25 --to recipient@example.com \26 --subject "Hello" \27 --html "<p>Message body</p>"28```2930### List domains31```bash32npx tsx scripts/resend.ts domains list33```3435### Create and send a broadcast36```bash37# Create38npx tsx scripts/resend.ts broadcasts create \39 --name "Newsletter #1" \40 --from noreply@phattmedia.club \41 --subject "This month's update" \42 --html "<h1>Hello subscribers</h1>"4344# Send (use ID from create output)45npx tsx scripts/resend.ts broadcasts send <id>46```4748## All Commands4950| Group | Subcommands |51|-------|-------------|52| `emails` | `send`, `get <id>`, `cancel <id>` |53| `domains` | `list`, `get <id>`, `verify <id>`, `create --name`, `delete <id>` |54| `contacts` | `list`, `get <id>`, `create --email`, `update <id>`, `delete <id>` |55| `broadcasts` | `list`, `get <id>`, `create`, `send <id>`, `delete <id>` |56| `api-keys` | `list`, `create --name`, `delete <id>` |5758## Known Defaults5960- **Domain:** phattmedia.club — ID `8c193c1e-b3fc-410b-91af-392d2ea37a22`61- **Default from:** `noreply@phattmedia.club`62- **Default audience ID:** `8c193c1e-b3fc-410b-91af-392d2ea37a22` (contacts/broadcasts)6364## Notes6566- Credentials hardcoded in `scripts/lib/client.ts`67- User-Agent `openclaw-resend-cli/1.0` required on every request (Cloudflare 1010 otherwise)68- Rate limit: 2 req/sec; CLI adds 500ms between paginated calls69- Free tier: 3,000 emails/month, 100/day