{
  "schemaVersion": "1.0",
  "item": {
    "slug": "outlook-api",
    "name": "Outlook",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/byungkyu/outlook-api",
    "canonicalUrl": "https://clawhub.ai/byungkyu/outlook-api",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/outlook-api",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=outlook-api",
    "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-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-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/outlook-api"
    },
    "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/outlook-api",
    "agentPageUrl": "https://openagent3.xyz/skills/outlook-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/outlook-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/outlook-api/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": "Outlook",
        "body": "Access the Microsoft Outlook API (via Microsoft Graph) with managed OAuth authentication. Read, send, and manage emails, folders, calendar events, and contacts."
      },
      {
        "title": "Quick Start",
        "body": "# Get user profile\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/outlook/v1.0/me')\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/outlook/{native-api-path}\n\nReplace {native-api-path} with the actual Microsoft Graph API endpoint path. The gateway proxies requests to graph.microsoft.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 Microsoft 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=outlook&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': 'outlook'}).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\": \"outlook\",\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 Outlook 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/outlook/v1.0/me')\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": "User Profile",
        "body": "GET /outlook/v1.0/me"
      },
      {
        "title": "Mail Folders",
        "body": "List Mail Folders\n\nGET /outlook/v1.0/me/mailFolders\n\nGet Mail Folder\n\nGET /outlook/v1.0/me/mailFolders/{folderId}\n\nWell-known folder names: Inbox, Drafts, SentItems, DeletedItems, Archive, JunkEmail\n\nCreate Mail Folder\n\nPOST /outlook/v1.0/me/mailFolders\nContent-Type: application/json\n\n{\n  \"displayName\": \"My Folder\"\n}\n\nDelete Mail Folder\n\nDELETE /outlook/v1.0/me/mailFolders/{folderId}\n\nList Child Folders\n\nGET /outlook/v1.0/me/mailFolders/{folderId}/childFolders"
      },
      {
        "title": "Messages",
        "body": "List Messages\n\nGET /outlook/v1.0/me/messages\n\nFrom specific folder:\n\nGET /outlook/v1.0/me/mailFolders/Inbox/messages\n\nWith query filter:\n\nGET /outlook/v1.0/me/messages?$filter=isRead eq false&$top=10\n\nGet Message\n\nGET /outlook/v1.0/me/messages/{messageId}\n\nCreate Draft\n\nPOST /outlook/v1.0/me/messages\nContent-Type: application/json\n\n{\n  \"subject\": \"Hello\",\n  \"body\": {\n    \"contentType\": \"Text\",\n    \"content\": \"This is the email body.\"\n  },\n  \"toRecipients\": [\n    {\n      \"emailAddress\": {\n        \"address\": \"recipient@example.com\"\n      }\n    }\n  ]\n}\n\nSend Message\n\nPOST /outlook/v1.0/me/sendMail\nContent-Type: application/json\n\n{\n  \"message\": {\n    \"subject\": \"Hello\",\n    \"body\": {\n      \"contentType\": \"Text\",\n      \"content\": \"This is the email body.\"\n    },\n    \"toRecipients\": [\n      {\n        \"emailAddress\": {\n          \"address\": \"recipient@example.com\"\n        }\n      }\n    ]\n  },\n  \"saveToSentItems\": true\n}\n\nSend Existing Draft\n\nPOST /outlook/v1.0/me/messages/{messageId}/send\n\nUpdate Message\n\nPATCH /outlook/v1.0/me/messages/{messageId}\nContent-Type: application/json\n\n{\n  \"isRead\": true\n}\n\nDelete Message\n\nDELETE /outlook/v1.0/me/messages/{messageId}\n\nMove Message\n\nPOST /outlook/v1.0/me/messages/{messageId}/move\nContent-Type: application/json\n\n{\n  \"destinationId\": \"{folderId}\"\n}"
      },
      {
        "title": "Calendar",
        "body": "List Calendars\n\nGET /outlook/v1.0/me/calendars\n\nList Events\n\nGET /outlook/v1.0/me/calendar/events\n\nWith date filter:\n\nGET /outlook/v1.0/me/calendar/events?$filter=start/dateTime ge '2024-01-01'&$top=10\n\nGet Event\n\nGET /outlook/v1.0/me/events/{eventId}\n\nCreate Event\n\nPOST /outlook/v1.0/me/calendar/events\nContent-Type: application/json\n\n{\n  \"subject\": \"Meeting\",\n  \"start\": {\n    \"dateTime\": \"2024-01-15T10:00:00\",\n    \"timeZone\": \"UTC\"\n  },\n  \"end\": {\n    \"dateTime\": \"2024-01-15T11:00:00\",\n    \"timeZone\": \"UTC\"\n  },\n  \"attendees\": [\n    {\n      \"emailAddress\": {\n        \"address\": \"attendee@example.com\"\n      },\n      \"type\": \"required\"\n    }\n  ]\n}\n\nDelete Event\n\nDELETE /outlook/v1.0/me/events/{eventId}"
      },
      {
        "title": "Contacts",
        "body": "List Contacts\n\nGET /outlook/v1.0/me/contacts\n\nGet Contact\n\nGET /outlook/v1.0/me/contacts/{contactId}\n\nCreate Contact\n\nPOST /outlook/v1.0/me/contacts\nContent-Type: application/json\n\n{\n  \"givenName\": \"John\",\n  \"surname\": \"Doe\",\n  \"emailAddresses\": [\n    {\n      \"address\": \"john.doe@example.com\"\n    }\n  ]\n}\n\nDelete Contact\n\nDELETE /outlook/v1.0/me/contacts/{contactId}"
      },
      {
        "title": "Query Parameters",
        "body": "Use OData query parameters:\n\n$top=10 - Limit results\n$skip=20 - Skip results (pagination)\n$select=subject,from - Select specific fields\n$filter=isRead eq false - Filter results\n$orderby=receivedDateTime desc - Sort results\n$search=\"keyword\" - Search content"
      },
      {
        "title": "JavaScript",
        "body": "const response = await fetch(\n  'https://gateway.maton.ai/outlook/v1.0/me/messages?$top=10',\n  {\n    headers: {\n      'Authorization': `Bearer ${process.env.MATON_API_KEY}`\n    }\n  }\n);"
      },
      {
        "title": "Python",
        "body": "import os\nimport requests\n\nresponse = requests.get(\n    'https://gateway.maton.ai/outlook/v1.0/me/messages',\n    headers={'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'},\n    params={'$top': 10, '$filter': 'isRead eq false'}\n)"
      },
      {
        "title": "Notes",
        "body": "Use me as the user identifier for the authenticated user\nMessage body content types: Text or HTML\nWell-known folder names work as folder IDs: Inbox, Drafts, SentItems, etc.\nCalendar events use ISO 8601 datetime format\nIMPORTANT: When using curl commands, use curl -g when URLs contain brackets (fields[], sort[], records[]) 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. You may get \"Invalid API key\" errors when piping."
      },
      {
        "title": "Error Handling",
        "body": "StatusMeaning400Missing Outlook connection401Invalid or missing Maton API key429Rate limited (10 req/sec per account)4xx/5xxPassthrough error from Microsoft Graph 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 outlook. For example:\n\nCorrect: https://gateway.maton.ai/outlook/v1.0/me/messages\nIncorrect: https://gateway.maton.ai/v1.0/me/messages"
      },
      {
        "title": "Resources",
        "body": "Microsoft Graph API Overview\nMail API\nCalendar API\nContacts API\nQuery Parameters\nMaton Community\nMaton Support"
      }
    ],
    "body": "Outlook\n\nAccess the Microsoft Outlook API (via Microsoft Graph) with managed OAuth authentication. Read, send, and manage emails, folders, calendar events, and contacts.\n\nQuick Start\n# Get user profile\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/outlook/v1.0/me')\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/outlook/{native-api-path}\n\n\nReplace {native-api-path} with the actual Microsoft Graph API endpoint path. The gateway proxies requests to graph.microsoft.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 Microsoft 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=outlook&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': 'outlook'}).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\": \"outlook\",\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 Outlook 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/outlook/v1.0/me')\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\nUser Profile\nGET /outlook/v1.0/me\n\nMail Folders\nList Mail Folders\nGET /outlook/v1.0/me/mailFolders\n\nGet Mail Folder\nGET /outlook/v1.0/me/mailFolders/{folderId}\n\n\nWell-known folder names: Inbox, Drafts, SentItems, DeletedItems, Archive, JunkEmail\n\nCreate Mail Folder\nPOST /outlook/v1.0/me/mailFolders\nContent-Type: application/json\n\n{\n  \"displayName\": \"My Folder\"\n}\n\nDelete Mail Folder\nDELETE /outlook/v1.0/me/mailFolders/{folderId}\n\nList Child Folders\nGET /outlook/v1.0/me/mailFolders/{folderId}/childFolders\n\nMessages\nList Messages\nGET /outlook/v1.0/me/messages\n\n\nFrom specific folder:\n\nGET /outlook/v1.0/me/mailFolders/Inbox/messages\n\n\nWith query filter:\n\nGET /outlook/v1.0/me/messages?$filter=isRead eq false&$top=10\n\nGet Message\nGET /outlook/v1.0/me/messages/{messageId}\n\nCreate Draft\nPOST /outlook/v1.0/me/messages\nContent-Type: application/json\n\n{\n  \"subject\": \"Hello\",\n  \"body\": {\n    \"contentType\": \"Text\",\n    \"content\": \"This is the email body.\"\n  },\n  \"toRecipients\": [\n    {\n      \"emailAddress\": {\n        \"address\": \"recipient@example.com\"\n      }\n    }\n  ]\n}\n\nSend Message\nPOST /outlook/v1.0/me/sendMail\nContent-Type: application/json\n\n{\n  \"message\": {\n    \"subject\": \"Hello\",\n    \"body\": {\n      \"contentType\": \"Text\",\n      \"content\": \"This is the email body.\"\n    },\n    \"toRecipients\": [\n      {\n        \"emailAddress\": {\n          \"address\": \"recipient@example.com\"\n        }\n      }\n    ]\n  },\n  \"saveToSentItems\": true\n}\n\nSend Existing Draft\nPOST /outlook/v1.0/me/messages/{messageId}/send\n\nUpdate Message\nPATCH /outlook/v1.0/me/messages/{messageId}\nContent-Type: application/json\n\n{\n  \"isRead\": true\n}\n\nDelete Message\nDELETE /outlook/v1.0/me/messages/{messageId}\n\nMove Message\nPOST /outlook/v1.0/me/messages/{messageId}/move\nContent-Type: application/json\n\n{\n  \"destinationId\": \"{folderId}\"\n}\n\nCalendar\nList Calendars\nGET /outlook/v1.0/me/calendars\n\nList Events\nGET /outlook/v1.0/me/calendar/events\n\n\nWith date filter:\n\nGET /outlook/v1.0/me/calendar/events?$filter=start/dateTime ge '2024-01-01'&$top=10\n\nGet Event\nGET /outlook/v1.0/me/events/{eventId}\n\nCreate Event\nPOST /outlook/v1.0/me/calendar/events\nContent-Type: application/json\n\n{\n  \"subject\": \"Meeting\",\n  \"start\": {\n    \"dateTime\": \"2024-01-15T10:00:00\",\n    \"timeZone\": \"UTC\"\n  },\n  \"end\": {\n    \"dateTime\": \"2024-01-15T11:00:00\",\n    \"timeZone\": \"UTC\"\n  },\n  \"attendees\": [\n    {\n      \"emailAddress\": {\n        \"address\": \"attendee@example.com\"\n      },\n      \"type\": \"required\"\n    }\n  ]\n}\n\nDelete Event\nDELETE /outlook/v1.0/me/events/{eventId}\n\nContacts\nList Contacts\nGET /outlook/v1.0/me/contacts\n\nGet Contact\nGET /outlook/v1.0/me/contacts/{contactId}\n\nCreate Contact\nPOST /outlook/v1.0/me/contacts\nContent-Type: application/json\n\n{\n  \"givenName\": \"John\",\n  \"surname\": \"Doe\",\n  \"emailAddresses\": [\n    {\n      \"address\": \"john.doe@example.com\"\n    }\n  ]\n}\n\nDelete Contact\nDELETE /outlook/v1.0/me/contacts/{contactId}\n\nQuery Parameters\n\nUse OData query parameters:\n\n$top=10 - Limit results\n$skip=20 - Skip results (pagination)\n$select=subject,from - Select specific fields\n$filter=isRead eq false - Filter results\n$orderby=receivedDateTime desc - Sort results\n$search=\"keyword\" - Search content\nCode Examples\nJavaScript\nconst response = await fetch(\n  'https://gateway.maton.ai/outlook/v1.0/me/messages?$top=10',\n  {\n    headers: {\n      'Authorization': `Bearer ${process.env.MATON_API_KEY}`\n    }\n  }\n);\n\nPython\nimport os\nimport requests\n\nresponse = requests.get(\n    'https://gateway.maton.ai/outlook/v1.0/me/messages',\n    headers={'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'},\n    params={'$top': 10, '$filter': 'isRead eq false'}\n)\n\nNotes\nUse me as the user identifier for the authenticated user\nMessage body content types: Text or HTML\nWell-known folder names work as folder IDs: Inbox, Drafts, SentItems, etc.\nCalendar events use ISO 8601 datetime format\nIMPORTANT: When using curl commands, use curl -g when URLs contain brackets (fields[], sort[], records[]) 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. You may get \"Invalid API key\" errors when piping.\nError Handling\nStatus\tMeaning\n400\tMissing Outlook connection\n401\tInvalid or missing Maton API key\n429\tRate limited (10 req/sec per account)\n4xx/5xx\tPassthrough error from Microsoft Graph 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 outlook. For example:\nCorrect: https://gateway.maton.ai/outlook/v1.0/me/messages\nIncorrect: https://gateway.maton.ai/v1.0/me/messages\nResources\nMicrosoft Graph API Overview\nMail API\nCalendar API\nContacts API\nQuery Parameters\nMaton Community\nMaton Support"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/byungkyu/outlook-api",
    "publisherUrl": "https://clawhub.ai/byungkyu/outlook-api",
    "owner": "byungkyu",
    "version": "1.0.3",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/outlook-api",
    "downloadUrl": "https://openagent3.xyz/downloads/outlook-api",
    "agentUrl": "https://openagent3.xyz/skills/outlook-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/outlook-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/outlook-api/agent.md"
  }
}