Read file content from user's OneDrive

AUTHORITATIVE: Read the actual content of a file from the user's OneDrive. Supports Word docs, Excel files, PowerPoint, PDFs, and text files. Use when user asks to 'open my OneDrive file', 'read my document from OneDrive'. NOTE: Requires Microsoft authentication via /oauth/microsoft/authorize.

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

Request

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

Path parameters

file_idstring required

OneDrive 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 OneDrive

userstring
file_idstring
namestring
mimeTypestring
contentunknown

Changes

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