Files API for Google Drive and OneDrive
Join 200,000+ of the world’s most ambitious developers and builders
- Case study
- Case study
One API. Google Drive and OneDrive
Connect a Google or Microsoft account and call the same file endpoints for both
- Google Drive
- Gmail
- Google Calendar
- Google Contacts
Google Drive, file by file
Files your app uploads or the user picks in Google Picker, nothing else in their drive.
Explore Google- OneDrive
- Outlook
- Outlook Calendar
- Outlook Contacts
OneDrive, the whole drive
List, search, upload and share across the user’s OneDrive.
Explore Microsoft
From signup to first upload in three steps
- 01
Get your API key
Sign up free and create a key in the dashboard.
- 02
Connect Google or Microsoft
Request a connect link with the areas you need. Each account gets an ID for API calls.
- 03
Upload to their drive
POST /v1/files takes a file or a public URL and returns the stored file.
Everything you need for files
Browse
- List foldersChildren of any folder, folders first
- Search by nameAcross the drive, shared drives included
- DownloadDocs as PDF, Sheets as XLSX
- File detailsName, type, size and parent
Write
- Upload a fileMultipart, resumable for large files
- Upload from a URLFetched for you, up to 100 MB
- Convert on uploadTo Google Docs, Sheets or Slides
- Create foldersAnywhere in the drive
- Rename and moveOne PATCH for either
- TrashRecoverable from the drive’s bin
Share and listen
- Share linksView link for anyone holding it
- Google PickerHosted page for the user to pick files
- drive.file scopeOnly files you created or were given
- file.*Created, updated, deleted and picked
- Post to socialAttach a drive file to any post
Verified consent screens, no app review on your side
Ask only for the areas you need (email, calendar, files or contacts) and your users grant just those. How we handle user data
Verified for restricted Gmail and Drive scopes
CASA Tier 2 security assessed by an independent, authorized lab, renewed every year.
No restricted-scope review or CASA assessment for you to run.
Drive uses drive.file: only files your users pick or your app creates.
Microsoft publisher verified
Your users see Tevanio as a verified publisher on the Microsoft consent screen.
No publisher verification for you to set up.
More on the same API key
Posting, DMs, analytics, and ads run on the same API and the same connected accounts.
Frequently asked questions
Add Google Drive and OneDrive to your app
Connect a drive, upload the first file and get a webhook when it changes.
- Drive + OneDrive
- Share links
- Webhooks