{"id":"2bb89494-7e00-45a2-bd64-ef4c3f69ef98","entityType":"agent","slug":"clawhub-byungkyu-zoho-mail","name":"Zoho Mail","canonicalUrl":"https://www.xpersona.co/agent/clawhub-byungkyu-zoho-mail","canonicalPath":"/agent/clawhub-byungkyu-zoho-mail","generatedAt":"2026-10-09T22:36:55.113Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"editorial-content","verified":true,"confidence":"high","updatedAt":"2026-04-15T00:45:39.800Z","emptyReason":null},"description":"Zoho Mail API integration with managed OAuth. Send, receive, and manage emails, folders, and labels. Use this skill when users want to send emails, read messages, manage folders, or work with email labels in Zoho Mail. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway). Requires network access and valid Maton API key. Skill: Zoho Mail Owner: byungkyu Summary: Zoho Mail API integration with managed OAuth. Send, receive, and manage emails, folders, and labels. Use this skill when users want to send emails, read messages, manage folders, or work with email labels in Zoho Mail. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway). Requires network access and valid Maton API key. Tags: latest:","descriptionLabel":"Technical summary","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 11.5K downloads reported by the source. Last updated 4/15/2026.","installCommand":"clawhub skill install kn75240wq8bnv2qm2xgry748jd80b9r0:zoho-mail","sourceUrl":"https://clawhub.ai/byungkyu/zoho-mail","homepage":"https://clawhub.ai/byungkyu/zoho-mail","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/byungkyu/zoho-mail","kind":"source"}],"safetyScore":84,"overallRank":62,"popularityScore":75,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Zoho Mail API integration with managed OAuth. Send, receive, and manage emails, folders, and labels. Use this skill when users want to send emails, read message"},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-04-15T00:45:39.800Z","emptyReason":"No protocol or capability metadata is available."},"protocols":[],"capabilities":[],"verifiedCount":0,"selfDeclaredCount":0,"capabilityMatrix":{"rows":[],"flattenedTokens":""}},"adoption":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-04-15T00:45:39.800Z","emptyReason":null},"stars":null,"forks":null,"downloads":11451,"packageName":null,"latestVersion":"1.0.4","tractionLabel":"11.5K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-02-28T16:59:01.223Z","emptyReason":null},"lastUpdatedAt":"2026-04-15T00:45:39.800Z","lastCrawledAt":"2026-02-28T16:59:01.223Z","lastIndexedAt":null,"nextCrawlAt":"2026-03-01T16:59:01.223Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.4","createdAt":"2026-02-10T23:12:48.326Z","changelog":"- Added \"homepage\" field to metadata, linking to the Maton homepage. - No other changes detected.","fileCount":3,"zipByteSize":5391},{"version":"1.0.3","createdAt":"2026-02-10T20:50:05.994Z","changelog":"- Added a new metadata section to declare emoji (🧠) and required environment variable (MATON_API_KEY) under the \"clawdbot\" key. - No changes to core functionality, API reference, or user instructions. - Documentation and description remain unchanged except for the updated metadata.","fileCount":3,"zipByteSize":5374},{"version":"1.0.2","createdAt":"2026-02-10T12:53:06.823Z","changelog":"- No changes detected in this version. - Functionality, documentation, and configuration remain the same as the previous release.","fileCount":null,"zipByteSize":null},{"version":"1.0.1","createdAt":"2026-02-07T20:43:06.073Z","changelog":"- Skill name corrected from \"zohomail\" to \"zoho-mail\" in SKILL.md. - No code or feature changes detected; documentation only.","fileCount":null,"zipByteSize":null},{"version":"1.0.0","createdAt":"2026-02-06T12:09:02.851Z","changelog":"- Initial release of Zoho Mail skill with managed OAuth integration. - Send, receive, search, and manage emails, folders, and labels in Zoho Mail via Maton API gateway. - Full documentation on authentication, connection management, and API usage included. - Supports multiple connections with selectable active connection via header. - Examples provided for all major email, folder, and label operations.","fileCount":null,"zipByteSize":null}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install kn75240wq8bnv2qm2xgry748jd80b9r0:zoho-mail","setupComplexity":"low","setupSteps":["Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.","Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data."],"contract":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-byungkyu-zoho-mail/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-byungkyu-zoho-mail/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-byungkyu-zoho-mail/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-byungkyu-zoho-mail/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-byungkyu-zoho-mail/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-byungkyu-zoho-mail/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":[]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-09T22:36:55.113Z"}},"retryPolicy":{"maxAttempts":3,"backoffMs":[500,1500,3500],"retryableConditions":["HTTP_429","HTTP_503","NETWORK_TIMEOUT"]}},"endpoints":{"dossierUrl":"https://www.xpersona.co/api/v1/agents/clawhub-byungkyu-zoho-mail/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-byungkyu-zoho-mail/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-byungkyu-zoho-mail/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-byungkyu-zoho-mail/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"high","updatedAt":"2026-04-15T00:45:39.800Z","emptyReason":null},"readme":"Skill: Zoho Mail\n\nOwner: byungkyu\n\nSummary: Zoho Mail API integration with managed OAuth. Send, receive, and manage emails, folders, and labels.\nUse this skill when users want to send emails, read messages, manage folders, or work with email labels in Zoho Mail.\nFor other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway).\nRequires network access and valid Maton API key.\n\nTags: latest:1.0.4\n\nVersion history:\n\nv1.0.4 | 2026-02-10T23:12:48.326Z | user\n\n- Added \"homepage\" field to metadata, linking to the Maton homepage.\n- No other changes detected.\n\nv1.0.3 | 2026-02-10T20:50:05.994Z | user\n\n- Added a new metadata section to declare emoji (🧠) and required environment variable (MATON_API_KEY) under the \"clawdbot\" key.\n- No changes to core functionality, API reference, or user instructions.\n- Documentation and description remain unchanged except for the updated metadata.\n\nv1.0.2 | 2026-02-10T12:53:06.823Z | user\n\n- No changes detected in this version.\n- Functionality, documentation, and configuration remain the same as the previous release.\n\nv1.0.1 | 2026-02-07T20:43:06.073Z | user\n\n- Skill name corrected from \"zohomail\" to \"zoho-mail\" in SKILL.md.\n- No code or feature changes detected; documentation only.\n\nv1.0.0 | 2026-02-06T12:09:02.851Z | user\n\n- Initial release of Zoho Mail skill with managed OAuth integration.\n- Send, receive, search, and manage emails, folders, and labels in Zoho Mail via Maton API gateway.\n- Full documentation on authentication, connection management, and API usage included.\n- Supports multiple connections with selectable active connection via header.\n- Examples provided for all major email, folder, and label operations.\n\nArchive index:\n\nArchive v1.0.4: 3 files, 5391 bytes\n\nFiles: LICENSE.txt (1072b), SKILL.md (16782b), _meta.json (128b)\n\nFile v1.0.4:SKILL.md\n\n---\nname: zoho-mail\ndescription: |\n  Zoho Mail API integration with managed OAuth. Send, receive, and manage emails, folders, and labels.\n  Use this skill when users want to send emails, read messages, manage folders, or work with email labels in Zoho Mail.\n  For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway).\n  Requires network access and valid Maton API key.\nmetadata:\n  author: maton\n  version: \"1.0\"\n  clawdbot:\n    emoji: 🧠\n    homepage: \"https://maton.ai\"\n    requires:\n      env:\n        - MATON_API_KEY\n---\n\n# 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\n## Quick Start\n\n```bash\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```\n\n## Base URL\n\n```\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\n## Authentication\n\nAll requests require the Maton API key in the Authorization header:\n\n```\nAuthorization: Bearer $MATON_API_KEY\n```\n\n**Environment Variable:** Set your API key as `MATON_API_KEY`:\n\n```bash\nexport MATON_API_KEY=\"YOUR_API_KEY\"\n```\n\n### Getting Your API Key\n\n1. Sign in or create an account at [maton.ai](https://maton.ai)\n2. Go to [maton.ai/settings](https://maton.ai/settings)\n3. Copy your API key\n\n## Connection Management\n\nManage your Zoho Mail OAuth connections at `https://ctrl.maton.ai`.\n\n### List Connections\n\n```bash\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```\n\n### Create Connection\n\n```bash\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```\n\n### Get Connection\n\n```bash\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\n**Response:**\n```json\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\n### Delete Connection\n\n```bash\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```\n\n### Specifying Connection\n\nIf you have multiple Zoho Mail connections, specify which one to use with the `Maton-Connection` header:\n\n```bash\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\n## API Reference\n\n### Account Operations\n\n#### Get All Accounts\n\nRetrieve all mail accounts for the authenticated user.\n\n```bash\nGET /zoho-mail/api/accounts\n```\n\n**Example:**\n\n```bash\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```\n\n#### Get Account Details\n\n```bash\nGET /zoho-mail/api/accounts/{accountId}\n```\n\n### Folder Operations\n\n#### List All Folders\n\n```bash\nGET /zoho-mail/api/accounts/{accountId}/folders\n```\n\n**Example:**\n\n```bash\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\n**Response:**\n```json\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```\n\n#### Create Folder\n\n```bash\nPOST /zoho-mail/api/accounts/{accountId}/folders\nContent-Type: application/json\n\n{\n  \"folderName\": \"My Custom Folder\"\n}\n```\n\n#### Rename Folder\n\n```bash\nPUT /zoho-mail/api/accounts/{accountId}/folders/{folderId}\nContent-Type: application/json\n\n{\n  \"folderName\": \"Renamed Folder\"\n}\n```\n\n#### Delete Folder\n\n```bash\nDELETE /zoho-mail/api/accounts/{accountId}/folders/{folderId}\n```\n\n### Label Operations\n\n#### List Labels\n\n```bash\nGET /zoho-mail/api/accounts/{accountId}/labels\n```\n\n**Example:**\n\n```bash\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```\n\n#### Create Label\n\n```bash\nPOST /zoho-mail/api/accounts/{accountId}/labels\nContent-Type: application/json\n\n{\n  \"labelName\": \"Important\"\n}\n```\n\n#### Update Label\n\n```bash\nPUT /zoho-mail/api/accounts/{accountId}/labels/{labelId}\nContent-Type: application/json\n\n{\n  \"labelName\": \"Updated Label\"\n}\n```\n\n#### Delete Label\n\n```bash\nDELETE /zoho-mail/api/accounts/{accountId}/labels/{labelId}\n```\n\n### Email Message Operations\n\n#### List Emails in Folder\n\n```bash\nGET /zoho-mail/api/accounts/{accountId}/messages/view?folderId={folderId}\n```\n\n**Query Parameters:**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `folderId` | long | Folder ID to list messages from |\n| `limit` | integer | Number of messages to return (default: 50) |\n| `start` | integer | Offset for pagination |\n| `sortBy` | string | Sort field (e.g., `date`) |\n| `sortOrder` | boolean | `true` for ascending, `false` for descending |\n\n**Example:**\n\n```bash\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```\n\n#### Search Emails\n\n```bash\nGET /zoho-mail/api/accounts/{accountId}/messages/search?searchKey={query}\n```\n\n**Query Parameters:**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `searchKey` | string | Search query |\n| `limit` | integer | Number of results to return |\n| `start` | integer | Offset for pagination |\n\n**Example:**\n\n```bash\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```\n\n#### Get Email Content\n\n```bash\nGET /zoho-mail/api/accounts/{accountId}/folders/{folderId}/messages/{messageId}/content\n```\n\n**Example:**\n\n```bash\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```\n\n#### Get Email Headers\n\n```bash\nGET /zoho-mail/api/accounts/{accountId}/folders/{folderId}/messages/{messageId}/header\n```\n\n#### Get Email Metadata\n\n```bash\nGET /zoho-mail/api/accounts/{accountId}/folders/{folderId}/messages/{messageId}/details\n```\n\n#### Get Original Message (MIME)\n\n```bash\nGET /zoho-mail/api/accounts/{accountId}/messages/{messageId}/originalmessage\n```\n\n#### Send Email\n\n```bash\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\n**Request Body Fields:**\n\n| Field | Type | Required | Description |\n|-------|------|----------|-------------|\n| `fromAddress` | string | Yes | Sender's email address |\n| `toAddress` | string | Yes | Recipient's email address |\n| `subject` | string | Yes | Email subject |\n| `content` | string | Yes | Email body content |\n| `ccAddress` | string | No | CC recipient |\n| `bccAddress` | string | No | BCC recipient |\n| `mailFormat` | string | No | `html` or `plaintext` (default: `html`) |\n| `askReceipt` | string | No | `yes` or `no` for read receipt |\n| `encoding` | string | No | Character encoding (default: `UTF-8`) |\n\n**Example - Send Email:**\n\n```bash\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\n**Scheduling Parameters (Optional):**\n\n| Field | Type | Description |\n|-------|------|-------------|\n| `isSchedule` | boolean | Enable scheduling |\n| `scheduleType` | integer | 1-5 for preset times; 6 for custom |\n| `timeZone` | string | Required if scheduleType=6 (e.g., `GMT 5:30`) |\n| `scheduleTime` | string | Required if scheduleType=6 (format: `MM/DD/YYYY HH:MM:SS`) |\n\n#### Reply to Email\n\n```bash\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```\n\n#### Save Draft\n\n```bash\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```\n\n#### Update Message (Mark as Read/Unread, Move, Flag)\n\n```bash\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\n**Mode Options:**\n- `markAsRead` - Mark messages as read\n- `markAsUnread` - Mark messages as unread\n- `moveMessage` - Move messages (requires `destfolderId`)\n- `flag` - Set flag (requires `flagid`: 1-4)\n- `archive` - Archive messages\n- `unArchive` - Unarchive messages\n- `spam` - Mark as spam\n- `notSpam` - Mark as not spam\n\n**Example - Mark as Read:**\n\n```bash\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```\n\n#### Delete Email\n\n```bash\nDELETE /zoho-mail/api/accounts/{accountId}/folders/{folderId}/messages/{messageId}\n```\n\n### Attachment Operations\n\n#### Upload Attachment\n\n```bash\nPOST /zoho-mail/api/accounts/{accountId}/messages/attachments\nContent-Type: multipart/form-data\n```\n\n#### Get Attachment Info\n\n```bash\nGET /zoho-mail/api/accounts/{accountId}/folders/{folderId}/messages/{messageId}/attachmentinfo\n```\n\n#### Download Attachment\n\n```bash\nGET /zoho-mail/api/accounts/{accountId}/folders/{folderId}/messages/{messageId}/attachments/{attachmentId}\n```\n\n## Pagination\n\nZoho Mail uses offset-based pagination:\n\n```bash\nGET /zoho-mail/api/accounts/{accountId}/messages/view?folderId={folderId}&start=0&limit=50\n```\n\n- `start`: Offset index (default: 0)\n- `limit`: Number of records to return (default: 50)\n\nFor subsequent pages, increment `start` by `limit`:\n- Page 1: `start=0&limit=50`\n- Page 2: `start=50&limit=50`\n- Page 3: `start=100&limit=50`\n\n## Code Examples\n\n### JavaScript\n\n```javascript\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```\n\n### Python\n\n```python\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```\n\n## Notes\n\n- Account IDs are required for most operations - first call `/api/accounts` to get your account ID\n- Message IDs and Folder IDs are numeric strings\n- The `fromAddress` must be associated with the authenticated account\n- Default folders include: Inbox, Drafts, Templates, Snoozed, Sent, Spam, Trash, Outbox\n- Supported encodings: Big5, EUC-JP, EUC-KR, GB2312, ISO-2022-JP, ISO-8859-1, KOI8-R, Shift_JIS, US-ASCII, UTF-8, WINDOWS-1251\n- Some 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\n- IMPORTANT: When using curl commands, use `curl -g` when URLs contain brackets to disable glob parsing\n- IMPORTANT: When piping curl output to `jq` or other commands, environment variables like `$MATON_API_KEY` may not expand correctly in some shell environments\n\n## Error Handling\n\n| Status | Meaning |\n|--------|---------|\n| 400 | Missing Zoho Mail connection or invalid request |\n| 401 | Invalid or missing Maton API key |\n| 429 | Rate limited |\n| 4xx/5xx | Passthrough error from Zoho Mail API |\n\n### Troubleshooting: API Key Issues\n\n1. Check that the `MATON_API_KEY` environment variable is set:\n\n```bash\necho $MATON_API_KEY\n```\n\n2. Verify the API key is valid by listing connections:\n\n```bash\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```\n\n### Troubleshooting: Invalid App Name\n\n1. Ensure your URL path starts with `zoho-mail`. For example:\n\n- Correct: `https://gateway.maton.ai/zoho-mail/api/accounts`\n- Incorrect: `https://gateway.maton.ai/api/accounts`\n\n## Resources\n\n- [Zoho Mail API Overview](https://www.zoho.com/mail/help/api/overview.html)\n- [Zoho Mail API Index](https://www.zoho.com/mail/help/api/)\n- [Email Messages API](https://www.zoho.com/mail/help/api/email-api.html)\n- [Getting Started with Zoho Mail API](https://www.zoho.com/mail/help/api/getting-started-with-api.html)\n- [Maton Community](https://discord.com/invite/dBfFAcefs2)\n- [Maton Support](mailto:support@maton.ai)\n\nFile v1.0.4:_meta.json\n\n{\n  \"ownerId\": \"kn75240wq8bnv2qm2xgry748jd80b9r0\",\n  \"slug\": \"zoho-mail\",\n  \"version\": \"1.0.4\",\n  \"publishedAt\": 1770765168326\n}\n\nFile v1.0.4:LICENSE.txt\n\nThe MIT License (MIT)\n\nCopyright (c) 2026 Maton\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\nArchive v1.0.3: 3 files, 5374 bytes\n\nFiles: LICENSE.txt (1072b), SKILL.md (16749b), _meta.json (128b)\n\nFile v1.0.3:SKILL.md\n\n---\nname: zoho-mail\ndescription: |\n  Zoho Mail API integration with managed OAuth. Send, receive, and manage emails, folders, and labels.\n  Use this skill when users want to send emails, read messages, manage folders, or work with email labels in Zoho Mail.\n  For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway).\n  Requires network access and valid Maton API key.\nmetadata:\n  author: maton\n  version: \"1.0\"\n  clawdbot:\n    emoji: 🧠\n    requires:\n      env:\n        - MATON_API_KEY\n---\n\n# 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\n## Quick Start\n\n```bash\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```\n\n## Base URL\n\n```\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\n## Authentication\n\nAll requests require the Maton API key in the Authorization header:\n\n```\nAuthorization: Bearer $MATON_API_KEY\n```\n\n**Environment Variable:** Set your API key as `MATON_API_KEY`:\n\n```bash\nexport MATON_API_KEY=\"YOUR_API_KEY\"\n```\n\n### Getting Your API Key\n\n1. Sign in or create an account at [maton.ai](https://maton.ai)\n2. Go to [maton.ai/settings](https://maton.ai/settings)\n3. Copy your API key\n\n## Connection Management\n\nManage your Zoho Mail OAuth connections at `https://ctrl.maton.ai`.\n\n### List Connections\n\n```bash\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```\n\n### Create Connection\n\n```bash\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```\n\n### Get Connection\n\n```bash\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\n**Response:**\n```json\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\n### Delete Connection\n\n```bash\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```\n\n### Specifying Connection\n\nIf you have multiple Zoho Mail connections, specify which one to use with the `Maton-Connection` header:\n\n```bash\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\n## API Reference\n\n### Account Operations\n\n#### Get All Accounts\n\nRetrieve all mail accounts for the authenticated user.\n\n```bash\nGET /zoho-mail/api/accounts\n```\n\n**Example:**\n\n```bash\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```\n\n#### Get Account Details\n\n```bash\nGET /zoho-mail/api/accounts/{accountId}\n```\n\n### Folder Operations\n\n#### List All Folders\n\n```bash\nGET /zoho-mail/api/accounts/{accountId}/folders\n```\n\n**Example:**\n\n```bash\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\n**Response:**\n```json\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```\n\n#### Create Folder\n\n```bash\nPOST /zoho-mail/api/accounts/{accountId}/folders\nContent-Type: application/json\n\n{\n  \"folderName\": \"My Custom Folder\"\n}\n```\n\n#### Rename Folder\n\n```bash\nPUT /zoho-mail/api/accounts/{accountId}/folders/{folderId}\nContent-Type: application/json\n\n{\n  \"folderName\": \"Renamed Folder\"\n}\n```\n\n#### Delete Folder\n\n```bash\nDELETE /zoho-mail/api/accounts/{accountId}/folders/{folderId}\n```\n\n### Label Operations\n\n#### List Labels\n\n```bash\nGET /zoho-mail/api/accounts/{accountId}/labels\n```\n\n**Example:**\n\n```bash\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```\n\n#### Create Label\n\n```bash\nPOST /zoho-mail/api/accounts/{accountId}/labels\nContent-Type: application/json\n\n{\n  \"labelName\": \"Important\"\n}\n```\n\n#### Update Label\n\n```bash\nPUT /zoho-mail/api/accounts/{accountId}/labels/{labelId}\nContent-Type: application/json\n\n{\n  \"labelName\": \"Updated Label\"\n}\n```\n\n#### Delete Label\n\n```bash\nDELETE /zoho-mail/api/accounts/{accountId}/labels/{labelId}\n```\n\n### Email Message Operations\n\n#### List Emails in Folder\n\n```bash\nGET /zoho-mail/api/accounts/{accountId}/messages/view?folderId={folderId}\n```\n\n**Query Parameters:**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `folderId` | long | Folder ID to list messages from |\n| `limit` | integer | Number of messages to return (default: 50) |\n| `start` | integer | Offset for pagination |\n| `sortBy` | string | Sort field (e.g., `date`) |\n| `sortOrder` | boolean | `true` for ascending, `false` for descending |\n\n**Example:**\n\n```bash\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```\n\n#### Search Emails\n\n```bash\nGET /zoho-mail/api/accounts/{accountId}/messages/search?searchKey={query}\n```\n\n**Query Parameters:**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `searchKey` | string | Search query |\n| `limit` | integer | Number of results to return |\n| `start` | integer | Offset for pagination |\n\n**Example:**\n\n```bash\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```\n\n#### Get Email Content\n\n```bash\nGET /zoho-mail/api/accounts/{accountId}/folders/{folderId}/messages/{messageId}/content\n```\n\n**Example:**\n\n```bash\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```\n\n#### Get Email Headers\n\n```bash\nGET /zoho-mail/api/accounts/{accountId}/folders/{folderId}/messages/{messageId}/header\n```\n\n#### Get Email Metadata\n\n```bash\nGET /zoho-mail/api/accounts/{accountId}/folders/{folderId}/messages/{messageId}/details\n```\n\n#### Get Original Message (MIME)\n\n```bash\nGET /zoho-mail/api/accounts/{accountId}/messages/{messageId}/originalmessage\n```\n\n#### Send Email\n\n```bash\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\n**Request Body Fields:**\n\n| Field | Type | Required | Description |\n|-------|------|----------|-------------|\n| `fromAddress` | string | Yes | Sender's email address |\n| `toAddress` | string | Yes | Recipient's email address |\n| `subject` | string | Yes | Email subject |\n| `content` | string | Yes | Email body content |\n| `ccAddress` | string | No | CC recipient |\n| `bccAddress` | string | No | BCC recipient |\n| `mailFormat` | string | No | `html` or `plaintext` (default: `html`) |\n| `askReceipt` | string | No | `yes` or `no` for read receipt |\n| `encoding` | string | No | Character encoding (default: `UTF-8`) |\n\n**Example - Send Email:**\n\n```bash\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\n**Scheduling Parameters (Optional):**\n\n| Field | Type | Description |\n|-------|------|-------------|\n| `isSchedule` | boolean | Enable scheduling |\n| `scheduleType` | integer | 1-5 for preset times; 6 for custom |\n| `timeZone` | string | Required if scheduleType=6 (e.g., `GMT 5:30`) |\n| `scheduleTime` | string | Required if scheduleType=6 (format: `MM/DD/YYYY HH:MM:SS`) |\n\n#### Reply to Email\n\n```bash\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```\n\n#### Save Draft\n\n```bash\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```\n\n#### Update Message (Mark as Read/Unread, Move, Flag)\n\n```bash\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\n**Mode Options:**\n- `markAsRead` - Mark messages as read\n- `markAsUnread` - Mark messages as unread\n- `moveMessage` - Move messages (requires `destfolderId`)\n- `flag` - Set flag (requires `flagid`: 1-4)\n- `archive` - Archive messages\n- `unArchive` - Unarchive messages\n- `spam` - Mark as spam\n- `notSpam` - Mark as not spam\n\n**Example - Mark as Read:**\n\n```bash\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```\n\n#### Delete Email\n\n```bash\nDELETE /zoho-mail/api/accounts/{accountId}/folders/{folderId}/messages/{messageId}\n```\n\n### Attachment Operations\n\n#### Upload Attachment\n\n```bash\nPOST /zoho-mail/api/accounts/{accountId}/messages/attachments\nContent-Type: multipart/form-data\n```\n\n#### Get Attachment Info\n\n```bash\nGET /zoho-mail/api/accounts/{accountId}/folders/{folderId}/messages/{messageId}/attachmentinfo\n```\n\n#### Download Attachment\n\n```bash\nGET /zoho-mail/api/accounts/{accountId}/folders/{folderId}/messages/{messageId}/attachments/{attachmentId}\n```\n\n## Pagination\n\nZoho Mail uses offset-based pagination:\n\n```bash\nGET /zoho-mail/api/accounts/{accountId}/messages/view?folderId={folderId}&start=0&limit=50\n```\n\n- `start`: Offset index (default: 0)\n- `limit`: Number of records to return (default: 50)\n\nFor subsequent pages, increment `start` by `limit`:\n- Page 1: `start=0&limit=50`\n- Page 2: `start=50&limit=50`\n- Page 3: `start=100&limit=50`\n\n## Code Examples\n\n### JavaScript\n\n```javascript\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```\n\n### Python\n\n```python\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```\n\n## Notes\n\n- Account IDs are required for most operations - first call `/api/accounts` to get your account ID\n- Message IDs and Folder IDs are numeric strings\n- The `fromAddress` must be associated with the authenticated account\n- Default folders include: Inbox, Drafts, Templates, Snoozed, Sent, Spam, Trash, Outbox\n- Supported encodings: Big5, EUC-JP, EUC-KR, GB2312, ISO-2022-JP, ISO-8859-1, KOI8-R, Shift_JIS, US-ASCII, UTF-8, WINDOWS-1251\n- Some 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\n- IMPORTANT: When using curl commands, use `curl -g` when URLs contain brackets to disable glob parsing\n- IMPORTANT: When piping curl output to `jq` or other commands, environment variables like `$MATON_API_KEY` may not expand correctly in some shell environments\n\n## Error Handling\n\n| Status | Meaning |\n|--------|---------|\n| 400 | Missing Zoho Mail connection or invalid request |\n| 401 | Invalid or missing Maton API key |\n| 429 | Rate limited |\n| 4xx/5xx | Passthrough error from Zoho Mail API |\n\n### Troubleshooting: API Key Issues\n\n1. Check that the `MATON_API_KEY` environment variable is set:\n\n```bash\necho $MATON_API_KEY\n```\n\n2. Verify the API key is valid by listing connections:\n\n```bash\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```\n\n### Troubleshooting: Invalid App Name\n\n1. Ensure your URL path starts with `zoho-mail`. For example:\n\n- Correct: `https://gateway.maton.ai/zoho-mail/api/accounts`\n- Incorrect: `https://gateway.maton.ai/api/accounts`\n\n## Resources\n\n- [Zoho Mail API Overview](https://www.zoho.com/mail/help/api/overview.html)\n- [Zoho Mail API Index](https://www.zoho.com/mail/help/api/)\n- [Email Messages API](https://www.zoho.com/mail/help/api/email-api.html)\n- [Getting Started with Zoho Mail API](https://www.zoho.com/mail/help/api/getting-started-with-api.html)\n- [Maton Community](https://discord.com/invite/dBfFAcefs2)\n- [Maton Support](mailto:support@maton.ai)\n\nFile v1.0.3:_meta.json\n\n{\n  \"ownerId\": \"kn75240wq8bnv2qm2xgry748jd80b9r0\",\n  \"slug\": \"zoho-mail\",\n  \"version\": \"1.0.3\",\n  \"publishedAt\": 1770756605994\n}\n\nFile v1.0.3:LICENSE.txt\n\nThe MIT License (MIT)\n\nCopyright (c) 2026 Maton\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","readmeExcerpt":"Skill: Zoho Mail Owner: byungkyu Summary: Zoho Mail API integration with managed OAuth. Send, receive, and manage emails, folders, and labels. Use this skill when users want to send emails, read messages, manage folders, or work with email labels in Zoho Mail. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway). Requires network access and valid Maton API key. Tags: latest:","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"# 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"},{"language":"text","snippet":"https://gateway.maton.ai/zoho-mail/{native-api-path}"},{"language":"text","snippet":"Authorization: Bearer $MATON_API_KEY"},{"language":"bash","snippet":"export MATON_API_KEY=\"YOUR_API_KEY\""},{"language":"bash","snippet":"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"},{"language":"bash","snippet":"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"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: zoho-mail\ndescription: |\n  Zoho Mail API integration with managed OAuth. Send, receive, and manage emails, folders, and labels.\n  Use this skill when users want to send emails, read messages, manage folders, or work with email labels in Zoho Mail.\n  For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway).\n  Requires network access and valid Maton API key.\nmetadata:\n  author: maton\n  version: \"1.0\"\n  clawdbot:\n    emoji: 🧠\n    homepage: \"https://maton.ai\"\n    requires:\n      env:\n        - MATON_API_KEY\n---\n\n# 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\n## Quick Start\n\n```bash\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```\n\n## Base URL\n\n```\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\n## Authentication\n\nAll requests require the Maton API key in the Authorization header:\n\n```\nAuthorization: Bearer $MATON_API_KEY\n```\n\n**Environment Variable:** Set your API key as `MATON_API_KEY`:\n\n```bash\nexport MATON_API_KEY=\"YOUR_API_KEY\"\n```\n\n### Getting Your API Key\n\n1. Sign in or create an account at [maton.ai](https://maton.ai)\n2. Go to [maton.ai/settings](https://maton.ai/settings)\n3. Copy your API key\n\n## Connection Management\n\nManage your Zoho Mail OAuth connections at `https://ctrl.maton.ai`.\n\n### List Connections\n\n```bash\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```\n\n### Create Connection\n\n```bash\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```\n\n### Get Connection\n\n```bash\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\n**Response:**\n```json\n{\n  \"connection\": {\n    \"connection_id\": \"21fd90f9-5935-43cd-b6c8-bde9d915ca80\",\n    \"status\": \"ACTIVE\",\n    \"creation_time\": \"2025-12-08T07"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn75240wq8bnv2qm2xgry748jd80b9r0\",\n  \"slug\": \"zoho-mail\",\n  \"version\": \"1.0.4\",\n  \"publishedAt\": 1770765168326\n}"},{"path":"LICENSE.txt","content":"The MIT License (MIT)\n\nCopyright (c) 2026 Maton\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE."}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":"Zoho Mail API integration with managed OAuth. Send, receive, and manage emails, folders, and labels. Use this skill when users want to send emails, read messages, manage folders, or work with email labels in Zoho Mail. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway). Requires network access and valid Maton API key. Skill: Zoho Mail Owner: byungkyu Summary: Zoho Mail API integration with managed OAuth. Send, receive, and manage emails, folders, and labels. Use this skill when users want to send emails, read messages, manage folders, or work with email labels in Zoho Mail. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway). Requires network access and valid Maton API key. Tags: latest:","editorialQuality":{"score":100,"threshold":65,"status":"ready","wordCount":977,"uniquenessScore":47,"reasons":[]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-04-15T00:45:39.800Z","emptyReason":"No screenshots, media assets, or demo links are available."},"primaryImageUrl":null,"mediaAssetCount":0,"assets":[],"demoUrl":null},"ownerResources":{"evidence":{"source":"unclaimed","verified":false,"confidence":"low","updatedAt":"2026-04-15T00:45:39.800Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"agent-directory","verified":false,"confidence":"low","updatedAt":"2026-10-09T22:36:55.113Z","emptyReason":"No close protocol neighbors were found."},"items":[],"links":{"hub":"/agent","source":"/agent/source/clawhub","protocols":[]}}}