Skip to main content
POST
/
google
/
drive
/
upload-file
Upload File to Drive Folder
curl --request POST \
  --url https://api.adside.ai/google/drive/upload-file \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'folder_id=<string>' \
  --form file='@example-file' \
  --form 'file_name=<string>' \
  --form 'mime_type=<string>'
{
  "error": "<string>",
  "code": "UNAUTHORIZED"
}

Documentation Index

Fetch the complete documentation index at: https://docs.adside.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key (sk_live_*) — SHA256 hashed, looked up in Redis. Generate via the web app's workspace settings.

Body

multipart/form-data
folder_id
string
required

Google Drive target folder ID

file
file
required

Local file to upload

file_name
string

Optional uploaded file name override

mime_type
string

Optional uploaded MIME type override

Response

Uploaded Drive file result