Skip to main content
Every onedrive.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.

Drive

get

drive.get Get a drive by ID Risk: read
Input Output

getGroup

drive.getGroup Get a group’s drive Risk: read
Input Output

getQuota

drive.getQuota Get the user’s drive and quota information Risk: read
Input Output

getRecentItems

drive.getRecentItems Get recently accessed drive items Risk: read
Input Output

getRoot

drive.getRoot Get the root folder of the user’s drive Risk: read
Input Output

getSharedItems

drive.getSharedItems Get items shared with the user Risk: read
Input Output

getSpecialFolder

drive.getSpecialFolder Get a special folder (documents, photos, cameraroll) Risk: read
Input Output

list

drive.list List available drives Risk: read
Input Output

listActivities

drive.listActivities List activities across the drive Risk: read
Input Output

listBundles

drive.listBundles List bundles in a drive Risk: read
Input Output

listChanges

drive.listChanges List changes to drive items using delta Risk: read
Input Output

Files

createFolder

files.createFolder Create a new folder Risk: write
Input Output

createTextFile

files.createTextFile Create a new text file with content Risk: write
Input Output

findFile

files.findFile Find a file by name Risk: read
Input Output

findFolder

files.findFolder Find a folder by name Risk: read
Input Output

list

files.list List files in the root drive Risk: read
Input Output

upload

files.upload Upload a file to OneDrive Risk: write
Input
Output

Items

checkin

items.checkin Check in a checked-out drive item Risk: write
Input Output

checkout

items.checkout Check out a drive item for editing Risk: write
Input Output

copy

items.copy Copy a drive item Risk: write
Input
Output

delete

items.delete Delete a drive item [DESTRUCTIVE] Risk: destructive
Input Output

deletePermanently

items.deletePermanently Permanently delete a drive item [DESTRUCTIVE] Risk: destructive
Input Output

discardCheckout

items.discardCheckout Discard the checkout of a drive item Risk: write
Input Output

download

items.download Download a file Risk: read
Input Output

downloadAsFormat

items.downloadAsFormat Download a file converted to a different format Risk: read
Input Output

downloadByPath

items.downloadByPath Download a file by path Risk: read
Input Output

downloadVersion

items.downloadVersion Download a specific version of a file Risk: read
Input Output

follow

items.follow Follow a drive item Risk: write
Input Output

get

items.get Get a drive item by ID Risk: read
Input Output

getDriveItemBySharingUrl

items.getDriveItemBySharingUrl Get a drive item by sharing URL Risk: read
Input Output

getFollowed

items.getFollowed Get a followed drive item Risk: read
Input Output

getThumbnails

items.getThumbnails Get thumbnails for a drive item Risk: read
Input Output

getVersions

items.getVersions Get versions of a drive item Risk: read
Input Output

listActivities

items.listActivities List activities on a drive item Risk: read
Input Output

listFolderChildren

items.listFolderChildren List children of a folder Risk: read
Input Output

move

items.move Move a drive item to a new location Risk: write
Input
Output

preview

items.preview Get a preview URL for a drive item Risk: read
Input Output

restore

items.restore Restore a deleted drive item Risk: write
Input Output

items.search Search for drive items Risk: read
Input Output

unfollow

items.unfollow Unfollow a drive item Risk: write
Input Output

updateContent

items.updateContent Update the content of a file Risk: write
Input
Output

updateMetadata

items.updateMetadata Update metadata for a drive item Risk: write
Input
Output

Permissions

createForItem

permissions.createForItem Create a permission for a drive item Risk: write
Input
Output

permissions.createLink Create a sharing link for a drive item Risk: write
Input Output

deleteFromItem

permissions.deleteFromItem Delete a permission from a drive item [DESTRUCTIVE] Risk: destructive
Input Output

deleteSharePermission

permissions.deleteSharePermission Delete a share permission [DESTRUCTIVE] Risk: destructive
Input Output

getForItem

permissions.getForItem Get permissions for a drive item Risk: read
Input Output

getShare

permissions.getShare Get a shared item by share ID or encoded URL Risk: read
Input Output

grantSharePermission

permissions.grantSharePermission Grant a permission on a shared item Risk: write
Input
Output

inviteUser

permissions.inviteUser Invite a user to access a drive item Risk: write
Input
Output

listSharePermissions

permissions.listSharePermissions List permissions on a shared drive item Risk: read
Input Output

updateForItem

permissions.updateForItem Update a permission on a drive item Risk: write
Input Output

Sharepoint

getListItems

sharepoint.getListItems Get items from a SharePoint list Risk: read
Input Output

getSite

sharepoint.getSite Get a SharePoint site by ID Risk: read
Input Output

getSitePage

sharepoint.getSitePage Get a page from a SharePoint site Risk: read
Input Output

listListItemsDelta

sharepoint.listListItemsDelta List changes to SharePoint list items using delta Risk: read
Input Output

listSiteColumns

sharepoint.listSiteColumns List site columns in a SharePoint site Risk: read
Input Output

listSiteItemsDelta

sharepoint.listSiteItemsDelta List changes to all drive items in a site using delta Risk: read
Input Output

listSiteLists

sharepoint.listSiteLists List all lists in a SharePoint site Risk: read
Input Output

listSiteSubsites

sharepoint.listSiteSubsites List subsites of a SharePoint site Risk: read
Input Output

Subscriptions

list

subscriptions.list List all active subscriptions Risk: read
Input: empty object Output