OneDrive for Business

Integrate your application with the OneDrive for Business API

🚀 Quickstart

Connect to OneDrive for Business with Tenklo and see data flow in 2 minutes.

Create the integration

In Tenklo (free signup), go to Integrations -> Configure New Integration -> OneDrive for Business.

Authorize OneDrive for Business

Go to Connections -> Add Test Connection -> Authorize, then log in to OneDrive for Business. Later, you'll let your users do the same directly from your app.

Call the OneDrive for Business API

Let's make your first request to the OneDrive for Business API. Replace the placeholders below with your Environment API key, integration ID, and connection ID:

curl "https://api.tenklo.dev/proxy/v1.0/me/drives" \
  -H "Authorization: Bearer <NANGO-API-KEY>" \
  -H "Provider-Config-Key: <INTEGRATION-ID>" \
  -H "Connection-Id: <CONNECTION-ID>"

Or fetch credentials with the Node SDK or API.

✅ You're connected! Check the Logs tab in Tenklo to inspect requests.

Implement Tenklo in your app

Follow our Auth implementation guide to integrate Tenklo in your app.

To obtain your own production credentials, follow the setup guide linked below.

📚 OneDrive for Business Integration Guides

Tenklo maintained guides for common use cases.

Official docs: Microsoft Graph API documentation

🧩 Pre-built syncs & actions for OneDrive for Business

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

Others

Function nameDescriptionTypeSource code
copy-itemCopy a file or folder to another locationAction🔗 Github
create-folderCreate a folder in OneDrive.Action🔗 Github
create-sharing-linkCreate a share link for a file or folder.Action🔗 Github
create-upload-sessionStart a resumable upload for a large file.Action🔗 Github
delete-itemDelete a file or folder.Action🔗 Github
delete-permissionRemove a sharing permission from an itemAction🔗 Github
get-driveRetrieve the user drive metadata.Action🔗 Github
get-itemRetrieve a file or folder by ID or pathAction🔗 Github
get-permissionRetrieve a sharing permission on an itemAction🔗 Github
invite-recipientsGrant item access to recipients and optionally send invitations.Action🔗 Github
list-childrenList items under a folderAction🔗 Github
list-drivesList drives available to the authenticated user.Action🔗 Github
list-permissionsList sharing permissions on an itemAction🔗 Github
list-recent-itemsList recently used items from the user drive.Action🔗 Github
list-shared-itemsList items shared with the user.Action🔗 Github
list-versionsList versions for a file.Action🔗 Github
move-itemMove or rename a file or folderAction🔗 Github
search-itemsSearch drive items by keywordAction🔗 Github
update-itemUpdate mutable file or folder metadata.Action🔗 Github
upload-small-fileUpload a small file in a single request.Action🔗 Github
drive-itemsSync the OneDrive file and folder hierarchy using drive root delta.Sync🔗 Github
folder-childrenSync children for selected foldersSync🔗 Github
recent-itemsSync recently used drive items from OneDriveSync🔗 Github
shared-itemsSync items shared with the userSync🔗 Github
user-files-selectionSync selected OneDrive files from metadataSync🔗 Github
user-filesSync file metadata from the user OneDriveSync🔗 Github

On this page