mailsac
MailSac API for disposable email testing. Use when user mentions "MailSac", "test email", "disposable email", or email testing.
What this skill does
## Troubleshooting If requests fail, run `zero doctor check-connector --env-name MAILSAC_TOKEN` or `zero doctor check-connector --url https://mailsac.com/api/addresses/[email protected]/messages --method GET` ## How to Use All examples below assume you have `MAILSAC_TOKEN` set. Base URL: `https://mailsac.com` ## 1. Messages - Read Emails Retrieve and read emails from any inbox. ### List Messages in Inbox ```bash curl -s "https://mailsac.com/api/addresses/[email protected]/messages" --header "Mailsac-Key: $MAILSAC_TOKEN" | jq . ``` ### Read Message Content (Plain Text) Replace `<message-id>` with the actual messageId from the list: ```bash curl -s "https://mailsac.com/api/text/[email protected]/<message-id>" --header "Mailsac-Key: $MAILSAC_TOKEN" ``` ### Read Message Content (HTML) ```bash curl -s "https://mailsac.com/api/body/[email protected]/<message-id>" --header "Mailsac-Key: $MAILSAC_TOKEN" ``` ### Get Raw SMTP Message (with headers and attachments) ```bash curl -s "https://mailsac.com/api/raw/[email protected]/<message-id>" --header "Mailsac-Key: $MAILSAC_TOKEN" ``` ### Get Message Headers as JSON ```bash curl -s "https://mailsac.com/api/headers/[email protected]/<message-id>" --header "Mailsac-Key: $MAILSAC_TOKEN" | jq . ``` **Message Format Endpoints:** | Endpoint | Description | |----------|-------------| | `/api/text/{email}/{messageId}` | Plain text body | | `/api/body/{email}/{messageId}` | Sanitized HTML body | | `/api/dirty/{email}/{messageId}` | Unsanitized HTML with inlined images | | `/api/raw/{email}/{messageId}` | Complete SMTP message | | `/api/headers/{email}/{messageId}` | JSON headers | ## 2. Messages - Delete Delete single messages or purge entire inboxes. ### Delete Single Message ```bash curl -s -X DELETE "https://mailsac.com/api/addresses/[email protected]/messages/<message-id>" --header "Mailsac-Key: $MAILSAC_TOKEN" ``` ### Purge Entire Inbox (Enhanced Address only) ```bash curl -s -X DELETE "https://mailsac.com/api/addresses/[email protected]/messages" --header "Mailsac-Key: $MAILSAC_TOKEN" ``` Note: Starred messages will NOT be purged. Unstar them first if you want to delete everything. ### Delete All Messages in Custom Domain ```bash curl -s -X PUT "https://mailsac.com/api/domains/yourdomain.com/delete-all-domain-mail" --header "Mailsac-Key: $MAILSAC_TOKEN" ``` ## 3. Private Addresses - Reserve and Release Manage private email addresses for exclusive use. ### Reserve a Private Address ```bash curl -s -X POST "https://mailsac.com/api/addresses/[email protected]" --header "Mailsac-Key: $MAILSAC_TOKEN" | jq . ``` **Response:** ```json { "_id": "[email protected]", "owner": "your-username", "forward": null, "webhook": null, "webhookSlack": null, "enablews": false, "created": "2024-01-01T00:00:00.000Z", "updated": "2024-01-01T00:00:00.000Z" } ``` ### List Your Private Addresses ```bash curl -s "https://mailsac.com/api/addresses" --header "Mailsac-Key: $MAILSAC_TOKEN" | jq . ``` ### Release a Private Address ```bash curl -s -X DELETE "https://mailsac.com/api/addresses/[email protected]" --header "Mailsac-Key: $MAILSAC_TOKEN" ``` ### Release Address and Delete All Messages ```bash curl -s -X DELETE "https://mailsac.com/api/addresses/[email protected]?deleteAddressMessages=true" --header "Mailsac-Key: $MAILSAC_TOKEN" ``` ## 4. Webhook Forwarding Configure webhooks to receive email notifications in real-time. ### Set Webhook for Private Address Write to `/tmp/mailsac_webhook.json`: ```json { "webhook": "https://your-server.com/email-webhook" } ``` Then run: ```bash curl -s -X PUT "https://mailsac.com/api/private-address-forwarding/[email protected]" --header "Mailsac-Key: $MAILSAC_TOKEN" --header "Content-Type: application/json" -d @/tmp/mailsac_webhook.json | jq . ``` ### Remove Webhook Write to `/tmp/mailsac_webhook.json`: ```json { "webhook": "" } ``` Then run: ```bash curl -s -X PUT "https://mailsac.com/api/private-address-forwarding/[email protected]" --header "Mailsac-Key: $MAILSAC_TOKEN" --header "Content-Type: application/json" -d @/tmp/mailsac_webhook.json | jq . ``` **Webhook Payload Format:** ```json { "text": "Email body content", "subject": "Email subject", "from": [{"address": "[email protected]", "name": "Sender Name"}], "to": [{"address": "[email protected]", "name": ""}], "headers": {}, "messageId": "unique-message-id", "date": "2024-01-01T00:00:00.000Z", "receivedDate": "2024-01-01T00:00:00.000Z", "raw": "Full RFC-formatted email" } ``` ## 5. Email Validation Validate email addresses and detect disposable email services. ### Validate Single Email ```bash curl -s "https://mailsac.com/api/validations/addresses/[email protected]" --header "Mailsac-Key: $MAILSAC_TOKEN" | jq . ``` **Response:** ```json { "email": "[email protected]", "isValidFormat": true, "isDisposable": false, "disposableDomains": [], "aliases": [], "domain": "example.com", "local": "test" } ``` ### Check if Email is Disposable ```bash curl -s "https://mailsac.com/api/validations/addresses/[email protected]" --header "Mailsac-Key: $MAILSAC_TOKEN" | jq '{email, isDisposable}' ``` **Validation Response Fields:** | Field | Description | |-------|-------------| | `isValidFormat` | Email syntax is valid | | `isDisposable` | Email is from a disposable service | | `disposableDomains` | List of identified disposable domains | | `aliases` | Domain aliases and IP addresses | | `domain` | Domain part of email | | `local` | Local part of email | ## 6. Send Email (Outgoing) Send emails via API (requires outgoing message credits). Write to `/tmp/mailsac_outgoing.json`: ```json { "to": "[email protected]", "from": "[email protected]", "subject": "Test Email", "text": "This is the email body content." } ``` Then run: ```bash curl -s -X POST "https://mailsac.com/api/outgoing-messages" --header "Mailsac-Key: $MAILSAC_TOKEN" --header "Content-Type: application/json" -d @/tmp/mailsac_outgoing.json | jq . ``` Note: Sending requires purchased credits unless sending within your custom domain. ## 7. Attachments Download attachments from received emails. ### Get Attachment by MD5 Hash ```bash curl -s "https://mailsac.com/api/addresses/[email protected]/messages/<message-id>/attachments/<attachment-md5>" --header "Mailsac-Key: $MAILSAC_TOKEN" > attachment.bin ``` ### Get Raw Message and Parse Attachments ```bash curl -s "https://mailsac.com/api/raw/[email protected]/<message-id>" --header "Mailsac-Key: $MAILSAC_TOKEN" > message.eml ``` Note: For public addresses, attachments must be downloaded via API; they are not viewable on the website. ## 8. Star/Save Messages Prevent messages from being auto-deleted by starring them. ### Star a Message ```bash curl -s -X PUT "https://mailsac.com/api/addresses/[email protected]/messages/<message-id>/star" --header "Mailsac-Key: $MAILSAC_TOKEN" | jq . ``` ## Practical Examples ### Wait for Email and Extract Verification Code ```bash EMAIL="test-$(date +%s)@mailsac.com" echo "Use this email for registration: $EMAIL" # Poll for new message (check every 5 seconds, max 60 seconds) for i in $(seq 1 12); do MESSAGES=$(curl -s "https://mailsac.com/api/addresses/$EMAIL/messages" --header "Mailsac-Key: $MAILSAC_TOKEN") COUNT=$(echo "$MESSAGES" | jq 'length') if [ "$COUNT" -gt "0" ]; then MESSAGE_ID=$(echo "$MESSAGES" | jq -r '.[0]._id') echo "Message received: $MESSAGE_ID" curl -s "https://mailsac.com/api/text/$EMAIL/$MESSAGE_ID" --header "Mailsac-Key: $MAILSAC_TOKEN" break fi echo "Waiting for email... ($i/12)" sleep 5 done ``` ### List Recent Messages with Subject and Sender ```bash curl -s "https://mailsac.com/api/addresses/[email protected]/messages" --header "Mailsac-Key: $MAILSAC_TOKEN" | jq '.[] | {subject, from: .from[0].address, received: .received}' ``` ### Clean Up Test Inbox Before Tests ```bash curl -s -X DELETE "https://mailsac.com/api/addresses/test@ma
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.