Read file content from user's Drive

AUTHORITATIVE: Read the actual content of a file from the user's Google Drive. Supports Google Docs, Sheets, PDFs, text files, Excel files. Use when user asks to 'open my file', 'read my document', 'show me what's in X', 'get content of Y'.

get/api/v1/drive/files/{file_id}

Request

  • Base URL: https://localhost:3000
  • URL: https://localhost:3000/api/v1/drive/files/{file_id}
  • Auth: OAuth 2 (authorization code, authorization URL /oauth/authorize, token URL /oauth/token)

Path parameters

file_idstring required

Google Drive file ID (from list or search results)

Query parameters

page_startinteger

Optional 1-based start line for content windowing

page_endinteger

Optional 1-based end line for content windowing

search_termstring

Optional text filter applied to file content

Response

LIVE file content from user's Drive

userstring
file_idstring
contentunknown

Changes

No recorded changes to this operation across all 1 revision of this API.