> ## Documentation Index
> Fetch the complete documentation index at: https://nango.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Microsoft Teams

> Integrate your application with the Microsoft Teams API

## 🚀 Quickstart

Connect to Microsoft Teams with Nango and see data flow in 2 minutes.

**1. Create the integration**

In Nango ([free signup](https://app.nango.dev)), go to [Integrations](https://app.nango.dev/dev/integrations) -> *Configure New Integration* -> *Microsoft Teams*.

> [!NOTE]
>
> Nango has a [Nango-managed OAuth app](https://nango.dev/docs/guides/auth/auth-guide.md#nango-managed-oauth-apps) you can use in development and production. Select it when you create the integration.

**2. Authorize Microsoft Teams**

Go to [Connections](https://app.nango.dev/dev/connections) -> *Add Test Connection* -> *Authorize*, then log in to Microsoft Teams. Later, you'll let your users do the same directly from your app.

**3. Call the Microsoft Teams API**

Let's make your first request to the Microsoft Teams (Microsoft Graph) API (fetch a list of teams joined by the authenticated user). Replace the placeholders below with your [Environment API key](https://nango.dev/docs/reference/backend/http-api/api-keys.md), [integration ID](https://app.nango.dev/dev/integrations), and [connection ID](https://app.nango.dev/dev/connections):

> [tab] cURL
>
> ```bash theme={null}
> curl "https://api.nango.dev/proxy/v1.0/me/joinedTeams" \
>   -H "Authorization: Bearer <NANGO-API-KEY>" \
>   -H "Provider-Config-Key: <INTEGRATION-ID>" \
>   -H "Connection-Id: <CONNECTION-ID>"
> ```

> [tab] Node
>
> Install Nango's backend SDK with `npm i @nangohq/node`. Then run:
>
> ```typescript theme={null}
> import { Nango } from '@nangohq/node';
>
> const nango = new Nango({ apiKey: '<NANGO-API-KEY>' });
>
> const res = await nango.get({
>     endpoint: '/v1.0/me/joinedTeams',
>     providerConfigKey: '<INTEGRATION-ID>',
>     connectionId: '<CONNECTION-ID>'
> });
>
> console.log(res.data);
> ```

Or fetch credentials dynamically via the [Node SDK](https://nango.dev/docs/reference/backend/backend-sdk/node.md#get-a-connection-with-credentials) or [API](https://nango.dev/docs/reference/backend/http-api/connections/get.md).

✅ You're connected! Check the [Logs](https://app.nango.dev/dev/logs) tab in Nango to inspect requests.

**4. Implement Nango in your app**

Follow our [Auth implementation guide](https://nango.dev/docs/guides/primitives/auth.md) to integrate Nango in your app.

To use your own OAuth app instead of the Nango-managed one, follow the setup guide linked below.

## 📚 Microsoft Teams Integration Guides

Nango maintained guides for common use cases.

* [How to register your own Microsoft Teams OAuth app](https://nango.dev/docs/api-integrations/microsoft-teams/how-to-register-your-own-microsoft-teams-api-oauth-app)\
  Register an OAuth app with Microsoft Teams and obtain credentials to connect it to Nango
* [How to set up webhooks with Microsoft Teams on Nango](https://nango.dev/docs/api-integrations/microsoft-teams-bot/webhooks)\
  Receive bot activities from Teams. The bot must use the same Microsoft Entra app as this integration

Official docs: [Microsoft Graph API docs](https://learn.microsoft.com/en-us/graph/overview)

## 🧩 Pre-built syncs & tools for Microsoft Teams

Explore Nango-provided tools in your dashboard. Extend and customize them to fit your needs.

### Others

| Function name | Description | Type |
| - | - | - |
| `add-team-member` | Add a member to a team | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-channel-message` | Post a root message in a channel | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-channel-tab` | Add a tab to a channel. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-channel` | Create a channel in a team. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-chat-message` | Send a message in a chat | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-chat` | Create a one-on-one or group chat. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-team` | Create a team from a template or existing group. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `delete-channel` | Delete a channel from a team | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-channel-message` | Retrieve a channel message by ID. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-channel` | Retrieve a channel by ID. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-chat-message` | Retrieve a chat message by ID. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-chat` | Retrieve a chat by ID. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-team` | Retrieve a team by ID. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-channel-messages` | List root messages in a channel. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-channel-replies` | List replies under a channel message thread | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-channel-tabs` | List tabs configured on a channel. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-channels` | List channels in a team. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-chat-members` | List members in a chat | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-chat-messages` | List messages in a chat. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-chats` | List chats for a user. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-joined-teams` | List teams the user has joined | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-team-members` | List members in a team. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `remove-team-member` | Remove a member from a team. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `reply-to-channel-message` | Reply to a channel message thread. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `update-channel` | Update mutable channel properties. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `channel-message-replies` | Sync replies for selected channel message threads | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `channel-messages` | Sync root channel messages for selected channels | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `chat-members` | Sync member rosters for chats | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `chat-messages` | Sync chat messages across user chats. | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `chats` | Sync chats available to the user. | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `joined-teams` | Sync the teams joined by a user | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `org-units` | Sync Microsoft 365 or Entra groups used as organizational units | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `team-channels` | Sync channels for selected teams. | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `team-members` | Sync team membership rosters | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `users` | Sync directory users relevant to Microsoft Teams workspaces | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.