Skip to main content
Microsoft
OneDrive Dev Center
OneDrive Dev Center
  • Home
    • Docs
    • Training
    • Blog
    • Samples & SDKs
    • Tools
    • Videos & Podcasts
    • All Resources
    • Join Now
    • My Dashboard
    • Docs
    • FAQ
    • OneDrive on Stack Overflow
    • OneDrive on GitHub
    • Suggest features on UserVoice
    • Office Assisted Support
      • Microsoft 365
      • Azure
      • Office 365
      • Dynamics 365
      • Power Platform
      • Windows 10
      • Windows Server
      • Enterprise Mobility + Security
      • Power BI
      • Teams
      • Visual Studio
      • Microsoft Advertising
      • AI
      • Internet of Things
      • Azure Cognitive Services
      • Quantum
      • Microsoft HoloLens
      • Mixed Reality
      • Docs
      • Developer Center
      • Windows Dev Center
      • Windows IT Pro Center
      • FastTrack
      • Power Platform
      • Partner Network
      • Solution Providers
      • Partner Center
      • Cloud Hosting
      • Education
      • Financial services
      • Government
      • Health
      • Manufacturing & resources
      • Retail
      • Security
      • Licensing
      • AppSource
      • Azure Marketplace
      • Events
      • Research
    • View Sitemap
    OneDrive API works on every platform

    Connect your app to billions of cloud files

    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.

    READ THE DOCS

    Build engaging experiences connected to OneDrive

    Add seamless file storage

    Easily add file storage to your app and connect to Office 365 files with just a few lines of code.

    LEARN MORE

    Share and collaborate at scale

    Use OneDrive's robust sharing and collaboration tools to share between teams, organizations, or the world.

    LEARN MORE

    Engage more users

    Connect your app to millions of users and engage with customers where they already do their work every day.

    LEARN MORE

    Supported platforms

    Python

    DevOffice_Microsoft2

    Microsoft

    iOS

     

    node.js

    DevOffice_RubyRails

    Ruby

     

    php

    START BUILDING A SOLUTION
    Upload Search Share Convert to PDF

    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.

    VIEW THE DOCS

    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.

    READ THE DOCS

    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.

    READ THE DOCS

    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.

    READ THE DOCS

    curl https://graph.microsoft.com/v1.0/me/drive/root:/document1.docx:/content?format=pdf -o document1.pdf -H "Authorization: bearer access_token_here"

    Get resources

    Documentation

    READ DOCS

    Code

    DOWNLOAD SAMPLES

    Events

    REGISTER

    Training

    START NOW

    Blogs

    STAY CURRENT
    Follow us
    Share this page
    What's new
    • Surface Duo
    • Surface Laptop Go
    • Surface Pro X
    • Surface Go 2
    • Surface Book 3
    • Microsoft 365
    • Windows 10 apps
    • HoloLens 2
    Microsoft Store
    • Account profile
    • Download Center
    • Microsoft Store support
    • Returns
    • Order tracking
    • Virtual workshops and training
    • Microsoft Store Promise
    • Financing
    Education
    • Microsoft in education
    • Office for students
    • Office 365 for schools
    • Deals for students & parents
    • Microsoft Azure in education
    Enterprise
    • Azure
    • AppSource
    • Automotive
    • Government
    • Healthcare
    • Manufacturing
    • Financial services
    • Retail
    Developer
    • Microsoft Visual Studio
    • Windows Dev Center
    • Developer Center
    • Microsoft developer program
    • Channel 9
    • Office Dev Center
    • Microsoft Garage
    Company
    • Careers
    • About Microsoft
    • Company news
    • Privacy at Microsoft
    • Investors
    • Diversity and inclusion
    • Accessibility
    • Security
    English (United States)
    • Sitemap
    • Contact Microsoft
    • Privacy
    • Manage cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2021

    Sign in required


    Your session has expired. Please sign-in again to continue. Unfortunately any unsaved changes will be lost.

    Sign in