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.
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.
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.
- How to register your own OneDrive for Business OAuth app
Register an OAuth app with Microsoft and obtain credentials to connect it to Tenklo
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 name | Description | Type | Source code |
|---|---|---|---|
copy-item | Copy a file or folder to another location | Action | 🔗 Github |
create-folder | Create a folder in OneDrive. | Action | 🔗 Github |
create-sharing-link | Create a share link for a file or folder. | Action | 🔗 Github |
create-upload-session | Start a resumable upload for a large file. | Action | 🔗 Github |
delete-item | Delete a file or folder. | Action | 🔗 Github |
delete-permission | Remove a sharing permission from an item | Action | 🔗 Github |
get-drive | Retrieve the user drive metadata. | Action | 🔗 Github |
get-item | Retrieve a file or folder by ID or path | Action | 🔗 Github |
get-permission | Retrieve a sharing permission on an item | Action | 🔗 Github |
invite-recipients | Grant item access to recipients and optionally send invitations. | Action | 🔗 Github |
list-children | List items under a folder | Action | 🔗 Github |
list-drives | List drives available to the authenticated user. | Action | 🔗 Github |
list-permissions | List sharing permissions on an item | Action | 🔗 Github |
list-recent-items | List recently used items from the user drive. | Action | 🔗 Github |
list-shared-items | List items shared with the user. | Action | 🔗 Github |
list-versions | List versions for a file. | Action | 🔗 Github |
move-item | Move or rename a file or folder | Action | 🔗 Github |
search-items | Search drive items by keyword | Action | 🔗 Github |
update-item | Update mutable file or folder metadata. | Action | 🔗 Github |
upload-small-file | Upload a small file in a single request. | Action | 🔗 Github |
drive-items | Sync the OneDrive file and folder hierarchy using drive root delta. | Sync | 🔗 Github |
folder-children | Sync children for selected folders | Sync | 🔗 Github |
recent-items | Sync recently used drive items from OneDrive | Sync | 🔗 Github |
shared-items | Sync items shared with the user | Sync | 🔗 Github |
user-files-selection | Sync selected OneDrive files from metadata | Sync | 🔗 Github |
user-files | Sync file metadata from the user OneDrive | Sync | 🔗 Github |