Configure Google Drive
User
Configure Google Drive
Configure Google Drive delivery for your downloads
POST
Configure Google Drive
Overview
Deliver uploaded videos to a Google Drive folder using a service account. Credentials are verified with a live Drive API call before saving.Google Drive uses service account authentication (the same kind of JSON key as GCS) and resumable uploads. The service account must have access to the target folder — share the Drive folder with the service account’s email address.
Header Parameters
string
required
Your API key for authentication
Request Body
string
required
Service account JSON credentials (the entire JSON file content as a string).
string
Target Drive folder ID (the part after
/folders/ in the folder URL). Leave empty to upload to the service account’s own Drive root. Default: "" (root).string
Optional folder prefix for organizing uploads (e.g.,
downloads/2024/)string
default:"videos"
Base folder name for uploaded files. Defaults to
videos if not specified.Response
string
Success confirmation message
string
Storage provider type:
gdrivestring
The configured target folder ID (empty when using the service account root)
string
The configured folder prefix (if provided)
Examples
Success Response
Error Responses
Setup
1
Create a service account
In Google Cloud Console, go to IAM & Admin > Service Accounts > Create Service Account, then create a JSON key under Keys > Add Key.
2
Enable the Drive API
Enable the Google Drive API for the service account’s project.
3
Share the target folder
In Google Drive, share the destination folder with the service account’s email address (
...@PROJECT.iam.gserviceaccount.com) and grant Editor access. Copy the folder ID from the URL (drive.google.com/drive/folders/<FOLDER_ID>).4
Configure Tornado
Send the
folder_id and the minified service_account_json to POST /user/gdrive.Google Drive is available as a pre-configured delivery target via this endpoint only. It is not supported as inline
storage credentials in POST /jobs (inline storage supports S3, Azure Blob, GCS, and Alibaba OSS).