{
  "schemaVersion": "1.0",
  "item": {
    "slug": "mailchannels",
    "name": "Send email using MailChannels Email API",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/ttulttul/mailchannels",
    "canonicalUrl": "https://clawhub.ai/ttulttul/mailchannels",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/mailchannels",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=mailchannels",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/mailchannels"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/mailchannels",
    "agentPageUrl": "https://openagent3.xyz/skills/mailchannels/agent",
    "manifestUrl": "https://openagent3.xyz/skills/mailchannels/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/mailchannels/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Environment",
        "body": "Required:\n\nMAILCHANNELS_API_KEY (send in X-Api-Key)\nMAILCHANNELS_ACCOUNT_ID (aka customer_handle)\n\nOptional:\n\nMAILCHANNELS_BASE_URL (default: https://api.mailchannels.net/tx/v1), MAILCHANNELS_WEBHOOK_ENDPOINT_URL"
      },
      {
        "title": "Domain Lockdown (DNS)",
        "body": "Create a TXT record for each sender domain:\n\nHost: _mailchannels.<your-domain>\nValue: v=mc1; auid=<YOUR_ACCOUNT_ID>"
      },
      {
        "title": "API Quick Reference",
        "body": "Base URL: ${MAILCHANNELS_BASE_URL:-https://api.mailchannels.net/tx/v1}\n\nSend: POST /send\nSend async: POST /send-async\nWebhook: POST /webhook?endpoint=<url>, GET /webhook, DELETE /webhook, POST /webhook/validate\nPublic key: GET /webhook/public-key?id=<keyid>"
      },
      {
        "title": "Sending Email",
        "body": "Minimum payload fields: personalizations, from, subject, content.\nUse /send for normal traffic and /send-async for queued/low-latency; both produce webhooks.\nPersist MailChannels correlation IDs (e.g., request_id)."
      },
      {
        "title": "Delivery Events (Webhooks)",
        "body": "MailChannels POSTs a JSON array. Common fields: email, customer_handle, timestamp, event, request_id.\nBounce fields often include: recipients, status, reason, smtp_id."
      },
      {
        "title": "Moltbot Hooks Routing",
        "body": "Enable hooks in ~/.clawdbot/moltbot.json.\nMap /hooks/<path> to an agent action via hooks.mappings and optional transform.\nEnroll the public endpoint in MailChannels /webhook?endpoint=...."
      },
      {
        "title": "Webhook Signature Verification",
        "body": "Headers: Content-Digest, Signature-Input, Signature.\nSteps:\n\nParse Signature-Input (name, created, alg, keyid).\nReject stale created values.\nFetch public key by keyid.\nRecreate the RFC 9421 signature base.\nVerify ed25519 signature (avoid hand-rolling).\nAlso verify JSON body is an array and every event has customer_handle == MAILCHANNELS_ACCOUNT_ID."
      },
      {
        "title": "Correlation + State Updates",
        "body": "Store your internal message ID + MailChannels IDs (e.g., request_id, smtp_id).\nUpdate delivery state from events: processed, delivered, soft-bounced, hard-bounced, dropped.\nOperational tips: respond 2xx quickly, process async, store raw events, dedupe retries."
      }
    ],
    "body": "MailChannels Email API (Send + Delivery Events)\nEnvironment\n\nRequired:\n\nMAILCHANNELS_API_KEY (send in X-Api-Key)\nMAILCHANNELS_ACCOUNT_ID (aka customer_handle)\n\nOptional:\n\nMAILCHANNELS_BASE_URL (default: https://api.mailchannels.net/tx/v1), MAILCHANNELS_WEBHOOK_ENDPOINT_URL\nDomain Lockdown (DNS)\n\nCreate a TXT record for each sender domain:\n\nHost: _mailchannels.<your-domain>\nValue: v=mc1; auid=<YOUR_ACCOUNT_ID>\nAPI Quick Reference\n\nBase URL: ${MAILCHANNELS_BASE_URL:-https://api.mailchannels.net/tx/v1}\n\nSend: POST /send\nSend async: POST /send-async\nWebhook: POST /webhook?endpoint=<url>, GET /webhook, DELETE /webhook, POST /webhook/validate\nPublic key: GET /webhook/public-key?id=<keyid>\nSending Email\n\nMinimum payload fields: personalizations, from, subject, content. Use /send for normal traffic and /send-async for queued/low-latency; both produce webhooks. Persist MailChannels correlation IDs (e.g., request_id).\n\nDelivery Events (Webhooks)\n\nMailChannels POSTs a JSON array. Common fields: email, customer_handle, timestamp, event, request_id. Bounce fields often include: recipients, status, reason, smtp_id.\n\nMoltbot Hooks Routing\nEnable hooks in ~/.clawdbot/moltbot.json.\nMap /hooks/<path> to an agent action via hooks.mappings and optional transform.\nEnroll the public endpoint in MailChannels /webhook?endpoint=....\nWebhook Signature Verification\n\nHeaders: Content-Digest, Signature-Input, Signature. Steps:\n\nParse Signature-Input (name, created, alg, keyid).\nReject stale created values.\nFetch public key by keyid.\nRecreate the RFC 9421 signature base.\nVerify ed25519 signature (avoid hand-rolling). Also verify JSON body is an array and every event has customer_handle == MAILCHANNELS_ACCOUNT_ID.\nCorrelation + State Updates\n\nStore your internal message ID + MailChannels IDs (e.g., request_id, smtp_id). Update delivery state from events: processed, delivered, soft-bounced, hard-bounced, dropped. Operational tips: respond 2xx quickly, process async, store raw events, dedupe retries."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/ttulttul/mailchannels",
    "publisherUrl": "https://clawhub.ai/ttulttul/mailchannels",
    "owner": "ttulttul",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/mailchannels",
    "downloadUrl": "https://openagent3.xyz/downloads/mailchannels",
    "agentUrl": "https://openagent3.xyz/skills/mailchannels/agent",
    "manifestUrl": "https://openagent3.xyz/skills/mailchannels/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/mailchannels/agent.md"
  }
}