{
  "schemaVersion": "1.0",
  "item": {
    "slug": "zoho-mail",
    "name": "Zoho Mail",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/byungkyu/zoho-mail",
    "canonicalUrl": "https://clawhub.ai/byungkyu/zoho-mail",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/zoho-mail",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=zoho-mail",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "LICENSE.txt"
    ],
    "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/zoho-mail"
    },
    "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/zoho-mail",
    "agentPageUrl": "https://openagent3.xyz/skills/zoho-mail/agent",
    "manifestUrl": "https://openagent3.xyz/skills/zoho-mail/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/zoho-mail/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": "Zoho Mail",
        "body": "Access the Zoho Mail API with managed OAuth authentication. Send, receive, search, and manage emails with full folder and label management."
      },
      {
        "title": "Quick Start",
        "body": "# List all accounts\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/zoho-mail/api/accounts')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Base URL",
        "body": "https://gateway.maton.ai/zoho-mail/{native-api-path}\n\nReplace {native-api-path} with the actual Zoho Mail API endpoint path. The gateway proxies requests to mail.zoho.com and automatically injects your OAuth token."
      },
      {
        "title": "Authentication",
        "body": "All requests require the Maton API key in the Authorization header:\n\nAuthorization: Bearer $MATON_API_KEY\n\nEnvironment Variable: Set your API key as MATON_API_KEY:\n\nexport MATON_API_KEY=\"YOUR_API_KEY\""
      },
      {
        "title": "Getting Your API Key",
        "body": "Sign in or create an account at maton.ai\nGo to maton.ai/settings\nCopy your API key"
      },
      {
        "title": "Connection Management",
        "body": "Manage your Zoho Mail OAuth connections at https://ctrl.maton.ai."
      },
      {
        "title": "List Connections",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections?app=zoho-mail&status=ACTIVE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Create Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'app': 'zoho-mail'}).encode()\nreq = urllib.request.Request('https://ctrl.maton.ai/connections', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Get Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nResponse:\n\n{\n  \"connection\": {\n    \"connection_id\": \"21fd90f9-5935-43cd-b6c8-bde9d915ca80\",\n    \"status\": \"ACTIVE\",\n    \"creation_time\": \"2025-12-08T07:20:53.488460Z\",\n    \"last_updated_time\": \"2026-01-31T20:03:32.593153Z\",\n    \"url\": \"https://connect.maton.ai/?session_token=...\",\n    \"app\": \"zoho-mail\",\n    \"metadata\": {}\n  }\n}\n\nOpen the returned url in a browser to complete OAuth authorization."
      },
      {
        "title": "Delete Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}', method='DELETE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Specifying Connection",
        "body": "If you have multiple Zoho Mail connections, specify which one to use with the Maton-Connection header:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/zoho-mail/api/accounts')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Maton-Connection', '21fd90f9-5935-43cd-b6c8-bde9d915ca80')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nIf omitted, the gateway uses the default (oldest) active connection."
      },
      {
        "title": "Account Operations",
        "body": "Get All Accounts\n\nRetrieve all mail accounts for the authenticated user.\n\nGET /zoho-mail/api/accounts\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/zoho-mail/api/accounts')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nGet Account Details\n\nGET /zoho-mail/api/accounts/{accountId}"
      },
      {
        "title": "Folder Operations",
        "body": "List All Folders\n\nGET /zoho-mail/api/accounts/{accountId}/folders\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/zoho-mail/api/accounts/{accountId}/folders')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nResponse:\n\n{\n  \"status\": {\n    \"code\": 200,\n    \"description\": \"success\"\n  },\n  \"data\": [\n    {\n      \"folderId\": \"1367000000000008014\",\n      \"folderName\": \"Inbox\",\n      \"folderType\": \"Inbox\",\n      \"path\": \"/Inbox\",\n      \"imapAccess\": true,\n      \"isArchived\": 0,\n      \"URI\": \"https://mail.zoho.com/api/accounts/1367000000000008002/folders/1367000000000008014\"\n    },\n    {\n      \"folderId\": \"1367000000000008016\",\n      \"folderName\": \"Drafts\",\n      \"folderType\": \"Drafts\",\n      \"path\": \"/Drafts\",\n      \"imapAccess\": true,\n      \"isArchived\": 0\n    }\n  ]\n}\n\nCreate Folder\n\nPOST /zoho-mail/api/accounts/{accountId}/folders\nContent-Type: application/json\n\n{\n  \"folderName\": \"My Custom Folder\"\n}\n\nRename Folder\n\nPUT /zoho-mail/api/accounts/{accountId}/folders/{folderId}\nContent-Type: application/json\n\n{\n  \"folderName\": \"Renamed Folder\"\n}\n\nDelete Folder\n\nDELETE /zoho-mail/api/accounts/{accountId}/folders/{folderId}"
      },
      {
        "title": "Label Operations",
        "body": "List Labels\n\nGET /zoho-mail/api/accounts/{accountId}/labels\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/zoho-mail/api/accounts/{accountId}/labels')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nCreate Label\n\nPOST /zoho-mail/api/accounts/{accountId}/labels\nContent-Type: application/json\n\n{\n  \"labelName\": \"Important\"\n}\n\nUpdate Label\n\nPUT /zoho-mail/api/accounts/{accountId}/labels/{labelId}\nContent-Type: application/json\n\n{\n  \"labelName\": \"Updated Label\"\n}\n\nDelete Label\n\nDELETE /zoho-mail/api/accounts/{accountId}/labels/{labelId}"
      },
      {
        "title": "Email Message Operations",
        "body": "List Emails in Folder\n\nGET /zoho-mail/api/accounts/{accountId}/messages/view?folderId={folderId}\n\nQuery Parameters:\n\nParameterTypeDescriptionfolderIdlongFolder ID to list messages fromlimitintegerNumber of messages to return (default: 50)startintegerOffset for paginationsortBystringSort field (e.g., date)sortOrderbooleantrue for ascending, false for descending\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/zoho-mail/api/accounts/{accountId}/messages/view?folderId={folderId}&limit=10')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nSearch Emails\n\nGET /zoho-mail/api/accounts/{accountId}/messages/search?searchKey={query}\n\nQuery Parameters:\n\nParameterTypeDescriptionsearchKeystringSearch querylimitintegerNumber of results to returnstartintegerOffset for pagination\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nimport urllib.parse\nquery = urllib.parse.quote('from:sender@example.com')\nreq = urllib.request.Request(f'https://gateway.maton.ai/zoho-mail/api/accounts/{{accountId}}/messages/search?searchKey={query}')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nGet Email Content\n\nGET /zoho-mail/api/accounts/{accountId}/folders/{folderId}/messages/{messageId}/content\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/zoho-mail/api/accounts/{accountId}/folders/{folderId}/messages/{messageId}/content')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nGet Email Headers\n\nGET /zoho-mail/api/accounts/{accountId}/folders/{folderId}/messages/{messageId}/header\n\nGet Email Metadata\n\nGET /zoho-mail/api/accounts/{accountId}/folders/{folderId}/messages/{messageId}/details\n\nGet Original Message (MIME)\n\nGET /zoho-mail/api/accounts/{accountId}/messages/{messageId}/originalmessage\n\nSend Email\n\nPOST /zoho-mail/api/accounts/{accountId}/messages\nContent-Type: application/json\n\n{\n  \"fromAddress\": \"sender@yourdomain.com\",\n  \"toAddress\": \"recipient@example.com\",\n  \"subject\": \"Email Subject\",\n  \"content\": \"Email body content\",\n  \"mailFormat\": \"html\"\n}\n\nRequest Body Fields:\n\nFieldTypeRequiredDescriptionfromAddressstringYesSender's email addresstoAddressstringYesRecipient's email addresssubjectstringYesEmail subjectcontentstringYesEmail body contentccAddressstringNoCC recipientbccAddressstringNoBCC recipientmailFormatstringNohtml or plaintext (default: html)askReceiptstringNoyes or no for read receiptencodingstringNoCharacter encoding (default: UTF-8)\n\nExample - Send Email:\n\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({\n    \"fromAddress\": \"sender@yourdomain.com\",\n    \"toAddress\": \"recipient@example.com\",\n    \"subject\": \"Hello from Zoho Mail API\",\n    \"content\": \"<h1>Hello!</h1><p>This is a test email.</p>\",\n    \"mailFormat\": \"html\"\n}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/zoho-mail/api/accounts/{accountId}/messages', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nScheduling Parameters (Optional):\n\nFieldTypeDescriptionisSchedulebooleanEnable schedulingscheduleTypeinteger1-5 for preset times; 6 for customtimeZonestringRequired if scheduleType=6 (e.g., GMT 5:30)scheduleTimestringRequired if scheduleType=6 (format: MM/DD/YYYY HH:MM:SS)\n\nReply to Email\n\nPOST /zoho-mail/api/accounts/{accountId}/messages/{messageId}\nContent-Type: application/json\n\n{\n  \"fromAddress\": \"sender@yourdomain.com\",\n  \"toAddress\": \"recipient@example.com\",\n  \"subject\": \"Re: Original Subject\",\n  \"content\": \"Reply content\"\n}\n\nSave Draft\n\nPOST /zoho-mail/api/accounts/{accountId}/messages\nContent-Type: application/json\n\n{\n  \"fromAddress\": \"sender@yourdomain.com\",\n  \"toAddress\": \"recipient@example.com\",\n  \"subject\": \"Draft Subject\",\n  \"content\": \"Draft content\",\n  \"mode\": \"draft\"\n}\n\nUpdate Message (Mark as Read/Unread, Move, Flag)\n\nPUT /zoho-mail/api/accounts/{accountId}/updatemessage\nContent-Type: application/json\n\n{\n  \"messageId\": [\"messageId1\", \"messageId2\"],\n  \"folderId\": \"folderId\",\n  \"mode\": \"markAsRead\"\n}\n\nMode Options:\n\nmarkAsRead - Mark messages as read\nmarkAsUnread - Mark messages as unread\nmoveMessage - Move messages (requires destfolderId)\nflag - Set flag (requires flagid: 1-4)\narchive - Archive messages\nunArchive - Unarchive messages\nspam - Mark as spam\nnotSpam - Mark as not spam\n\nExample - Mark as Read:\n\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({\n    \"messageId\": [\"1234567890123456789\"],\n    \"folderId\": \"9876543210987654321\",\n    \"mode\": \"markAsRead\"\n}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/zoho-mail/api/accounts/{accountId}/updatemessage', data=data, method='PUT')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nDelete Email\n\nDELETE /zoho-mail/api/accounts/{accountId}/folders/{folderId}/messages/{messageId}"
      },
      {
        "title": "Attachment Operations",
        "body": "Upload Attachment\n\nPOST /zoho-mail/api/accounts/{accountId}/messages/attachments\nContent-Type: multipart/form-data\n\nGet Attachment Info\n\nGET /zoho-mail/api/accounts/{accountId}/folders/{folderId}/messages/{messageId}/attachmentinfo\n\nDownload Attachment\n\nGET /zoho-mail/api/accounts/{accountId}/folders/{folderId}/messages/{messageId}/attachments/{attachmentId}"
      },
      {
        "title": "Pagination",
        "body": "Zoho Mail uses offset-based pagination:\n\nGET /zoho-mail/api/accounts/{accountId}/messages/view?folderId={folderId}&start=0&limit=50\n\nstart: Offset index (default: 0)\nlimit: Number of records to return (default: 50)\n\nFor subsequent pages, increment start by limit:\n\nPage 1: start=0&limit=50\nPage 2: start=50&limit=50\nPage 3: start=100&limit=50"
      },
      {
        "title": "JavaScript",
        "body": "const response = await fetch(\n  'https://gateway.maton.ai/zoho-mail/api/accounts',\n  {\n    headers: {\n      'Authorization': `Bearer ${process.env.MATON_API_KEY}`\n    }\n  }\n);\nconst data = await response.json();"
      },
      {
        "title": "Python",
        "body": "import os\nimport requests\n\nresponse = requests.get(\n    'https://gateway.maton.ai/zoho-mail/api/accounts',\n    headers={'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'}\n)\ndata = response.json()"
      },
      {
        "title": "Notes",
        "body": "Account IDs are required for most operations - first call /api/accounts to get your account ID\nMessage IDs and Folder IDs are numeric strings\nThe fromAddress must be associated with the authenticated account\nDefault folders include: Inbox, Drafts, Templates, Snoozed, Sent, Spam, Trash, Outbox\nSupported encodings: Big5, EUC-JP, EUC-KR, GB2312, ISO-2022-JP, ISO-8859-1, KOI8-R, Shift_JIS, US-ASCII, UTF-8, WINDOWS-1251\nSome operations (labels, folder management, sending) require additional OAuth scopes. If you receive an INVALID_OAUTHSCOPE error, contact Maton support at support@maton.ai with the specific operations/APIs you need and your use-case\nIMPORTANT: When using curl commands, use curl -g when URLs contain brackets to disable glob parsing\nIMPORTANT: When piping curl output to jq or other commands, environment variables like $MATON_API_KEY may not expand correctly in some shell environments"
      },
      {
        "title": "Error Handling",
        "body": "StatusMeaning400Missing Zoho Mail connection or invalid request401Invalid or missing Maton API key429Rate limited4xx/5xxPassthrough error from Zoho Mail API"
      },
      {
        "title": "Troubleshooting: API Key Issues",
        "body": "Check that the MATON_API_KEY environment variable is set:\n\necho $MATON_API_KEY\n\nVerify the API key is valid by listing connections:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Troubleshooting: Invalid App Name",
        "body": "Ensure your URL path starts with zoho-mail. For example:\n\nCorrect: https://gateway.maton.ai/zoho-mail/api/accounts\nIncorrect: https://gateway.maton.ai/api/accounts"
      },
      {
        "title": "Resources",
        "body": "Zoho Mail API Overview\nZoho Mail API Index\nEmail Messages API\nGetting Started with Zoho Mail API\nMaton Community\nMaton Support"
      }
    ],
    "body": "Zoho Mail\n\nAccess the Zoho Mail API with managed OAuth authentication. Send, receive, search, and manage emails with full folder and label management.\n\nQuick Start\n# List all accounts\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/zoho-mail/api/accounts')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nBase URL\nhttps://gateway.maton.ai/zoho-mail/{native-api-path}\n\n\nReplace {native-api-path} with the actual Zoho Mail API endpoint path. The gateway proxies requests to mail.zoho.com and automatically injects your OAuth token.\n\nAuthentication\n\nAll requests require the Maton API key in the Authorization header:\n\nAuthorization: Bearer $MATON_API_KEY\n\n\nEnvironment Variable: Set your API key as MATON_API_KEY:\n\nexport MATON_API_KEY=\"YOUR_API_KEY\"\n\nGetting Your API Key\nSign in or create an account at maton.ai\nGo to maton.ai/settings\nCopy your API key\nConnection Management\n\nManage your Zoho Mail OAuth connections at https://ctrl.maton.ai.\n\nList Connections\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections?app=zoho-mail&status=ACTIVE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nCreate Connection\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'app': 'zoho-mail'}).encode()\nreq = urllib.request.Request('https://ctrl.maton.ai/connections', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nGet Connection\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nResponse:\n\n{\n  \"connection\": {\n    \"connection_id\": \"21fd90f9-5935-43cd-b6c8-bde9d915ca80\",\n    \"status\": \"ACTIVE\",\n    \"creation_time\": \"2025-12-08T07:20:53.488460Z\",\n    \"last_updated_time\": \"2026-01-31T20:03:32.593153Z\",\n    \"url\": \"https://connect.maton.ai/?session_token=...\",\n    \"app\": \"zoho-mail\",\n    \"metadata\": {}\n  }\n}\n\n\nOpen the returned url in a browser to complete OAuth authorization.\n\nDelete Connection\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}', method='DELETE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nSpecifying Connection\n\nIf you have multiple Zoho Mail connections, specify which one to use with the Maton-Connection header:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/zoho-mail/api/accounts')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Maton-Connection', '21fd90f9-5935-43cd-b6c8-bde9d915ca80')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nIf omitted, the gateway uses the default (oldest) active connection.\n\nAPI Reference\nAccount Operations\nGet All Accounts\n\nRetrieve all mail accounts for the authenticated user.\n\nGET /zoho-mail/api/accounts\n\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/zoho-mail/api/accounts')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nGet Account Details\nGET /zoho-mail/api/accounts/{accountId}\n\nFolder Operations\nList All Folders\nGET /zoho-mail/api/accounts/{accountId}/folders\n\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/zoho-mail/api/accounts/{accountId}/folders')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nResponse:\n\n{\n  \"status\": {\n    \"code\": 200,\n    \"description\": \"success\"\n  },\n  \"data\": [\n    {\n      \"folderId\": \"1367000000000008014\",\n      \"folderName\": \"Inbox\",\n      \"folderType\": \"Inbox\",\n      \"path\": \"/Inbox\",\n      \"imapAccess\": true,\n      \"isArchived\": 0,\n      \"URI\": \"https://mail.zoho.com/api/accounts/1367000000000008002/folders/1367000000000008014\"\n    },\n    {\n      \"folderId\": \"1367000000000008016\",\n      \"folderName\": \"Drafts\",\n      \"folderType\": \"Drafts\",\n      \"path\": \"/Drafts\",\n      \"imapAccess\": true,\n      \"isArchived\": 0\n    }\n  ]\n}\n\nCreate Folder\nPOST /zoho-mail/api/accounts/{accountId}/folders\nContent-Type: application/json\n\n{\n  \"folderName\": \"My Custom Folder\"\n}\n\nRename Folder\nPUT /zoho-mail/api/accounts/{accountId}/folders/{folderId}\nContent-Type: application/json\n\n{\n  \"folderName\": \"Renamed Folder\"\n}\n\nDelete Folder\nDELETE /zoho-mail/api/accounts/{accountId}/folders/{folderId}\n\nLabel Operations\nList Labels\nGET /zoho-mail/api/accounts/{accountId}/labels\n\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/zoho-mail/api/accounts/{accountId}/labels')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nCreate Label\nPOST /zoho-mail/api/accounts/{accountId}/labels\nContent-Type: application/json\n\n{\n  \"labelName\": \"Important\"\n}\n\nUpdate Label\nPUT /zoho-mail/api/accounts/{accountId}/labels/{labelId}\nContent-Type: application/json\n\n{\n  \"labelName\": \"Updated Label\"\n}\n\nDelete Label\nDELETE /zoho-mail/api/accounts/{accountId}/labels/{labelId}\n\nEmail Message Operations\nList Emails in Folder\nGET /zoho-mail/api/accounts/{accountId}/messages/view?folderId={folderId}\n\n\nQuery Parameters:\n\nParameter\tType\tDescription\nfolderId\tlong\tFolder ID to list messages from\nlimit\tinteger\tNumber of messages to return (default: 50)\nstart\tinteger\tOffset for pagination\nsortBy\tstring\tSort field (e.g., date)\nsortOrder\tboolean\ttrue for ascending, false for descending\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/zoho-mail/api/accounts/{accountId}/messages/view?folderId={folderId}&limit=10')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nSearch Emails\nGET /zoho-mail/api/accounts/{accountId}/messages/search?searchKey={query}\n\n\nQuery Parameters:\n\nParameter\tType\tDescription\nsearchKey\tstring\tSearch query\nlimit\tinteger\tNumber of results to return\nstart\tinteger\tOffset for pagination\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nimport urllib.parse\nquery = urllib.parse.quote('from:sender@example.com')\nreq = urllib.request.Request(f'https://gateway.maton.ai/zoho-mail/api/accounts/{{accountId}}/messages/search?searchKey={query}')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nGet Email Content\nGET /zoho-mail/api/accounts/{accountId}/folders/{folderId}/messages/{messageId}/content\n\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/zoho-mail/api/accounts/{accountId}/folders/{folderId}/messages/{messageId}/content')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nGet Email Headers\nGET /zoho-mail/api/accounts/{accountId}/folders/{folderId}/messages/{messageId}/header\n\nGet Email Metadata\nGET /zoho-mail/api/accounts/{accountId}/folders/{folderId}/messages/{messageId}/details\n\nGet Original Message (MIME)\nGET /zoho-mail/api/accounts/{accountId}/messages/{messageId}/originalmessage\n\nSend Email\nPOST /zoho-mail/api/accounts/{accountId}/messages\nContent-Type: application/json\n\n{\n  \"fromAddress\": \"sender@yourdomain.com\",\n  \"toAddress\": \"recipient@example.com\",\n  \"subject\": \"Email Subject\",\n  \"content\": \"Email body content\",\n  \"mailFormat\": \"html\"\n}\n\n\nRequest Body Fields:\n\nField\tType\tRequired\tDescription\nfromAddress\tstring\tYes\tSender's email address\ntoAddress\tstring\tYes\tRecipient's email address\nsubject\tstring\tYes\tEmail subject\ncontent\tstring\tYes\tEmail body content\nccAddress\tstring\tNo\tCC recipient\nbccAddress\tstring\tNo\tBCC recipient\nmailFormat\tstring\tNo\thtml or plaintext (default: html)\naskReceipt\tstring\tNo\tyes or no for read receipt\nencoding\tstring\tNo\tCharacter encoding (default: UTF-8)\n\nExample - Send Email:\n\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({\n    \"fromAddress\": \"sender@yourdomain.com\",\n    \"toAddress\": \"recipient@example.com\",\n    \"subject\": \"Hello from Zoho Mail API\",\n    \"content\": \"<h1>Hello!</h1><p>This is a test email.</p>\",\n    \"mailFormat\": \"html\"\n}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/zoho-mail/api/accounts/{accountId}/messages', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nScheduling Parameters (Optional):\n\nField\tType\tDescription\nisSchedule\tboolean\tEnable scheduling\nscheduleType\tinteger\t1-5 for preset times; 6 for custom\ntimeZone\tstring\tRequired if scheduleType=6 (e.g., GMT 5:30)\nscheduleTime\tstring\tRequired if scheduleType=6 (format: MM/DD/YYYY HH:MM:SS)\nReply to Email\nPOST /zoho-mail/api/accounts/{accountId}/messages/{messageId}\nContent-Type: application/json\n\n{\n  \"fromAddress\": \"sender@yourdomain.com\",\n  \"toAddress\": \"recipient@example.com\",\n  \"subject\": \"Re: Original Subject\",\n  \"content\": \"Reply content\"\n}\n\nSave Draft\nPOST /zoho-mail/api/accounts/{accountId}/messages\nContent-Type: application/json\n\n{\n  \"fromAddress\": \"sender@yourdomain.com\",\n  \"toAddress\": \"recipient@example.com\",\n  \"subject\": \"Draft Subject\",\n  \"content\": \"Draft content\",\n  \"mode\": \"draft\"\n}\n\nUpdate Message (Mark as Read/Unread, Move, Flag)\nPUT /zoho-mail/api/accounts/{accountId}/updatemessage\nContent-Type: application/json\n\n{\n  \"messageId\": [\"messageId1\", \"messageId2\"],\n  \"folderId\": \"folderId\",\n  \"mode\": \"markAsRead\"\n}\n\n\nMode Options:\n\nmarkAsRead - Mark messages as read\nmarkAsUnread - Mark messages as unread\nmoveMessage - Move messages (requires destfolderId)\nflag - Set flag (requires flagid: 1-4)\narchive - Archive messages\nunArchive - Unarchive messages\nspam - Mark as spam\nnotSpam - Mark as not spam\n\nExample - Mark as Read:\n\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({\n    \"messageId\": [\"1234567890123456789\"],\n    \"folderId\": \"9876543210987654321\",\n    \"mode\": \"markAsRead\"\n}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/zoho-mail/api/accounts/{accountId}/updatemessage', data=data, method='PUT')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nDelete Email\nDELETE /zoho-mail/api/accounts/{accountId}/folders/{folderId}/messages/{messageId}\n\nAttachment Operations\nUpload Attachment\nPOST /zoho-mail/api/accounts/{accountId}/messages/attachments\nContent-Type: multipart/form-data\n\nGet Attachment Info\nGET /zoho-mail/api/accounts/{accountId}/folders/{folderId}/messages/{messageId}/attachmentinfo\n\nDownload Attachment\nGET /zoho-mail/api/accounts/{accountId}/folders/{folderId}/messages/{messageId}/attachments/{attachmentId}\n\nPagination\n\nZoho Mail uses offset-based pagination:\n\nGET /zoho-mail/api/accounts/{accountId}/messages/view?folderId={folderId}&start=0&limit=50\n\nstart: Offset index (default: 0)\nlimit: Number of records to return (default: 50)\n\nFor subsequent pages, increment start by limit:\n\nPage 1: start=0&limit=50\nPage 2: start=50&limit=50\nPage 3: start=100&limit=50\nCode Examples\nJavaScript\nconst response = await fetch(\n  'https://gateway.maton.ai/zoho-mail/api/accounts',\n  {\n    headers: {\n      'Authorization': `Bearer ${process.env.MATON_API_KEY}`\n    }\n  }\n);\nconst data = await response.json();\n\nPython\nimport os\nimport requests\n\nresponse = requests.get(\n    'https://gateway.maton.ai/zoho-mail/api/accounts',\n    headers={'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'}\n)\ndata = response.json()\n\nNotes\nAccount IDs are required for most operations - first call /api/accounts to get your account ID\nMessage IDs and Folder IDs are numeric strings\nThe fromAddress must be associated with the authenticated account\nDefault folders include: Inbox, Drafts, Templates, Snoozed, Sent, Spam, Trash, Outbox\nSupported encodings: Big5, EUC-JP, EUC-KR, GB2312, ISO-2022-JP, ISO-8859-1, KOI8-R, Shift_JIS, US-ASCII, UTF-8, WINDOWS-1251\nSome operations (labels, folder management, sending) require additional OAuth scopes. If you receive an INVALID_OAUTHSCOPE error, contact Maton support at support@maton.ai with the specific operations/APIs you need and your use-case\nIMPORTANT: When using curl commands, use curl -g when URLs contain brackets to disable glob parsing\nIMPORTANT: When piping curl output to jq or other commands, environment variables like $MATON_API_KEY may not expand correctly in some shell environments\nError Handling\nStatus\tMeaning\n400\tMissing Zoho Mail connection or invalid request\n401\tInvalid or missing Maton API key\n429\tRate limited\n4xx/5xx\tPassthrough error from Zoho Mail API\nTroubleshooting: API Key Issues\nCheck that the MATON_API_KEY environment variable is set:\necho $MATON_API_KEY\n\nVerify the API key is valid by listing connections:\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nTroubleshooting: Invalid App Name\nEnsure your URL path starts with zoho-mail. For example:\nCorrect: https://gateway.maton.ai/zoho-mail/api/accounts\nIncorrect: https://gateway.maton.ai/api/accounts\nResources\nZoho Mail API Overview\nZoho Mail API Index\nEmail Messages API\nGetting Started with Zoho Mail API\nMaton Community\nMaton Support"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/byungkyu/zoho-mail",
    "publisherUrl": "https://clawhub.ai/byungkyu/zoho-mail",
    "owner": "byungkyu",
    "version": "1.0.4",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/zoho-mail",
    "downloadUrl": "https://openagent3.xyz/downloads/zoho-mail",
    "agentUrl": "https://openagent3.xyz/skills/zoho-mail/agent",
    "manifestUrl": "https://openagent3.xyz/skills/zoho-mail/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/zoho-mail/agent.md"
  }
}