Connect OneDrive to Definable AI

OneDrive is Microsoft’s cloud storage solution enabling users to store, sync, and share files across devices, offering offline access, real-time collaboration, and enterprise-grade security

About OneDrive

OneDrive is a productivity tool. Connect it to Definable AI with one-click OAuth2 — no API keys or custom code required.

What you can automate with OneDrive

Use Definable AI's agent platform to trigger workflows from OneDrive, process results with 50+ AI models, and sync data across 900+ connected apps.

Tools & Actions (39 available)

  • 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.
  • Create Sharing 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.
  • Create a new text file: Creates a new text file with specified content in the authenticated user's personal OneDrive, using either the folder's unique ID or its absolute path relative to the user's OneDrive root (paths are automatically resolved to IDs); note that OneDrive may rename or create a new version if the filename already exists. This action only works with the user's personal OneDrive (/me/drive) and does not support SharePoint document libraries or shared drives.
  • 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.
  • 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.
  • Download a file: Downloads a file from a user's OneDrive using its item ID, which must refer to a file and not a folder.
  • 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.
  • Find Item: Non-recursively finds an item (file or folder) in a specified OneDrive folder; if `folder` is provided as a path, it must actually exist.
  • 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.
  • Get Drive 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.
  • Get DriveItem 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.
  • Get Item Metadata: 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.
  • 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.
  • Get Item Thumbnails: Tool to retrieve the thumbnails associated with a DriveItem. Use when you need to display visual previews of files.
  • 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.
  • Get Recent Items: Get files and folders recently accessed by the user. Returns items based on activity history (opened, edited, viewed), sorted by most recent first. Use when you need to see what the user worked on recently (e.g., 'Show me files I worked on today'). Different from search - this tracks activity, not content.
  • 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.
  • Get SharePoint 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.
  • 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.
  • 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.
  • 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).
  • 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.
  • 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.
  • List Folder Children: List the direct children (files/folders) of a OneDrive/SharePoint folder by DriveItem ID or path. Returns reliable pagination tokens/nextLink 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.
  • List OneDrive items: Retrieves all files and folders as `driveItem` resources from the root of a specified user's OneDrive, automatically handling pagination.
  • 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.
  • 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.
  • 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.
  • 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.
  • List Site Lists: Tool to list all lists under a specific SharePoint site. Use when you need to enumerate lists within a known site. IMPORTANT: This action only works with organizational Microsoft 365 accounts (Azure AD/Entra ID accounts). It is NOT supported for personal Microsoft accounts (MSA/Outlook.com/Hotmail accounts). Personal OneDrive users cannot access SharePoint sites through this endpoint.
  • 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.
  • List Subscriptions: Tool to list the current subscriptions for the authenticated user or app. Use this to retrieve details of existing webhook subscriptions.
  • 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.
  • 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.
  • Restore Deleted Item: Tool to restore a deleted OneDrive driveItem (file or folder) from the recycle bin. Use when you need to recover a deleted item to its original location or to a specified parent folder, optionally renaming it during restoration. IMPORTANT LIMITATION: This API is ONLY available for OneDrive Personal accounts. It does NOT work with OneDrive for Business or SharePoint. For Business/SharePoint accounts, use the SharePoint REST API endpoints (/_api/web/recyclebin) instead.
  • Search Items: Search OneDrive for files and folders by keyword. Searches filenames, metadata, and file content to find matching items. Use when you need to find specific files based on keywords, file types, or content (e.g., 'Find all PDFs containing budget'). Supports filtering, sorting, and pagination.
  • 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.
  • Update File Content: Tool to create an upload session for updating an existing file's content in OneDrive. Use when you need to overwrite/update an existing DriveItem's content while preserving its item ID, avoiding duplicate copies and maintaining existing share links.
  • Upload file: Uploads a file to a specified OneDrive folder, automatically creating the destination folder if it doesn't exist, renaming on conflict, and supporting large files via chunking.

How to connect OneDrive

  1. Sign in to Definable AI and go to Apps
  2. Search for OneDrive and click Connect
  3. Authorize via OAuth2 — takes under 30 seconds
  4. Use OneDrive actions in your AI agents and workflows