---
title: "Connect OneDrive to AI Engine - APIANT.ai"
description: "When \"File Updated\" fires in OneDrive, your agent runs \"Add facial repository\" in AI Engine."
canonical: "https://apiant.ai/connect/onedrive-to-ai-engine"
---

# Connect OneDrive to AI Engine

When **File Updated** fires in [OneDrive](https://apiant.ai/connections/onedrive), your agent runs **Add facial repository** in [AI Engine](https://apiant.ai/connections/ai-engine). Describe the whole flow and it is built, tested on every scenario and kept running.

OneDrive **9** triggers OneDrive **58** actions AI Engine **8** actions

What the catalog holds today. Ask for anything missing and your agent reads the API documentation and adds it.

## What do you want OneDrive and AI Engine to do together?

Give your AI client this address.

`https://mcp.apiant.ai`

One connection does both: ask your client to act in an app once, or have it build an automation that keeps running. Any client that takes a remote MCP server. Nothing to install. Create your free account, then sign in once in your browser.

### Set it up in your client

### Claude Code

Run this in the directory you want to work in.

`claude mcp add --transport http -s project apiant-ai https://mcp.apiant.ai`

Start Claude Code there, approve the server, and sign in in the browser page it opens.

[Claude Code guide (opens in a new tab)](https://apiant.ai/docs/mcp/claude-code)

### Claude, web and desktop

Open Customize, then Connectors, then Add custom connector, and paste the address. On Team and Enterprise an owner adds it first.

[Setup guide (opens in a new tab)](https://apiant.ai/docs/mcp)

### Cursor

Add the address to your MCP configuration as a server URL. Cursor signs you in in your browser.

[Setup guide (opens in a new tab)](https://apiant.ai/docs/mcp)

### Zed

Open Settings, then AI, then MCP Servers, then Add Server, then Add Remote Server.

[Setup guide (opens in a new tab)](https://apiant.ai/docs/mcp)

### Codex and the ChatGPT desktop app

Open Settings, then MCP servers, then Add server, and choose Streamable HTTP. From the terminal, Codex takes the address with its own add command and then signs you in.

[Setup guide (opens in a new tab)](https://apiant.ai/docs/mcp)

### Any other MCP client

Paste the address where the client asks for a remote MCP server URL, and name the server apiant-ai where it lets you. APIANT's skills reach the client over the same connection.

[Setup guide (opens in a new tab)](https://apiant.ai/docs/mcp)

Example flows

## What OneDrive can start in AI Engine

- When **File Updated** in OneDrive then **Add facial repository** in AI Engine
- When **Item Moved or Renamed** in OneDrive then **Analyze faces** in AI Engine

Starting points drawn from the triggers and actions in the catalog today. Describe the flow you need, at any depth, and your agent builds it and tests every scenario before it ships.

Everything your agent can do with OneDrive and AI Engine

## Triggers and actions 9 triggers · 66 actions

- Trigger

**File Updated**

Trigger that fires when a OneDrive file's content or metadata changes. Returns file ID, last modified time, and modifier info.

- Trigger

**Item Moved or Renamed**

Triggers when a file or folder is moved to a different path or renamed in OneDrive. Includes both old and new path/name data in the payload.

- Trigger

**New Version Created**

Trigger that fires when a new version of a specified OneDrive file is created.

- Trigger

**Onedrivebasetrigger**

Base trigger for OneDrive changes using Gmail-style state management. Subclasses override `filter_changes(...)` to extract only the relevant items.

- Trigger

**OneDrive File Created Trigger**

Triggers when a new file is created in OneDrive. Uses Gmail-style state management for reliable duplicate prevention.

- Trigger

**OneDrive Folder Created Trigger**

Triggers when a new folder is created in OneDrive. Uses Gmail-style state management for reliable duplicate prevention.

- Trigger

**OneDrive Item Deleted Trigger**

Triggers when a file or folder is deleted in OneDrive. Uses Gmail-style state management for reliable duplicate prevention.

- Trigger

**OneDrive Item Updated Trigger**

Triggers when an existing file or folder is modified in OneDrive. Uses Gmail-style state management and only detects actual modifications, not new creations.

- Trigger

**Sharing Permission Added or Removed**

Sharing Permission Added or Removed

- Action

**Copy Item**

Tool to copy a driveitem (file or folder) to a new location asynchronously. use when you need to duplicate an item, optionally renaming it or specifying a different parent folder. the operation is asynchronous; the response provides a url to monitor the copy progress.

- Action

**Create Link**

Tool to create a sharing link for a driveitem (file or folder) by its unique id. use when you need to generate a shareable link for an item in onedrive or sharepoint.

- Action

**Delete Item**

Tool to delete a driveitem (file or folder) by its unique id from the authenticated user's onedrive. use when you need to remove an item from onedrive. this action moves the item to the recycle bin, not permanently deleting it.

- Action

**Download File**

Downloads a file from a user's onedrive using its item id, which must refer to a file and not a folder.

- Action

**Get Drive**

Retrieves the properties and relationships of a drive resource by its unique id. use this action when you need to get details about a specific onedrive, user's onedrive, group's document library, or a site's document library.

- Action

**Get Drive Item By Sharing Url**

Tool to resolve a OneDrive/SharePoint sharing URL (or shareId) to a DriveItem with driveId and itemId. Use when you have a sharing link from Teams, chat, or 1drv.ms and need the item's metadata or IDs for downstream actions like permissions or download.

- Action

**Get Item**

Retrieves the metadata of a driveitem by its unique id. use this tool to get information about a specific file or folder in onedrive when you have its id. if a `drive id` is not provided, it defaults to the user's main drive.

- Action

**Get Item Permissions**

Retrieves the permissions of a driveitem by its unique id or path within a specific drive. use when you need to check who has access to a file or folder and what level of access they have.

- Action

**Get Item Thumbnails**

Tool to retrieve the thumbnails associated with a driveitem. use when you need to display visual previews of files.

- Action

**Get Item Versions**

Tool to retrieve the version history of a driveitem by its unique id. use when you need to access or list previous versions of a file.

- Action

**Get Quota**

Tool to retrieve the quota information for the authenticated user's onedrive. use this action to check the storage space details like total, used, and remaining space on the user's onedrive.

- Action

**Get Recent Items**

Retrieves a list of items that have been recently used by the authenticated user. this tool is useful when you need to access or display files and folders that the user has interacted with recently across their onedrive and accessible shared drives.

- Action

**Get Share**

Tool to access a shared DriveItem or collection of shared items using a shareId or encoded sharing URL. Returns the sharedDriveItem resource with metadata about the shared item and its owner. Use when you have a shareId or sharing token and need information about what was shared.

- Action

**Get Shared Items**

Tool to retrieve a list of items that have been shared with the authenticated user. use this action to get details of files and folders shared with the current user.

- Action

**Get Sharepoint List Items**

Tool to get the items (list items) within a specific sharepoint list on a site. use when you need to retrieve data from a sharepoint list.

- Action

**Get Site**

Retrieves metadata for a specific SharePoint site by its ID. Use this action when you need to get details like display name, web URL, and creation/modification dates for a known SharePoint site.

- Action

**Get Site Details**

Retrieves metadata for a specific sharepoint site by its id. use this action when you need to get details like display name, web url, and creation/modification dates for a known sharepoint site.

- Action

**Get Site Page Content**

Gets the content of a modern sharepoint site page. use when you need to retrieve the details and content of a specific page within a sharepoint site.

- Action

**Get Special Folder**

Tool to retrieve a special folder in OneDrive by name. Use when you need to access well-known folders (documents, photos, approot, etc.) without looking up by path or ID.

- Action

**Get Workbook Range Fill**

Read the fill color applied to an Excel worksheet range.

- Action

**Get Workbook Used Range**

Retrieves the used range of a worksheet in an Excel workbook stored in OneDrive or SharePoint without requiring the caller to know an explicit A1 range address. Use this action to read the active data region of a worksheet, optionally ignoring formatting-only cells.

- Action

**Get Workbook Worksheet**

Retrieves a specific worksheet from an Excel workbook stored in OneDrive or SharePoint using Microsoft Graph API. Use this action when you need to get details about a particular worksheet, including its ID, name, position, and visibility. The worksheet can be identified by either its unique ID or its display name.

- Action

**Grant Share Permission**

Tool to grant users access to a link represented by a permission using an encoded sharing URL. Use when you need to give specific users access to a shared OneDrive or SharePoint resource.

- Action

**Grant Sharepoint Item Permission**

Grant an application permission on a SharePoint list or list item using Microsoft Graph beta.

- Action

**Inspect Workbook Table**

Read a workbook table's occupied range and one page of its columns.

- Action

**Invite User To Drive Item**

Tool to invite users or grant permissions to a specific item in a onedrive drive. use when you need to share a file or folder with other users and define their access level (e.g., read or write).

- Action

**List All Drive Items**

Lists a complete OneDrive or SharePoint drive safely, one Microsoft Graph delta page per invocation. Start without `page_token`, then pass each `next_page_token` back until `sync_complete` is true. The terminal `delta_token` can be saved and passed back later to fetch changes since the completed snapshot. Delta enumeration is stable under concurrent writes and avoids the request burst caused by recursively fetching every folder in one execution.

- Action

**List Drive Item Activities**

Tool to list recent activities for a specific item in a onedrive drive. use when you need to track changes or actions performed on a file or folder.

- Action

**List Drives**

Tool to retrieve a list of drive resources available to the authenticated user, or for a specific user, group, or site. use when you need to find out what drives are accessible.

- Action

**List Folder Children**

List the direct children (files/folders) of a OneDrive/SharePoint folder by DriveItem ID or path. Returns reliable pagination tokens for large folders. Use when you need to enumerate folder contents deterministically, find companion artifacts (e.g.,.vtt/.docx files), or browse within a known folder.

- Action

**List Item Activities**

Tool to list recent activities for a specific item in a OneDrive drive. Use when you need to track changes or actions performed on a file or folder.

- Action

**List Root Drive Changes**

Tool to list changes in the root of the user's primary drive using a delta token. use when you need to track file and folder modifications, additions, or deletions in the main onedrive directory.

- Action

**List Share Permissions**

Tool to retrieve permission details for a shared OneDrive or SharePoint item using a share ID. Use when you have an encoded sharing URL and need to check the permission level, password protection, and access details.

- Action

**List Sharepoint Item Permissions**

List Microsoft Graph beta permissions from a SharePoint list or list item.

- Action

**List Sharepoint List Items Delta**

Tool to track changes to items in a sharepoint list using a delta query. use when you need to get newly created, updated, or deleted list items without performing a full read of the entire item collection.

- Action

**List Site Columns**

Tool to list all column definitions for a sharepoint site. use this when you need to retrieve the schema or structure of columns within a specific sharepoint site.

- Action

**List Site Drive Items Delta**

Tool to track changes to driveitems in the default document library of a sharepoint site. use when you need to get a list of items that have been added, modified, or deleted since a previous state or to get an initial enumeration of all items.

- Action

**List Site Items Delta**

Tool to track changes to DriveItems in the default document library of a SharePoint site. Use when you need to get a list of items that have been added, modified, or deleted since a previous state or to get an initial enumeration of all items.

- Action

**List Site Lists**

Tool to list all lists under a specific sharepoint site. use when you need to enumerate lists within a known site.

- Action

**List Site Subsites**

Tool to list all subsites of a sharepoint site. use when you need to retrieve a collection of subsites for a given parent site.

- Action

**List Subscriptions**

Tool to list the current subscriptions for the authenticated user or app. use this to retrieve details of existing webhook subscriptions.

- Action

**List Workbook Worksheets**

Retrieves a list of all worksheets in an Excel workbook stored in OneDrive or SharePoint. Returns worksheet metadata including IDs, names, positions, and visibility states. Use this action when you need to enumerate available worksheets in a workbook, find a specific worksheet by name, or understand the workbook structure before performing operations on worksheet data.

- Action

**Move Item**

Tool to move a file or folder to a new parent folder in onedrive. use when you need to reorganize your files or folders by changing their location. you can optionally rename the item during the move.

- Action

**Onedrive Create Folder**

Creates a new folder in the user's onedrive, automatically renaming on conflict, optionally within a specified parent folder (by id or full path from root) which, if not the root, must exist and be accessible.

- Action

**Onedrive Create Text File**

Creates a new text file with specified content in a onedrive folder, using either the folder's unique id or its absolute path (paths are automatically resolved to ids); note that onedrive may rename or create a new version if the filename already exists.

- Action

**Onedrive Find File**

Non-recursively finds an item (file or folder) in a specified onedrive folder; if `folder` is provided as a path, it must actually exist.

- Action

**Onedrive Find Folder**

Finds folders by name within an accessible parent folder in onedrive, or lists all its direct child folders if no name is specified.

- Action

**Onedrive List Items**

Retrieves all files and folders as `driveitem` resources from the root of a specified user's onedrive, automatically handling pagination.

- Action

**Onedrive Upload File**

Uploads a file to a specified onedrive folder, automatically renaming on conflict and supporting large files via chunking.

- Action

**Preview Drive Item**

Generates or retrieves a short-lived embeddable url for a preview of a specific item. use when you need to display a temporary preview of a file.

- Action

**Read Workbook Range**

Reads a range of cells from an Excel workbook worksheet stored in OneDrive or SharePoint using Microsoft Graph API. Returns cell values, formulas, formatting, and metadata for the specified range. Use this action when you need to extract data from specific cells in an Excel file, whether reading a single cell, a rectangular range, an entire column, or an entire row. The range address must be specified in A1 notation (e.g., 'A1:B5').

- Action

**Restore Item Version**

Restores a previous version of a DriveItem (file) by creating a new version with the content of the specified version. Use this action when you need to revert a file to an earlier version. The restoration is permanent and creates a new current version — the file cannot be automatically reverted after this operation, though you can restore again to a different version if needed. This action is irreversible in the sense that it immediately changes the current file content.

- Action

**Search Drive Items**

Search OneDrive and accessible SharePoint files with Microsoft Graph Search. This does not produce a complete shared-with-me list; use deprecated ONE_DRIVE_GET_SHARED_ITEMS only when full shared-with-me enumeration is required before Microsoft removes that API in November 2026. Requires OneDrive permissions plus Sites.Read.All because SharePoint-backed files can appear in results.

- Action

**Search Items**

Searches for driveitems in onedrive that match the specified query. use this to find files or folders based on keywords.

- Action

**Search Sharepoint Sites**

Search SharePoint sites visible to an organizational Microsoft account.

- Action

**Track Folder Changes**

Track changes beneath one folder, one Microsoft Graph delta page at a time.

- Action

**Unfollow Item**

Tool to unfollow a driveItem by removing it from the user's followed items collection. Use when you need to stop following a file or folder that was previously marked to follow.

- Action

**Update Drive Item Metadata**

Tool to update the metadata of a specific item (file or folder) in onedrive. use this to rename items, change descriptions, or move items to a new parent folder.

- Action

**Add facial repository**

Creates a new facial repository for storing and searching faces.

- Action

**Analyze faces**

Analyzes the faces in an image and returns attributes such as estimated age, gender and emotions.

- Action

**Compare faces**

Compares the face in a source image with the faces in a target image and returns how similar they are.

- Action

**Detect labels**

Detects and categorizes the content of an image, returning labels with confidence scores.

- Action

**Detect objects**

Detects and locates objects in an image, returning their labels, confidence scores and bounding boxes.

- Action

**Detect unsafe content**

Checks an image for explicit or unsafe content and returns the moderation labels with confidence scores.

- Action

**Extract text from image**

Extracts the text found in an image (OCR), including handwriting, receipts and complex layouts in 100+ languages.

- Action

**Extract text from PDF**

Extracts the text from a PDF document, optionally limited to a range of pages.

## Each app on its own

- [ **OneDrive** OneDrive is Microsoft’s cloud storage solution enabling users to store, sync, and share files across...](https://apiant.ai/connections/onedrive)
- [ **AI Engine** 36+ AI endpoints: OCR, face detection, background removal, object detection, NSFW moderation, face swap...](https://apiant.ai/connections/ai-engine)

Reviews

## What our customers say

## More from OneDrive

- [ **OneDrive to Google Drive** Google Drive is a cloud storage solution for uploading, sharing, and collaborating on files across devices...](https://apiant.ai/connect/onedrive-to-google-drive)
- [ **OneDrive to GoodAPI: Plant Trees** GoodAPI: Plant Trees is an app that allows you to seamlessly plant trees that help restore natural habits...](https://apiant.ai/connect/onedrive-to-goodapi-plant-trees)
- [ **OneDrive to Google Books** REST API for searching Google's book catalog, retrieving book metadata, and managing user bookshelves.](https://apiant.ai/connect/onedrive-to-google-books)
- [ **OneDrive to HubSpot** HubSpot is your all-in-one stop for all of your marketing software needs.](https://apiant.ai/connect/onedrive-to-hubspot)
- [ **OneDrive to Salesforce** Salesforce is a leading enterprise customer relationship management (CRM) platform.](https://apiant.ai/connect/onedrive-to-salesforce)
- [ **OneDrive to Slack** Slack is a messaging platform for teams. Post messages, manage channels, users, reminders, and react to...](https://apiant.ai/connect/onedrive-to-slack)

## More into AI Engine

- [ **HubSpot to AI Engine** HubSpot is your all-in-one stop for all of your marketing software needs.](https://apiant.ai/connect/hubspot-to-ai-engine)
- [ **Salesforce to AI Engine** Salesforce is a leading enterprise customer relationship management (CRM) platform.](https://apiant.ai/connect/salesforce-to-ai-engine)
- [ **Slack to AI Engine** Slack is a messaging platform for teams. Post messages, manage channels, users, reminders, and react to...](https://apiant.ai/connect/slack-to-ai-engine)
- [ **Google Sheets to AI Engine** Google Sheets](https://apiant.ai/connect/google-sheets-to-ai-engine)
- [ **Gmail to AI Engine** Gmail is Google’s email service, featuring spam protection, search functions, and seamless integration with...](https://apiant.ai/connect/gmail-to-ai-engine)
- [ **Google Calendar to AI Engine** Google Calendar is a time management tool providing scheduling features, event reminders, and integration...](https://apiant.ai/connect/google-calendar-to-ai-engine)

Questions

## OneDrive and AI Engine, answered

###

### What can start an automation from OneDrive?

Any of OneDrive's 9 triggers in the catalog, including File Updated, Item Moved or Renamed, New Version Created and OneDrive File Created Trigger. Describe the moment in plain language and your agent picks the right one.

###

### What can your agent do in AI Engine when something happens in OneDrive?

Any of AI Engine's 8 actions, including Add facial repository, Analyze faces, Compare faces and Detect labels. Your agent maps the data both ways and tests every scenario before it ships.

###

### Can it also run from AI Engine to OneDrive?

AI Engine has no triggers in the catalog today, so automations start in OneDrive. If you need the other direction, ask: your agent reads AI Engine's API documentation and adds it.

###

### Do I have to build a connector for OneDrive or AI Engine?

No. Both are in the catalog with their triggers and actions. You describe the automation; your agent builds it, tests every scenario and keeps it running.

###

### Can my AI client use OneDrive and AI Engine without building an automation?

Yes. With your AI client connected to APIANT, ask it to do something in either app once and it runs that action on the spot. Ask for an automation and your agent builds it, tests every scenario and keeps it running. One connection covers both.

###

### What happens when something fails?

Your agent works that out for you. It plans the failure paths along with the happy path, then tests every scenario before it ships.

###

### Is there a free plan?

Yes. Every plan includes the agent, including free, and building from your own AI client spends no assistant credits.
