Skip to content

Files API for Google Drive and OneDrive

Upload, list, download and share files in your users’ Google Drive and OneDrive with one REST API, with a webhook when files change.

  • Drive + OneDrive
  • Share links
  • Webhooks

Join 200,000+ of the world’s most ambitious developers and builders

  • Case study
  • Case study
How it works

From signup to first upload in three steps

  1. 01

    Get your API key

    Sign up free and create a key in the dashboard.

  2. 02

    Connect Google or Microsoft

    Request a connect link with the areas you need. Each account gets an ID for API calls.

  3. 03

    Upload to their drive

    POST /v1/files takes a file or a public URL and returns the stored file.

Features

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
Security

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

  • CASA Tier 2: Cloud Application Security Assessment, assessed annuallyCloud Application Security AssessmentCASATIER 2assessed annually

    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.

Frequently asked questions

One set of endpoints for cloud drives from different providers. With Tevanio you connect a Google or Microsoft account and call /v1/files for both: the same list, upload, download, folder, move and share requests, whichever drive sits behind the account.

No. On Google Drive, Tevanio only sees files your app uploaded and files the user picks themselves. To get access to other files, send the user to a Google file picker that Tevanio hosts (POST /v1/files/picker-sessions). A file.picked webhook tells you when they’re done. OneDrive gives access to the whole drive, so it has no picker step.

Uploads from a URL are capped at 100 MB. Multipart uploads stream to the provider, and large files go through the provider’s resumable upload.

Yes. If the file is shared with “Anyone with the link”, paste the Drive link as the media url in your post. You don’t need to connect an account. For a private file, connect the user’s Google Drive or OneDrive and send { fileId, accountId } instead. Tevanio saves its own copy of the file when the post is created, so platforms never have to reach Drive. A private, deleted or over-5 GB file returns an error right away, before anything is saved.

Google Docs, Slides and Drawings download as PDF or PNG and Google Sheets as XLSX, named with the export extension.

Subscribe to the file.created, file.updated and file.deleted webhooks. Tevanio watches each connected drive, so there is no polling loop to run.

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