Skip to content

About

Agent Skill for using the SMTPfast email API (smtpfa.st): send transactional email, manage domains, contacts, broadcasts, and webhooks

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

29 Commits

Folders and files

Repository files navigation

SMTPfast Agent Skill

An Agent Skill that teaches Claude (and other skill-aware agents) how to use the SMTPfast email API correctly: sending transactional email (raw or from hosted templates), receiving inbound email, working an inbox with drafts for a person to approve, managing contacts and sending domains, running broadcasts, and wiring up webhooks.

The repo is also an Agent Plugins Standard plugin: plugin.json at the root, the skill under skills/, and mcp.json pointing at the hosted SMTPfast MCP server, so agents that read that layout can install it too.

Drop it in and your agent knows the base URL, the auth model, the endpoints, and the right request shapes, so it integrates SMTPfast on the first try instead of guessing.

What it covers

  • Send email (single and batch) with copy-ready curl, Node, Python, and PHP examples
  • Auth (Bearer API key) and the verified-domain requirement
  • Unsubscribe handling ({{unsubscribe_url}} + RFC 8058 List-Unsubscribe)
  • Delivery status via GET /v1/emails/{id} and webhooks
  • Inbound email: enable receiving on a domain, list and read received mail and attachments, reply in-thread, the email.received webhook
  • Hosted templates: send a published template by id or alias with variables, and manage templates
  • Inboxes: threads, labels and drafts on your own domain, and the safe pattern for agents: write drafts with a key that cannot send, and let a person approve them
  • Contacts, segments, suppressions, broadcasts, domains, webhooks, API keys, analytics (full endpoint map in the reference)
  • Error handling and retry guidance (400 vs 429 vs 5xx)

Install (Claude Code)

This repo is a Claude Code plugin marketplace, so installing is two commands:

/plugin marketplace add smtpfast/smtpfast-skill
/plugin install smtpfast@smtpfast

Set your key once (create one at https://smtpfa.st):

export SMTPFAST_API_KEY="sf_live_..."

The skill is model-invoked, so you do not call it directly. Just ask, for example: "send a welcome email to [email protected] with SMTPfast." Claude loads the skill on its own.

To update later: /plugin marketplace update smtpfast. To remove: /plugin uninstall smtpfast@smtpfast.

Manual install (no plugin system)

mkdir -p ~/.claude/skills
cp -r plugins/smtpfast/skills/smtpfast ~/.claude/skills/

See the Agent Skills and plugin docs for the full mechanism and other agents.

Layout

.claude-plugin/marketplace.json     # marketplace catalog
plugins/smtpfast/
  .claude-plugin/plugin.json        # plugin manifest
  skills/smtpfast/
    SKILL.md                        # the skill: essentials + send-email quickstart
    references/api-reference.md     # how to use each endpoint: fields, gotchas, error codes
    references/endpoints.md         # every operation, generated from the live spec
    examples/send-email.md          # curl / Node / Python / PHP
scripts/sync-endpoints.mjs          # regenerates endpoints.md, checks api-reference.md

Staying in sync with the API

A daily workflow (.github/workflows/spec-sync.yml) downloads the live OpenAPI spec, regenerates references/endpoints.md and commits it with a patch version bump when the API changed, so a plugin update picks it up. It also keeps one issue (label spec-sync) open while api-reference.md misses an operation or documents one that no longer exists. Run it by hand with node scripts/sync-endpoints.mjs --report report.md.

Links

License

MIT © SMTPfast

About

Agent Skill for using the SMTPfast email API (smtpfa.st): send transactional email, manage domains, contacts, broadcasts, and webhooks

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages