resend/resend

Verwenden Sie diese Fähigkeit bei der Arbeit mit der Resend-E-Mail-API – zum Senden von Transaktions-E-Mails (einzeln oder als Stapel), Empfangen eingehender E-Mails über Webhooks, Verwalten von E-Mail-Vorlagen, Verfolgen von Zustellereignissen, Verwalten von Domänen, Kontakten, Sendungen, Webhooks, API-Schlüsseln, Automatisierungen, Ereignissen, Anzeigen von API-Anforderungsprotokollen oder Einrichten des Resend SDK. Verwenden Sie diese Fähigkeit immer, wenn der Benutzer Resend erwähnt, selbst bei einfachen Aufgaben wie „Senden Sie eine E-Mail mit Resend“ – die Fähigkeit enthält kritische Fallstricke (Idempotenzschlüssel, Webhook-Überprüfung, Syntax von Vorlagenvariablen), die häufige Produktionsprobleme verhindern.

Was ist resend?

Diese Fähigkeit ist für Entwickler und KI-Agenten konzipiert, die mit der Resend-E-Mail-API interagieren. Sie bietet umfassende Unterstützung für alle gängigen Anwendungsfälle: das Senden von Transaktions-E-Mails (sowohl einzeln als auch als Stapel), das Einrichten und Verwalten von eingehenden Webhooks, das Arbeiten mit E-Mail-Vorlagen, das Verfolgen von Zustell- und Klickereignissen sowie das Verwalten von Domänen, Kontakten, Sendungen, API-Schlüsseln und Automatisierungen. Die Hauptplattform ist Resend, eine moderne E-Mail-API für Entwickler. Diese Fähigkeit hebt sich dadurch ab, dass sie wichtige Produktionsfallstricke behandelt – insbesondere die Verwendung von **Idempotenzschlüsseln** (`Idempotency-Key`-Header) zur Vermeidung doppelter E-Mails bei erneuten Versuchen, die **Verifikation von Webhook-Signaturen** zur Sicherstellung der Authentizität eingehender Ereignisse und die korrekte Syntax von Vorlagenvariablen (`{{ variable }}`). Die zugrunde liegende SKILL.md-Dokumentation enthält ausführliche Beispiele, Codeblöcke und Implementierungsdetails für jeden dieser Bereiche, was die Integration mit Resend robuster und weniger fehleranfällig macht.

Funktioniert mit~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/resend/resend-skills/tree/main/skills/resend

Installed? Explore more Produktivität & Zusammenarbeit skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Was macht resend?

Diese Fähigkeit bei der Arbeit mit der Resend-E-Mail-API verwenden – Senden von Transaktions-E-Mails (einzeln oder als Stapel), Empfangen eingehender E-Mails über Webhooks, Verwalten von E-Mail-Vorlagen, Verfolgen von Zustellereignissen, Verwalten von Domänen, Kontakten, Sendungen, Webhooks, API-Schlüsseln, Automatisierungen, Ereignissen, Anzeigen von API-Anforderungsprotokollen oder Einrichten des Resend SDK. Verwenden Sie diese Fähigkeit immer, wenn der Benutzer Resend erwähnt, selbst bei einfachen Aufgaben wie „Senden Sie eine E-Mail mit Resend“ – die Fähigkeit enthält kritische Fallstricke (Idempotenzschlüssel, Webhook-Überprüfung, Syntax von Vorlagenvariablen), die häufige Produktionsprobleme verhindern.

Idempotenzschlüssel

Verwenden Sie den Idempotency-Key-Header bei jedem Aufruf zum Senden von E-Mails.

POST https://api.resend.com/emails
Header: Idempotency-Key: <eindeutige_ID>
Body: {
  "from": "[email protected]",
  "to": "[email protected]",
  "subject": "Hallo Welt",
  "html": "<p>Es funktioniert!</p>"
}

Webhook-Überprüfung

Überprüfen Sie eingehende Webhook-Anfragen mit dem Resend-Signatur-Header.

// Beispiel mit Node.js
const crypto = require('crypto');

function verifyWebhookSignature(payload, signature, secret) {
  const computedSignature = crypto
    .createHmac('sha256', secret)
    .update(payload)
    .digest('hex');
  return computedSignature === signature;
}

Syntax von Vorlagenvariablen

Verwenden Sie die doppelte geschweifte Klammer {{ variable }} in E-Mail-Vorlagen.

Betreff: Willkommen {{ name }}!
HTML: <p>Hallo {{ name }}, willkommen bei {{ product }}.</p>

Senden von E-Mails (einfach)

curl -X POST https://api.resend.com/emails \
  -H "Authorization: Bearer re_<API-Schlüssel>" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "[email protected]",
    "to": "[email protected]",
    "subject": "Hallo Welt",
    "html": "<p>Es funktioniert!</p>"
  }'

Senden von Stapel-E-Mails

curl -X POST https://api.resend.com/emails/batch \
  -H "Authorization: Bearer re_<API-Schlüssel>" \
  -H "Content-Type: application/json" \
  -d '[
    {
      "from": "[email protected]",
      "to": "[email protected]",
      "subject": "Hallo 1",
      "html": "<p>Nachricht 1</p>"
    },
    {
      "from": "[email protected]",
      "to": "[email protected]",
      "subject": "Hallo 2",
      "html": "<p>Nachricht 2</p>"
    }
  ]'

Verwalten von Domänen

# Domäne hinzufügen
curl -X POST https://api.resend.com/domains \
  -H "Authorization: Bearer re_<API-Schlüssel>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "example.com",
    "region": "us-east-1"
  }'

# Domänen auflisten
curl -X GET https://api.resend.com/domains \
  -H "Authorization: Bearer re_<API-Schlüssel>"

Verwalten von Kontakten

# Kontakt erstellen
curl -X POST https://api.resend.com/contacts \
  -H "Authorization: Bearer re_<API-Schlüssel>" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "[email protected]",
    "first_name": "Max",
    "last_name": "Mustermann",
    "unsubscribed": false
  }'

# Kontakte auflisten
curl -X GET https://api.resend.com/contacts \
  -H "Authorization: Bearer re_<API-Schlüssel>"

Verwaltung von Sendungen

# Sendung erstellen
curl -X POST https://api.resend.com/broadcasts \
  -H "Authorization: Bearer re_<API-Schlüssel>" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "[email protected]",
    "subject": "Monatliches Update",
    "html": "<p>Hier ist Ihr monatliches Update!</p>"
  }'

# Sendung senden
curl -X POST https://api.resend.com/broadcasts/<id>/send \
  -H "Authorization: Bearer re_<API-Schlüssel>"

Verwaltung von Webhooks

# Webhook erstellen
curl -X POST https://api.resend.com/webhooks \
  -H "Authorization: Bearer re_<API-Schlüssel>" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com/webhook",
    "events": ["email.sent", "email.delivered", "email.bounced"]
  }'

# Webhooks auflisten
curl -X GET https://api.resend.com/webhooks \
  -H "Authorization: Bearer re_<API-Schlüssel>"

Verwaltung von API-Schlüsseln

# API-Schlüssel erstellen
curl -X POST https://api.resend.com/api-keys \
  -H "Authorization: Bearer re_<API-Schlüssel>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Produktionsschlüssel",
    "permission": "full_access"
  }'

# API-Schlüssel auflisten
curl -X GET https://api.resend.com/api-keys \
  -H "Authorization: Bearer re_<API-Schlüssel>"

Zustellungsereignisse verfolgen

# Zustellungsereignisse nach E-Mail-ID abrufen
curl -X GET https://api.resend.com/emails/<email_id> \
  -H "Authorization: Bearer re_<API-Schlüssel>"

# Zustellungsereignisse auflisten
curl -X GET https://api.resend.com/emails?limit=10 \
  -H "Authorization: Bearer re_<API-Schlüssel>"

Anforderungsprotokolle anzeigen

curl -X GET https://api.resend.com/audience-logs \
  -H "Authorization: Bearer re_<API-Schlüssel>" \
  -H "Content-Type: application/json"

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

resend/agent-email-inbox

Use when building any system where email content triggers actions — AI agent inboxes, automated support handlers, email-to-task pipelines, or any workflow processing untrusted inbound email. Always use this skill when the user wants to receive emails and act on them programmatically, even if they don't mention "agent" — the skill contains critical security patterns (sender allowlists, content filtering, sandboxed processing) that prevent untrusted email from controlling your system.

resend/email-best-practices

Use when building email features, emails going to spam, high bounce rates, setting up SPF/DKIM/DMARC authentication, implementing email capture, ensuring compliance (CAN-SPAM, GDPR, CASL), handling webhooks, retry logic, making emails accessible (alt text, headings, contrast, screen readers), or deciding transactional vs marketing.

resend/react-email

Use when building HTML email templates with React components, adding a visual email editor to an application using the React Email visual editor, rendering emails to HTML, or sending emails with Resend. Covers welcome emails, password resets, notifications, order confirmations, newsletters, transactional emails, and the embeddable email editor component.

resend/resend-cli

Operate the Resend platform from the terminal — send emails (including React Email .tsx templates via --react-email), manage domains, contacts, broadcasts, templates, webhooks, API keys, logs, automations, and events via the `resend` CLI. Use when the user wants to run Resend commands in the shell, scripts, or CI/CD pipelines, or send/preview React Email templates. Always load this skill before running `resend` commands — it contains the non-interactive flag contract and gotchas that prevent silent failures.

Verwandte Skills