OneDrive is enterprise content storage for all. Learn how to connect to billions of files and access the power of Office 365 to drive customer value in your app.
Easily add file storage to your app and connect to Office 365 files with just a few lines of code.
Use OneDrive's robust sharing and collaboration tools to share between teams, organizations, or the world.
Connect your app to millions of users and engage with customers where they already do their work every day.
Python
Microsoft
iOS
node.js
Ruby
php
Upload content with ease
Upload a file up to 4MB with a single request, or use createUploadSession to upload files up to 15GB with resumable transfers.
Learn more
curl https://graph.microsoft.com/v1.0/me/drive/root:/document1.docx:/content -X PUT -d @document1.docx -H "Authorization: bearer access_token_here"
Help your users quickly find what they’re looking for
Search for documents within a folder or across all files a user can access, all with a single request.
curl https://graph.microsoft.com/v1.0/me/drive/search(q='query-text') -H "Authorization: bearer access_token_here"
Enterprise sharing, without the work
Quickly share a file anonymously, within an org, or between organizations with a sharing link.
curl https://graph.microsoft.com/v1.0/me/drive/root:/document1.docx:/createLink -X POST -d '{"type": "view"}' -H "Authorization: bearer access_token_here"
Convert files to the format you need
Convert documents to PDF, or fetch thumbnails for over 200 different formats your app can preview without directly supporting.
curl https://graph.microsoft.com/v1.0/me/drive/root:/document1.docx:/content?format=pdf -o document1.pdf -H "Authorization: bearer access_token_here"
Documentation
Code
Community calls
Training
Blogs
Microsoft 365 dev community
Learn from others.
Microsoft Q&A forum
Ask the developer community questions about your code.
Feature suggestions
Submit an idea on the Microsoft 365 Developer Platform ideas forum.
Stack Overflow
Programming questions about OneDrive.