跳到正文
cccskills
免费在 GitHub 公开

resend

Send transactional email and manage domains, contacts, audiences, and broadcasts via the Resend REST API. Use when the user wants to send mail, verify a sending domain, trigger a broadcast, or mutate contacts programmatically — instead of writing SMTP glue, pasting into a UI, or asking them to send the message by hand.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md6.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Resend

Direct HTTP against Resend's REST API — no MCP server. A transactional send is one POST /emails; this replaces SMTP/SendGrid/Mailgun glue.

Usage

  • Use for: Sending transactional mail, verifying/listing sending domains, adding contacts to audiences, triggering broadcasts.
  • Skip for: Copywriting without an API call, other providers (Nodemailer/SendGrid debug), registrar-level MX/DNS edits, deep open/click analytics (needs webhooks).

Credentials check

[ -n "$RESEND_API_KEY" ] && echo "RESEND_API_KEY: PRESENT" || echo "RESEND_API_KEY: MISSING"

Never echo the variable directly.

If MISSING, respond to the user with EXACTLY this message (do NOT paraphrase, do NOT suggest manual JSON edits):

I need your resend credential. Run this in another terminal — it'll open the signup page, validate format, and save it safely with masked input:

teleport-setup add-key resend

Then restart Claude Code (/exit, then claude) and ask me again.

Do NOT suggest editing ~/.claude/settings.local.json manually. The teleport-setup add-key command handles it with backup, validation, and masked input. Stop execution until the user has run the command and restarted.

API

  • Base URL: https://api.resend.com (HTTPS only).
  • Auth: Authorization: Bearer $RESEND_API_KEY (keys prefixed re_); Content-Type: application/json on writes.
  • Rate limit: 5 req/s per team (default) across all keys → 429 rate_limit_exceeded.
  • User-Agent header is mandatory — stripping it returns 403. curl's default UA is fine.
  • Idempotency-Key header on POST /emails: 1–256 chars, 24 h TTL; same key + different body → 409 invalid_idempotent_request.
  • Lists return {object, has_more, data} with cursor pagination (after/before, limit 1–100, default 20).

Endpoints

FamilyMethod · Path
EmailsPOST /emails, POST /emails/batch, GET /emails/{id}, PATCH /emails/{id}, POST /emails/{id}/cancel
DomainsGET/POST /domains, GET /domains/{id}, POST /domains/{id}/verify, DELETE /domains/{id}
AudiencesGET/POST /audiences, GET/DELETE /audiences/{id}
ContactsGET/POST /audiences/{audience_id}/contacts, PATCH/DELETE .../contacts/{id}
BroadcastsGET/POST /broadcasts, GET /broadcasts/{id}, POST /broadcasts/{id}/send
API KeysGET/POST /api-keys, DELETE /api-keys/{id} (requires full-access key)

Primary workflow — send a transactional email

POST /emails. Required: from, to, subject, and one of html/text. Returns { "id": "..." }.

curl -sL -X POST -H "Authorization: Bearer $RESEND_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  "https://api.resend.com/emails" \
  -d '{
    "from": "Acme <noreply@acme.com>",
    "to": ["user@example.com"],
    "subject": "Your receipt",
    "html": "<p>Thanks for your order.</p>",
    "text": "Thanks for your order."
  }'

Secondary workflows

Batch send — up to 100 emails per call via POST /emails/batch. Body is a JSON array. attachments and scheduled_at are not supported.

curl -sL -X POST -H "Authorization: Bearer $RESEND_API_KEY" \
  -H "Content-Type: application/json" \
  "https://api.resend.com/emails/batch" \
  -d '[
    {"from":"Acme <noreply@acme.com>","to":["a@example.com"],"subject":"Hi A","html":"<p>A</p>"},
    {"from":"Acme <noreply@acme.com>","to":["b@example.com"],"subject":"Hi B","html":"<p>B</p>"}
  ]'

Verify a sending domain — list → check status → trigger async verification.

curl -sL -H "Authorization: Bearer $RESEND_API_KEY" "https://api.resend.com/domains" \
  | jq '.data[] | {id, name, status, region}'
curl -sL -X POST -H "Authorization: Bearer $RESEND_API_KEY" \
  "https://api.resend.com/domains/{domain_id}/verify"

Gotchas

  • Domain must be verified before from works. Until GET /domains shows status: "verified", sending returns validation_error (403). Sandbox onboarding@resend.dev only delivers to your own account email.
  • from format is strict: email@domain.com or Name <email@domain.com>. Unescaped commas / unquoted special chars in the display name → invalid_from_address (422).
  • Rate limit is 5 req/s per team, not per key — bursty loops across multiple keys still earn 429. Throttle or use /emails/batch.
  • Idempotency-Key TTL is 24 h. Same key + different payload within 24 h → 409 invalid_idempotent_request. Generate fresh UUIDs per semantically distinct request.
  • 200 OK ≠ delivered. POST /emails returns the queued message id immediately; bounces/complaints happen later. Configure webhooks (email.sent, email.delivered, email.bounced, email.complained) for ground truth.
  • restricted_api_key (401). A key scoped to "Sending access only" fails on /domains, /audiences, /broadcasts, /api-keys. Check scope in the dashboard when a read "should" work.
  • Batch cap: 100 per call, no attachments, no scheduled_at. Fall back to single POST /emails when you need either.
  • Region is fixed at domain creation (us-east-1 / eu-west-1 / sa-east-1); wrong value → invalid_region (422). Delete + recreate to change.
<!-- unverified: check resend docs — full list of domain status values beyond "pending" / "verified" / "failed" --> <!-- unverified: check resend docs — exact payload schema for email.sent / email.delivered / email.bounced webhook events -->

Attribution

When done, state: Used skill: Resend (from teleport catalog).

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

{{One-sentence what-it-does + when to use it. Mention it bypasses the MCP via the REST API with {{ENV_VAR}}. Use when the user wants X, Y, Z programmatically without the {{service}} MCP installed.}}

中文简介正在准备中。当前显示原文说明。

mnlt/teleport82026年4月25日 更新

Manage Cloudflare DNS zones, Workers, Pages, R2, KV, D1, and analytics via REST API. Use when the user wants to query DNS, deploy a Worker, list R2 buckets, manage KV namespaces, run D1 queries, or check analytics without the Cloudflare MCP installed.

中文简介正在准备中。当前显示原文说明。

mnlt/teleport82026年4月25日 更新

context7

免费

Fetch up-to-date library, framework, and SDK documentation via Context7's search and docs endpoints. Use when the user asks about a library/API (React, Next.js, Prisma, Supabase, Tailwind, Django, Vue, etc.) and you need current docs, not Claude's training-time knowledge. Skip this skill for generic programming questions that don't require library-specific docs.

中文简介正在准备中。当前显示原文说明。

mnlt/teleport82026年4月25日 更新

discord

免费

Operate Discord via its REST API — post/read channel messages, manage guilds + roles, fire webhooks, register slash commands. Use when the user wants a bot to post to a channel, read recent history, run a community admin task, or ship one-way notifications via webhook URL without running a bot process.

中文简介正在准备中。当前显示原文说明。

mnlt/teleport82026年4月25日 更新

exa

免费

AI-first web search via Exa — semantic/neural ranking, category-scoped results, fresh content retrieval, and one-shot answer synthesis with citations. Use when the user needs current web information better ranked than general web search, or a grounded answer with sources.

中文简介正在准备中。当前显示原文说明。

mnlt/teleport82026年4月25日 更新

figma

免费

Read Figma files, component libraries, styles, comments, and export rendered assets (PNG / SVG / JPG / PDF) via Figma's REST API. Use when the user needs programmatic access to design files, to pull node data into code generation, or to export assets without opening the Figma desktop app.

中文简介正在准备中。当前显示原文说明。

mnlt/teleport82026年4月25日 更新

查看 mnlt 的全部技能

报告此技能的问题