sendgrid-management
Use when managing SendGrid email services via CLI - sending emails, managing templates, contacts, lists, suppressions, domains, API keys, webhooks, and viewing stats. Triggers: "sendgrid send", "manage sendgrid", "sendgrid template", "sendgrid contacts", "sendgrid stats", "sendgrid domain", "sendgrid api key", "sendgrid webhook", "email bounces", "sendgrid suppressions", "verify sender", "sendgrid list", "marketing email", "transactional email". Provides comprehensive CLI for all SendGrid API operations without needing the dashboard.
What this skill does
# SendGrid Management Complete CLI for managing SendGrid email services - send emails, manage templates, contacts, domains, and more. ## Quick Reference | Task | Command | |------|---------| | **Send email** | `sendgrid mail send --to [email protected] --subject "Hello" --text "Body"` | | **Send with template** | `sendgrid mail send --to [email protected] --template-id d-xxx --data '{"name":"John"}'` | | **List templates** | `sendgrid template list` | | **Add contact** | `sendgrid contact add --email [email protected] --first-name John` | | **View stats** | `sendgrid stats global --days 7` | | **List bounces** | `sendgrid suppression bounces` | | **Create API key** | `sendgrid apikey create --name "My Key" --scopes mail.send` | ## Installation ```bash # Option 1: Run with Deno deno run --allow-all ~/.claude/skills/sendgrid-management/cli/mod.ts [command] # Option 2: Compile to binary cd ~/.claude/skills/sendgrid-management/cli && deno task compile ./dist/sendgrid --help # Option 3: Install globally deno install --allow-all -n sendgrid ~/.claude/skills/sendgrid-management/cli/mod.ts ``` ## Authentication ```bash # Set API key (saves to ~/.config/sendgrid/config.json) sendgrid auth login --api-key SG.xxx # Or use environment variable export SENDGRID_API_KEY="SG.xxx" # Check auth status sendgrid auth status ``` ## Command Groups | Group | Description | |-------|-------------| | `auth` | Authentication and config management | | `mail` | Send emails (transactional) | | `template` | Manage dynamic templates | | `contact` | Manage contacts | | `list` | Manage contact lists | | `segment` | Manage contact segments | | `suppression` | View/manage bounces, blocks, spam reports | | `sender` | Manage verified senders | | `domain` | Domain authentication (DKIM, SPF) | | `stats` | View email statistics | | `webhook` | Manage event webhooks | | `apikey` | Manage API keys | | `validate` | Validate email addresses | ## Core Workflows ### Workflow 1: Send Transactional Email ```bash # Simple email sendgrid mail send \ --to [email protected] \ --from [email protected] \ --subject "Welcome!" \ --html "<h1>Hello</h1><p>Welcome to our service!</p>" # With dynamic template sendgrid mail send \ --to [email protected] \ --from [email protected] \ --template-id d-f43daeeaef504760851f727007e0b5d0 \ --data '{"name": "John", "order_id": "12345"}' # Multiple recipients sendgrid mail send \ --to [email protected],[email protected] \ --from [email protected] \ --subject "Announcement" \ --text "Important update..." # Schedule for later sendgrid mail send \ --to [email protected] \ --from [email protected] \ --subject "Scheduled" \ --text "This was scheduled" \ --send-at "2024-12-25T10:00:00Z" ``` ### Workflow 2: Manage Templates ```bash # List all templates sendgrid template list # Get template details sendgrid template get <template-id> # Create template sendgrid template create --name "Welcome Email" --generation dynamic # Create/update version sendgrid template version create <template-id> \ --name "v1" \ --subject "Welcome {{name}}!" \ --html-file welcome.html \ --active ``` ### Workflow 3: Contact Management ```bash # Add single contact sendgrid contact add \ --email [email protected] \ --first-name John \ --last-name Doe \ --list-ids abc123,def456 # Import from file sendgrid contact import --file contacts.csv # Search contacts sendgrid contact search --query "email LIKE '%@example.com'" # Export contacts sendgrid contact export --list-id abc123 --output contacts.csv # Get contact count sendgrid contact count ``` ### Workflow 4: List Management ```bash # Create list sendgrid list create --name "Newsletter Subscribers" # List all lists sendgrid list all # Add contacts to list sendgrid list add-contacts <list-id> --emails [email protected],[email protected] # Remove contacts from list sendgrid list remove-contacts <list-id> --contact-ids id1,id2 # Delete list sendgrid list delete <list-id> ``` ### Workflow 5: Suppression Management ```bash # View bounces sendgrid suppression bounces [--start-time 2024-01-01] [--end-time 2024-12-31] # View blocks sendgrid suppression blocks # View spam reports sendgrid suppression spam-reports # View unsubscribes sendgrid suppression unsubscribes # Delete specific bounce sendgrid suppression delete bounce [email protected] # Add to global unsubscribe sendgrid suppression add unsubscribe [email protected] ``` ### Workflow 6: Domain Authentication ```bash # List authenticated domains sendgrid domain list # Authenticate new domain sendgrid domain create --domain example.com # Get DNS records to add sendgrid domain get <domain-id> # Validate domain (after adding DNS) sendgrid domain validate <domain-id> # Set as default sendgrid domain set-default <domain-id> ``` ### Workflow 7: Sender Verification ```bash # List verified senders sendgrid sender list # Create sender identity sendgrid sender create \ --from-email [email protected] \ --from-name "My Company" \ --reply-to [email protected] # Resend verification sendgrid sender resend <sender-id> # Delete sender sendgrid sender delete <sender-id> ``` ### Workflow 8: Statistics ```bash # Global stats (last 7 days) sendgrid stats global --days 7 # Stats by category sendgrid stats category --categories transactional,marketing --days 30 # Stats by mailbox provider sendgrid stats mailbox-providers --days 7 # Stats by browser sendgrid stats browsers --days 7 # Stats by device sendgrid stats devices --days 7 ``` ### Workflow 9: Webhooks ```bash # List webhooks sendgrid webhook list # Create webhook sendgrid webhook create \ --url https://example.com/webhook \ --events delivered,opened,clicked,bounced # Update webhook sendgrid webhook update <webhook-id> --enabled false # Test webhook sendgrid webhook test <webhook-id> # Delete webhook sendgrid webhook delete <webhook-id> ``` ### Workflow 10: API Keys ```bash # List API keys sendgrid apikey list # Create API key sendgrid apikey create \ --name "Production API" \ --scopes mail.send,templates.read # Create full access key sendgrid apikey create --name "Admin Key" --full-access # Update key name sendgrid apikey update <key-id> --name "New Name" # Delete key sendgrid apikey delete <key-id> ``` ## JSON Output All commands support `--json` for machine-readable output: ```bash sendgrid template list --json | jq '.[].id' sendgrid stats global --days 7 --json > stats.json ``` ## Environment Variables | Variable | Description | |----------|-------------| | `SENDGRID_API_KEY` | API key (required) | | `SENDGRID_FROM_EMAIL` | Default from email | | `SENDGRID_FROM_NAME` | Default from name | ## API Coverage | Category | Endpoints | Status | |----------|-----------|--------| | Mail Send | send, schedule, batch | Complete | | Templates | CRUD, versions | Complete | | Contacts | add, import, search, export | Complete | | Lists | CRUD, add/remove contacts | Complete | | Segments | list, get | Partial | | Suppressions | bounces, blocks, spam, unsubs | Complete | | Senders | CRUD, verify | Complete | | Domain Auth | CRUD, validate | Complete | | Stats | global, category, geo, device | Complete | | Webhooks | CRUD, test | Complete | | API Keys | CRUD | Complete | | Validation | single email | Complete | ## Common Issues | Error | Solution | |-------|----------| | `401 Unauthorized` | Check API key is valid and has required scopes | | `403 Forbidden` | API key lacks permission for this action | | `429 Rate Limited` | Too many requests; wait and retry | | `400 Bad Request` | Check request parameters | ## Resources - [references/api-endpoints.md](references/api-endpoints.md) - Full API endpoint reference - [references/scopes.md](references/scopes.md) - API key scopes reference - **Official Docs**: https://www.twilio.com/docs/sendgrid/api-reference
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.