> ## 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 Word

> Integrate your application with the Microsoft Word API

## 🚀 Quickstart

Connect to Microsoft Word 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 Word*.

> [!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 Word**

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

**3. Call the Microsoft Word API**

Let's make your first request to the Microsoft Word (Microsoft Graph) API to fetch Word documents from the authenticated user's OneDrive. 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/drive/search(q='.docx')" \
>   -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/drive/search(q='.docx')",
>     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 [quickstart](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 Word Integration Guides

Nango-maintained guides for common use cases.

* [How to register your own Microsoft Word OAuth app](https://nango.dev/docs/api-integrations/microsoft-word/how-to-register-your-own-microsoft-word-api-oauth-app)\
  Register an OAuth app with Microsoft Word and obtain credentials to connect it to Nango

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

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

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

### Others

| Function name | Description | Type |
| - | - | - |
| `copy-word-document` | Copy a Word document to a (possibly different) folder, optionally renaming it. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-folder` | Create a folder in a drive to organize Word documents. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-sharing-link` | Create a sharing link for a Word document. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-word-document` | Upload a new Word document to a drive folder | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `delete-word-document` | Delete a Word document. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-site-drive` | Get the default document library (drive) for a SharePoint site. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-user-drive` | Get a user's personal OneDrive (drive). | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-word-document-as-pdf` | Download a Word document converted to PDF | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-word-document-content` | Download the raw .docx content of a Word document. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-word-document` | Retrieve metadata for a Word document (driveItem). | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-sites` | Search/list SharePoint sites accessible to the app | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-users` | List/search tenant users, to resolve a user id for personal OneDrive access. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-word-document-permissions` | List sharing permissions on a Word document. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-word-document-versions` | List the version history of a Word document. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-word-documents` | List/search .docx files within a drive | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `move-word-document` | Move a Word document to a different folder. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `update-word-document-content` | Replace the content of an existing Word document. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `update-word-document-metadata` | Rename a Word document or update its description, without touching content. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `word-documents` | Sync .docx files within a drive | [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.