Upload and share a file via Google Drive API

domain: google-drive · 4 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Multipart upload: POST /upload/drive/v3/files?uploadType=multipart with metadata JSON + media parts
  2. For >5MB use resumable: uploadType=resumable, then PUT chunks to the session URL
  3. Share: POST /drive/v3/files/{id}/permissions with {role, type} (e.g. reader/anyone)
  4. Get webViewLink from files.get?fields=webViewLink

Known gotchas

Related routes

Upload a file and publish an article via the figshare API
api.figshare.com · 6 steps · unrated
Publish a LinkedIn share via API
linkedin-api · 4 steps · unrated
Upload a track to SoundCloud via the API using multipart form data
developers.soundcloud.com · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans