{
  "schemaVersion": "1.0",
  "item": {
    "slug": "microsoft-teams",
    "name": "Microsoft Teams",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/byungkyu/microsoft-teams",
    "canonicalUrl": "https://clawhub.ai/byungkyu/microsoft-teams",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/microsoft-teams",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=microsoft-teams",
    "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/microsoft-teams"
    },
    "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/microsoft-teams",
    "agentPageUrl": "https://openagent3.xyz/skills/microsoft-teams/agent",
    "manifestUrl": "https://openagent3.xyz/skills/microsoft-teams/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/microsoft-teams/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": "Microsoft Teams",
        "body": "Access the Microsoft Teams API with managed OAuth authentication via Microsoft Graph. Manage teams, channels, messages, meetings, and access recordings and transcripts."
      },
      {
        "title": "Quick Start",
        "body": "# List user's joined teams\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/microsoft-teams/v1.0/me/joinedTeams')\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/microsoft-teams/{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 Teams 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=microsoft-teams&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': 'microsoft-teams'}).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\": \"fb0fdc4a-0b5a-40cf-8b92-3bdae848cde3\",\n    \"status\": \"ACTIVE\",\n    \"creation_time\": \"2026-02-17T09:51:21.074601Z\",\n    \"last_updated_time\": \"2026-02-17T09:51:34.323814Z\",\n    \"url\": \"https://connect.maton.ai/?session_token=...\",\n    \"app\": \"microsoft-teams\",\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 Microsoft Teams 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/microsoft-teams/v1.0/me/joinedTeams')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Maton-Connection', 'fb0fdc4a-0b5a-40cf-8b92-3bdae848cde3')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nIf omitted, the gateway uses the default (oldest) active connection."
      },
      {
        "title": "Teams",
        "body": "List Joined Teams\n\nGET /microsoft-teams/v1.0/me/joinedTeams\n\nResponse:\n\n{\n  \"@odata.context\": \"https://graph.microsoft.com/v1.0/$metadata#teams\",\n  \"@odata.count\": 1,\n  \"value\": [\n    {\n      \"id\": \"b643f103-870d-4f98-a23d-e6f164fae33e\",\n      \"displayName\": \"carvedai.com\",\n      \"description\": null,\n      \"isArchived\": false,\n      \"tenantId\": \"cb83c3f9-6d16-4cf3-bd8c-ab16b37932f9\"\n    }\n  ]\n}\n\nGet Team\n\nGET /microsoft-teams/v1.0/teams/{team-id}"
      },
      {
        "title": "Channels",
        "body": "List Channels\n\nGET /microsoft-teams/v1.0/teams/{team-id}/channels\n\nResponse:\n\n{\n  \"@odata.context\": \"https://graph.microsoft.com/v1.0/$metadata#teams('...')/channels\",\n  \"@odata.count\": 1,\n  \"value\": [\n    {\n      \"id\": \"19:9fwtZjo3IM0D8bLdQqR-_oMFw1eUDlzWjPfIhNGhVd41@thread.tacv2\",\n      \"createdDateTime\": \"2026-02-16T20:09:27.254Z\",\n      \"displayName\": \"General\",\n      \"description\": null,\n      \"email\": \"carvedai.com473@carvedai.com\",\n      \"membershipType\": \"standard\",\n      \"isArchived\": false\n    }\n  ]\n}\n\nList Private Channels\n\nGET /microsoft-teams/v1.0/teams/{team-id}/channels?$filter=membershipType eq 'private'\n\nGet Channel\n\nGET /microsoft-teams/v1.0/teams/{team-id}/channels/{channel-id}\n\nCreate Channel\n\nPOST /microsoft-teams/v1.0/teams/{team-id}/channels\nContent-Type: application/json\n\n{\n  \"displayName\": \"New Channel\",\n  \"description\": \"Channel description\",\n  \"membershipType\": \"standard\"\n}\n\nResponse:\n\n{\n  \"id\": \"19:3b3361df822044558a062bb1a4ac8357@thread.tacv2\",\n  \"createdDateTime\": \"2026-02-17T20:24:33.9284462Z\",\n  \"displayName\": \"Maton Test Channel\",\n  \"description\": \"Channel created by Maton integration test\",\n  \"membershipType\": \"standard\",\n  \"isArchived\": false\n}\n\nUpdate Channel\n\nPATCH /microsoft-teams/v1.0/teams/{team-id}/channels/{channel-id}\nContent-Type: application/json\n\n{\n  \"description\": \"Updated description\"\n}\n\nReturns 204 No Content on success. Note: The default \"General\" channel cannot be updated.\n\nDelete Channel\n\nDELETE /microsoft-teams/v1.0/teams/{team-id}/channels/{channel-id}\n\nReturns 204 No Content on success."
      },
      {
        "title": "Channel Members",
        "body": "List Channel Members\n\nGET /microsoft-teams/v1.0/teams/{team-id}/channels/{channel-id}/members\n\nResponse:\n\n{\n  \"@odata.count\": 1,\n  \"value\": [\n    {\n      \"@odata.type\": \"#microsoft.graph.aadUserConversationMember\",\n      \"id\": \"MCMjMiMj...\",\n      \"roles\": [\"owner\"],\n      \"displayName\": \"Kevin Kim\",\n      \"userId\": \"5f56d55b-2ffb-448d-982a-b52547431f71\",\n      \"email\": \"richard@carvedai.com\"\n    }\n  ]\n}"
      },
      {
        "title": "Messages",
        "body": "List Channel Messages\n\nGET /microsoft-teams/v1.0/teams/{team-id}/channels/{channel-id}/messages\n\nSend Message to Channel\n\nPOST /microsoft-teams/v1.0/teams/{team-id}/channels/{channel-id}/messages\nContent-Type: application/json\n\n{\n  \"body\": {\n    \"content\": \"Hello World\"\n  }\n}\n\nResponse:\n\n{\n  \"id\": \"1771359569239\",\n  \"replyToId\": null,\n  \"messageType\": \"message\",\n  \"createdDateTime\": \"2026-02-17T20:19:29.239Z\",\n  \"importance\": \"normal\",\n  \"locale\": \"en-us\",\n  \"from\": {\n    \"user\": {\n      \"id\": \"5f56d55b-2ffb-448d-982a-b52547431f71\",\n      \"displayName\": \"Kevin Kim\",\n      \"userIdentityType\": \"aadUser\",\n      \"tenantId\": \"cb83c3f9-6d16-4cf3-bd8c-ab16b37932f9\"\n    }\n  },\n  \"body\": {\n    \"contentType\": \"text\",\n    \"content\": \"Hello World\"\n  },\n  \"channelIdentity\": {\n    \"teamId\": \"b643f103-870d-4f98-a23d-e6f164fae33e\",\n    \"channelId\": \"19:9fwtZjo3IM0D8bLdQqR-_oMFw1eUDlzWjPfIhNGhVd41@thread.tacv2\"\n  }\n}\n\nSend HTML Message\n\nPOST /microsoft-teams/v1.0/teams/{team-id}/channels/{channel-id}/messages\nContent-Type: application/json\n\n{\n  \"body\": {\n    \"contentType\": \"html\",\n    \"content\": \"<h1>Hello</h1><p>This is <strong>formatted</strong> content.</p>\"\n  }\n}\n\nReply to Message\n\nPOST /microsoft-teams/v1.0/teams/{team-id}/channels/{channel-id}/messages/{message-id}/replies\nContent-Type: application/json\n\n{\n  \"body\": {\n    \"content\": \"This is a reply\"\n  }\n}\n\nList Message Replies\n\nGET /microsoft-teams/v1.0/teams/{team-id}/channels/{channel-id}/messages/{message-id}/replies\n\nEdit Message\n\nPATCH /microsoft-teams/v1.0/teams/{team-id}/channels/{channel-id}/messages/{message-id}\nContent-Type: application/json\n\n{\n  \"body\": {\n    \"content\": \"Updated message content\"\n  }\n}\n\nReturns 204 No Content on success."
      },
      {
        "title": "Team Members",
        "body": "List Team Members\n\nGET /microsoft-teams/v1.0/teams/{team-id}/members\n\nResponse:\n\n{\n  \"@odata.context\": \"https://graph.microsoft.com/v1.0/$metadata#teams('...')/members\",\n  \"@odata.count\": 1,\n  \"value\": [\n    {\n      \"@odata.type\": \"#microsoft.graph.aadUserConversationMember\",\n      \"id\": \"MCMjMSMj...\",\n      \"roles\": [\"owner\"],\n      \"displayName\": \"Kevin Kim\",\n      \"userId\": \"5f56d55b-2ffb-448d-982a-b52547431f71\",\n      \"email\": \"richard@carvedai.com\",\n      \"tenantId\": \"cb83c3f9-6d16-4cf3-bd8c-ab16b37932f9\"\n    }\n  ]\n}"
      },
      {
        "title": "Presence",
        "body": "Get User Presence\n\nGET /microsoft-teams/v1.0/me/presence\n\nResponse:\n\n{\n  \"id\": \"5f56d55b-2ffb-448d-982a-b52547431f71\",\n  \"availability\": \"Offline\",\n  \"activity\": \"Offline\",\n  \"outOfOfficeSettings\": {\n    \"message\": null,\n    \"isOutOfOffice\": false\n  }\n}\n\nAvailability values: Available, Busy, DoNotDisturb, Away, Offline\n\nGet User Presence by ID\n\nGET /microsoft-teams/v1.0/users/{user-id}/presence\n\nReturns presence information for a specific user by their ID."
      },
      {
        "title": "Tabs",
        "body": "List Channel Tabs\n\nGET /microsoft-teams/v1.0/teams/{team-id}/channels/{channel-id}/tabs\n\nResponse:\n\n{\n  \"@odata.count\": 2,\n  \"value\": [\n    {\n      \"id\": \"ee0b3e8b-dfc8-4945-a45d-28ceaf787d92\",\n      \"displayName\": \"Notes\",\n      \"webUrl\": \"https://teams.microsoft.com/l/entity/...\"\n    },\n    {\n      \"id\": \"3ed5b337-c2c9-4d5d-b7b4-84ff09a8fc1c\",\n      \"displayName\": \"Files\",\n      \"webUrl\": \"https://teams.microsoft.com/l/entity/...\"\n    }\n  ]\n}"
      },
      {
        "title": "Apps",
        "body": "List Installed Apps\n\nGET /microsoft-teams/v1.0/teams/{team-id}/installedApps"
      },
      {
        "title": "Online Meetings",
        "body": "Create Meeting\n\nPOST /microsoft-teams/v1.0/me/onlineMeetings\nContent-Type: application/json\n\n{\n  \"subject\": \"Team Sync\",\n  \"startDateTime\": \"2026-02-18T10:00:00Z\",\n  \"endDateTime\": \"2026-02-18T11:00:00Z\"\n}\n\nResponse:\n\n{\n  \"id\": \"MSo1ZjU2ZDU1Yi0yZmZi...\",\n  \"subject\": \"Team Sync\",\n  \"startDateTime\": \"2026-02-18T10:00:00Z\",\n  \"endDateTime\": \"2026-02-18T11:00:00Z\",\n  \"joinUrl\": \"https://teams.microsoft.com/l/meetup-join/...\",\n  \"joinWebUrl\": \"https://teams.microsoft.com/l/meetup-join/...\",\n  \"meetingCode\": \"28636743235745\",\n  \"joinMeetingIdSettings\": {\n    \"joinMeetingId\": \"28636743235745\",\n    \"passcode\": \"qh37NK9V\",\n    \"isPasscodeRequired\": true\n  },\n  \"participants\": {\n    \"organizer\": {\n      \"upn\": \"richard@carvedai.com\",\n      \"role\": \"presenter\"\n    }\n  }\n}\n\nThe joinUrl can be shared with attendees to join the meeting.\n\nGet Meeting\n\nGET /microsoft-teams/v1.0/me/onlineMeetings/{meeting-id}\n\nFind Meeting by Join URL\n\nGET /microsoft-teams/v1.0/me/onlineMeetings?$filter=JoinWebUrl eq '{encoded-join-url}'\n\nNote: Microsoft Graph requires a filter to query meetings. You cannot list all meetings without filtering by JoinWebUrl.\n\nList Calendar Events (includes scheduled meetings)\n\nGET /microsoft-teams/v1.0/me/calendar/events?$top=10\n\nScheduled Teams meetings appear as calendar events with isOnlineMeeting: true.\n\nDelete Meeting\n\nDELETE /microsoft-teams/v1.0/me/onlineMeetings/{meeting-id}\n\nReturns 204 No Content on success.\n\nCreate Meeting with Attendees\n\nPOST /microsoft-teams/v1.0/me/onlineMeetings\nContent-Type: application/json\n\n{\n  \"subject\": \"Project Review\",\n  \"startDateTime\": \"2026-02-18T14:00:00Z\",\n  \"endDateTime\": \"2026-02-18T15:00:00Z\",\n  \"participants\": {\n    \"attendees\": [\n      {\n        \"upn\": \"attendee@example.com\",\n        \"role\": \"attendee\"\n      }\n    ]\n  }\n}\n\nList Meeting Recordings\n\nGET /microsoft-teams/v1.0/me/onlineMeetings/{meeting-id}/recordings\n\nReturns a list of recordings for a meeting (available after the meeting has ended and recording was enabled).\n\nGet Meeting Recording\n\nGET /microsoft-teams/v1.0/me/onlineMeetings/{meeting-id}/recordings/{recording-id}\n\nList Meeting Transcripts\n\nGET /microsoft-teams/v1.0/me/onlineMeetings/{meeting-id}/transcripts\n\nReturns a list of transcripts for a meeting (available after the meeting has ended and transcription was enabled).\n\nGet Meeting Transcript\n\nGET /microsoft-teams/v1.0/me/onlineMeetings/{meeting-id}/transcripts/{transcript-id}\n\nList Attendance Reports\n\nGET /microsoft-teams/v1.0/me/onlineMeetings/{meeting-id}/attendanceReports\n\nReturns attendance reports for a meeting (available after the meeting has ended).\n\nGet Attendance Report\n\nGET /microsoft-teams/v1.0/me/onlineMeetings/{meeting-id}/attendanceReports/{report-id}"
      },
      {
        "title": "Chats",
        "body": "List User Chats\n\nGET /microsoft-teams/v1.0/me/chats\n\nGet Chat\n\nGET /microsoft-teams/v1.0/chats/{chat-id}\n\nList Chat Messages\n\nGET /microsoft-teams/v1.0/chats/{chat-id}/messages\n\nSend Chat Message\n\nPOST /microsoft-teams/v1.0/chats/{chat-id}/messages\nContent-Type: application/json\n\n{\n  \"body\": {\n    \"content\": \"Hello in chat\"\n  }\n}"
      },
      {
        "title": "Pagination",
        "body": "Microsoft Graph uses OData-style pagination with @odata.nextLink:\n\nGET /microsoft-teams/v1.0/me/joinedTeams?$top=10\n\nResponse includes pagination link when more results exist:\n\n{\n  \"value\": [...],\n  \"@odata.nextLink\": \"https://graph.microsoft.com/v1.0/me/joinedTeams?$skiptoken=...\"\n}\n\nUse the $top parameter to limit results per page."
      },
      {
        "title": "OData Query Parameters",
        "body": "$top=10 - Limit results\n$skip=20 - Skip results\n$select=id,displayName - Select specific fields\n$filter=membershipType eq 'private' - Filter results\n$orderby=displayName - Sort results"
      },
      {
        "title": "JavaScript",
        "body": "const response = await fetch(\n  'https://gateway.maton.ai/microsoft-teams/v1.0/me/joinedTeams',\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/microsoft-teams/v1.0/me/joinedTeams',\n    headers={'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'}\n)\ndata = response.json()"
      },
      {
        "title": "Send Message Example (Python)",
        "body": "import os\nimport requests\n\nteam_id = \"your-team-id\"\nchannel_id = \"your-channel-id\"\n\nresponse = requests.post(\n    f'https://gateway.maton.ai/microsoft-teams/v1.0/teams/{team_id}/channels/{channel_id}/messages',\n    headers={\n        'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}',\n        'Content-Type': 'application/json'\n    },\n    json={'body': {'content': 'Hello from Maton!'}}\n)\ndata = response.json()"
      },
      {
        "title": "Notes",
        "body": "Uses Microsoft Graph API v1.0\nMessages are sent as the authenticated user (not as a bot) - the from.user field shows the actual user identity\nTeam IDs are GUIDs (e.g., b643f103-870d-4f98-a23d-e6f164fae33e)\nChannel IDs include thread suffix (e.g., 19:9fwtZjo3IM0D8bLdQqR-_oMFw1eUDlzWjPfIhNGhVd41@thread.tacv2)\nMessage IDs are timestamps (e.g., 1771359569239)\nMessage body content types: text (default) or html\nChannel membership types: standard, private, shared\nThe default \"General\" channel cannot be updated or deleted\nOnly me endpoint is supported for listing joined teams (not arbitrary user IDs)\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 Microsoft Teams connection or invalid request401Invalid or missing Maton API key403Insufficient permissions for the requested resource404Team, channel, or message not found429Rate limited (Microsoft Graph throttling)4xx/5xxPassthrough error from Microsoft Graph API"
      },
      {
        "title": "Resources",
        "body": "Microsoft Teams API Overview\nMicrosoft Graph API Reference\nChannel Resource\nChatMessage Resource\nTeam Resource\nMaton Community\nMaton Support"
      }
    ],
    "body": "Microsoft Teams\n\nAccess the Microsoft Teams API with managed OAuth authentication via Microsoft Graph. Manage teams, channels, messages, meetings, and access recordings and transcripts.\n\nQuick Start\n# List user's joined teams\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/microsoft-teams/v1.0/me/joinedTeams')\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/microsoft-teams/{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 Teams 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=microsoft-teams&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': 'microsoft-teams'}).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\": \"fb0fdc4a-0b5a-40cf-8b92-3bdae848cde3\",\n    \"status\": \"ACTIVE\",\n    \"creation_time\": \"2026-02-17T09:51:21.074601Z\",\n    \"last_updated_time\": \"2026-02-17T09:51:34.323814Z\",\n    \"url\": \"https://connect.maton.ai/?session_token=...\",\n    \"app\": \"microsoft-teams\",\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 Microsoft Teams 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/microsoft-teams/v1.0/me/joinedTeams')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Maton-Connection', 'fb0fdc4a-0b5a-40cf-8b92-3bdae848cde3')\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\nTeams\nList Joined Teams\nGET /microsoft-teams/v1.0/me/joinedTeams\n\n\nResponse:\n\n{\n  \"@odata.context\": \"https://graph.microsoft.com/v1.0/$metadata#teams\",\n  \"@odata.count\": 1,\n  \"value\": [\n    {\n      \"id\": \"b643f103-870d-4f98-a23d-e6f164fae33e\",\n      \"displayName\": \"carvedai.com\",\n      \"description\": null,\n      \"isArchived\": false,\n      \"tenantId\": \"cb83c3f9-6d16-4cf3-bd8c-ab16b37932f9\"\n    }\n  ]\n}\n\nGet Team\nGET /microsoft-teams/v1.0/teams/{team-id}\n\nChannels\nList Channels\nGET /microsoft-teams/v1.0/teams/{team-id}/channels\n\n\nResponse:\n\n{\n  \"@odata.context\": \"https://graph.microsoft.com/v1.0/$metadata#teams('...')/channels\",\n  \"@odata.count\": 1,\n  \"value\": [\n    {\n      \"id\": \"19:9fwtZjo3IM0D8bLdQqR-_oMFw1eUDlzWjPfIhNGhVd41@thread.tacv2\",\n      \"createdDateTime\": \"2026-02-16T20:09:27.254Z\",\n      \"displayName\": \"General\",\n      \"description\": null,\n      \"email\": \"carvedai.com473@carvedai.com\",\n      \"membershipType\": \"standard\",\n      \"isArchived\": false\n    }\n  ]\n}\n\nList Private Channels\nGET /microsoft-teams/v1.0/teams/{team-id}/channels?$filter=membershipType eq 'private'\n\nGet Channel\nGET /microsoft-teams/v1.0/teams/{team-id}/channels/{channel-id}\n\nCreate Channel\nPOST /microsoft-teams/v1.0/teams/{team-id}/channels\nContent-Type: application/json\n\n{\n  \"displayName\": \"New Channel\",\n  \"description\": \"Channel description\",\n  \"membershipType\": \"standard\"\n}\n\n\nResponse:\n\n{\n  \"id\": \"19:3b3361df822044558a062bb1a4ac8357@thread.tacv2\",\n  \"createdDateTime\": \"2026-02-17T20:24:33.9284462Z\",\n  \"displayName\": \"Maton Test Channel\",\n  \"description\": \"Channel created by Maton integration test\",\n  \"membershipType\": \"standard\",\n  \"isArchived\": false\n}\n\nUpdate Channel\nPATCH /microsoft-teams/v1.0/teams/{team-id}/channels/{channel-id}\nContent-Type: application/json\n\n{\n  \"description\": \"Updated description\"\n}\n\n\nReturns 204 No Content on success. Note: The default \"General\" channel cannot be updated.\n\nDelete Channel\nDELETE /microsoft-teams/v1.0/teams/{team-id}/channels/{channel-id}\n\n\nReturns 204 No Content on success.\n\nChannel Members\nList Channel Members\nGET /microsoft-teams/v1.0/teams/{team-id}/channels/{channel-id}/members\n\n\nResponse:\n\n{\n  \"@odata.count\": 1,\n  \"value\": [\n    {\n      \"@odata.type\": \"#microsoft.graph.aadUserConversationMember\",\n      \"id\": \"MCMjMiMj...\",\n      \"roles\": [\"owner\"],\n      \"displayName\": \"Kevin Kim\",\n      \"userId\": \"5f56d55b-2ffb-448d-982a-b52547431f71\",\n      \"email\": \"richard@carvedai.com\"\n    }\n  ]\n}\n\nMessages\nList Channel Messages\nGET /microsoft-teams/v1.0/teams/{team-id}/channels/{channel-id}/messages\n\nSend Message to Channel\nPOST /microsoft-teams/v1.0/teams/{team-id}/channels/{channel-id}/messages\nContent-Type: application/json\n\n{\n  \"body\": {\n    \"content\": \"Hello World\"\n  }\n}\n\n\nResponse:\n\n{\n  \"id\": \"1771359569239\",\n  \"replyToId\": null,\n  \"messageType\": \"message\",\n  \"createdDateTime\": \"2026-02-17T20:19:29.239Z\",\n  \"importance\": \"normal\",\n  \"locale\": \"en-us\",\n  \"from\": {\n    \"user\": {\n      \"id\": \"5f56d55b-2ffb-448d-982a-b52547431f71\",\n      \"displayName\": \"Kevin Kim\",\n      \"userIdentityType\": \"aadUser\",\n      \"tenantId\": \"cb83c3f9-6d16-4cf3-bd8c-ab16b37932f9\"\n    }\n  },\n  \"body\": {\n    \"contentType\": \"text\",\n    \"content\": \"Hello World\"\n  },\n  \"channelIdentity\": {\n    \"teamId\": \"b643f103-870d-4f98-a23d-e6f164fae33e\",\n    \"channelId\": \"19:9fwtZjo3IM0D8bLdQqR-_oMFw1eUDlzWjPfIhNGhVd41@thread.tacv2\"\n  }\n}\n\nSend HTML Message\nPOST /microsoft-teams/v1.0/teams/{team-id}/channels/{channel-id}/messages\nContent-Type: application/json\n\n{\n  \"body\": {\n    \"contentType\": \"html\",\n    \"content\": \"<h1>Hello</h1><p>This is <strong>formatted</strong> content.</p>\"\n  }\n}\n\nReply to Message\nPOST /microsoft-teams/v1.0/teams/{team-id}/channels/{channel-id}/messages/{message-id}/replies\nContent-Type: application/json\n\n{\n  \"body\": {\n    \"content\": \"This is a reply\"\n  }\n}\n\nList Message Replies\nGET /microsoft-teams/v1.0/teams/{team-id}/channels/{channel-id}/messages/{message-id}/replies\n\nEdit Message\nPATCH /microsoft-teams/v1.0/teams/{team-id}/channels/{channel-id}/messages/{message-id}\nContent-Type: application/json\n\n{\n  \"body\": {\n    \"content\": \"Updated message content\"\n  }\n}\n\n\nReturns 204 No Content on success.\n\nTeam Members\nList Team Members\nGET /microsoft-teams/v1.0/teams/{team-id}/members\n\n\nResponse:\n\n{\n  \"@odata.context\": \"https://graph.microsoft.com/v1.0/$metadata#teams('...')/members\",\n  \"@odata.count\": 1,\n  \"value\": [\n    {\n      \"@odata.type\": \"#microsoft.graph.aadUserConversationMember\",\n      \"id\": \"MCMjMSMj...\",\n      \"roles\": [\"owner\"],\n      \"displayName\": \"Kevin Kim\",\n      \"userId\": \"5f56d55b-2ffb-448d-982a-b52547431f71\",\n      \"email\": \"richard@carvedai.com\",\n      \"tenantId\": \"cb83c3f9-6d16-4cf3-bd8c-ab16b37932f9\"\n    }\n  ]\n}\n\nPresence\nGet User Presence\nGET /microsoft-teams/v1.0/me/presence\n\n\nResponse:\n\n{\n  \"id\": \"5f56d55b-2ffb-448d-982a-b52547431f71\",\n  \"availability\": \"Offline\",\n  \"activity\": \"Offline\",\n  \"outOfOfficeSettings\": {\n    \"message\": null,\n    \"isOutOfOffice\": false\n  }\n}\n\n\nAvailability values: Available, Busy, DoNotDisturb, Away, Offline\n\nGet User Presence by ID\nGET /microsoft-teams/v1.0/users/{user-id}/presence\n\n\nReturns presence information for a specific user by their ID.\n\nTabs\nList Channel Tabs\nGET /microsoft-teams/v1.0/teams/{team-id}/channels/{channel-id}/tabs\n\n\nResponse:\n\n{\n  \"@odata.count\": 2,\n  \"value\": [\n    {\n      \"id\": \"ee0b3e8b-dfc8-4945-a45d-28ceaf787d92\",\n      \"displayName\": \"Notes\",\n      \"webUrl\": \"https://teams.microsoft.com/l/entity/...\"\n    },\n    {\n      \"id\": \"3ed5b337-c2c9-4d5d-b7b4-84ff09a8fc1c\",\n      \"displayName\": \"Files\",\n      \"webUrl\": \"https://teams.microsoft.com/l/entity/...\"\n    }\n  ]\n}\n\nApps\nList Installed Apps\nGET /microsoft-teams/v1.0/teams/{team-id}/installedApps\n\nOnline Meetings\nCreate Meeting\nPOST /microsoft-teams/v1.0/me/onlineMeetings\nContent-Type: application/json\n\n{\n  \"subject\": \"Team Sync\",\n  \"startDateTime\": \"2026-02-18T10:00:00Z\",\n  \"endDateTime\": \"2026-02-18T11:00:00Z\"\n}\n\n\nResponse:\n\n{\n  \"id\": \"MSo1ZjU2ZDU1Yi0yZmZi...\",\n  \"subject\": \"Team Sync\",\n  \"startDateTime\": \"2026-02-18T10:00:00Z\",\n  \"endDateTime\": \"2026-02-18T11:00:00Z\",\n  \"joinUrl\": \"https://teams.microsoft.com/l/meetup-join/...\",\n  \"joinWebUrl\": \"https://teams.microsoft.com/l/meetup-join/...\",\n  \"meetingCode\": \"28636743235745\",\n  \"joinMeetingIdSettings\": {\n    \"joinMeetingId\": \"28636743235745\",\n    \"passcode\": \"qh37NK9V\",\n    \"isPasscodeRequired\": true\n  },\n  \"participants\": {\n    \"organizer\": {\n      \"upn\": \"richard@carvedai.com\",\n      \"role\": \"presenter\"\n    }\n  }\n}\n\n\nThe joinUrl can be shared with attendees to join the meeting.\n\nGet Meeting\nGET /microsoft-teams/v1.0/me/onlineMeetings/{meeting-id}\n\nFind Meeting by Join URL\nGET /microsoft-teams/v1.0/me/onlineMeetings?$filter=JoinWebUrl eq '{encoded-join-url}'\n\n\nNote: Microsoft Graph requires a filter to query meetings. You cannot list all meetings without filtering by JoinWebUrl.\n\nList Calendar Events (includes scheduled meetings)\nGET /microsoft-teams/v1.0/me/calendar/events?$top=10\n\n\nScheduled Teams meetings appear as calendar events with isOnlineMeeting: true.\n\nDelete Meeting\nDELETE /microsoft-teams/v1.0/me/onlineMeetings/{meeting-id}\n\n\nReturns 204 No Content on success.\n\nCreate Meeting with Attendees\nPOST /microsoft-teams/v1.0/me/onlineMeetings\nContent-Type: application/json\n\n{\n  \"subject\": \"Project Review\",\n  \"startDateTime\": \"2026-02-18T14:00:00Z\",\n  \"endDateTime\": \"2026-02-18T15:00:00Z\",\n  \"participants\": {\n    \"attendees\": [\n      {\n        \"upn\": \"attendee@example.com\",\n        \"role\": \"attendee\"\n      }\n    ]\n  }\n}\n\nList Meeting Recordings\nGET /microsoft-teams/v1.0/me/onlineMeetings/{meeting-id}/recordings\n\n\nReturns a list of recordings for a meeting (available after the meeting has ended and recording was enabled).\n\nGet Meeting Recording\nGET /microsoft-teams/v1.0/me/onlineMeetings/{meeting-id}/recordings/{recording-id}\n\nList Meeting Transcripts\nGET /microsoft-teams/v1.0/me/onlineMeetings/{meeting-id}/transcripts\n\n\nReturns a list of transcripts for a meeting (available after the meeting has ended and transcription was enabled).\n\nGet Meeting Transcript\nGET /microsoft-teams/v1.0/me/onlineMeetings/{meeting-id}/transcripts/{transcript-id}\n\nList Attendance Reports\nGET /microsoft-teams/v1.0/me/onlineMeetings/{meeting-id}/attendanceReports\n\n\nReturns attendance reports for a meeting (available after the meeting has ended).\n\nGet Attendance Report\nGET /microsoft-teams/v1.0/me/onlineMeetings/{meeting-id}/attendanceReports/{report-id}\n\nChats\nList User Chats\nGET /microsoft-teams/v1.0/me/chats\n\nGet Chat\nGET /microsoft-teams/v1.0/chats/{chat-id}\n\nList Chat Messages\nGET /microsoft-teams/v1.0/chats/{chat-id}/messages\n\nSend Chat Message\nPOST /microsoft-teams/v1.0/chats/{chat-id}/messages\nContent-Type: application/json\n\n{\n  \"body\": {\n    \"content\": \"Hello in chat\"\n  }\n}\n\nPagination\n\nMicrosoft Graph uses OData-style pagination with @odata.nextLink:\n\nGET /microsoft-teams/v1.0/me/joinedTeams?$top=10\n\n\nResponse includes pagination link when more results exist:\n\n{\n  \"value\": [...],\n  \"@odata.nextLink\": \"https://graph.microsoft.com/v1.0/me/joinedTeams?$skiptoken=...\"\n}\n\n\nUse the $top parameter to limit results per page.\n\nOData Query Parameters\n$top=10 - Limit results\n$skip=20 - Skip results\n$select=id,displayName - Select specific fields\n$filter=membershipType eq 'private' - Filter results\n$orderby=displayName - Sort results\nCode Examples\nJavaScript\nconst response = await fetch(\n  'https://gateway.maton.ai/microsoft-teams/v1.0/me/joinedTeams',\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/microsoft-teams/v1.0/me/joinedTeams',\n    headers={'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'}\n)\ndata = response.json()\n\nSend Message Example (Python)\nimport os\nimport requests\n\nteam_id = \"your-team-id\"\nchannel_id = \"your-channel-id\"\n\nresponse = requests.post(\n    f'https://gateway.maton.ai/microsoft-teams/v1.0/teams/{team_id}/channels/{channel_id}/messages',\n    headers={\n        'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}',\n        'Content-Type': 'application/json'\n    },\n    json={'body': {'content': 'Hello from Maton!'}}\n)\ndata = response.json()\n\nNotes\nUses Microsoft Graph API v1.0\nMessages are sent as the authenticated user (not as a bot) - the from.user field shows the actual user identity\nTeam IDs are GUIDs (e.g., b643f103-870d-4f98-a23d-e6f164fae33e)\nChannel IDs include thread suffix (e.g., 19:9fwtZjo3IM0D8bLdQqR-_oMFw1eUDlzWjPfIhNGhVd41@thread.tacv2)\nMessage IDs are timestamps (e.g., 1771359569239)\nMessage body content types: text (default) or html\nChannel membership types: standard, private, shared\nThe default \"General\" channel cannot be updated or deleted\nOnly me endpoint is supported for listing joined teams (not arbitrary user IDs)\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 Microsoft Teams connection or invalid request\n401\tInvalid or missing Maton API key\n403\tInsufficient permissions for the requested resource\n404\tTeam, channel, or message not found\n429\tRate limited (Microsoft Graph throttling)\n4xx/5xx\tPassthrough error from Microsoft Graph API\nResources\nMicrosoft Teams API Overview\nMicrosoft Graph API Reference\nChannel Resource\nChatMessage Resource\nTeam Resource\nMaton Community\nMaton Support"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/byungkyu/microsoft-teams",
    "publisherUrl": "https://clawhub.ai/byungkyu/microsoft-teams",
    "owner": "byungkyu",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/microsoft-teams",
    "downloadUrl": "https://openagent3.xyz/downloads/microsoft-teams",
    "agentUrl": "https://openagent3.xyz/skills/microsoft-teams/agent",
    "manifestUrl": "https://openagent3.xyz/skills/microsoft-teams/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/microsoft-teams/agent.md"
  }
}