List user's OneDrive files

AUTHORITATIVE: Returns LIVE list of files from the authenticated user's Microsoft OneDrive. Use when user asks 'show my OneDrive files', 'what's in my OneDrive'. Supports pagination and folder navigation. NOTE: If not authenticated with Microsoft, user must visit /oauth/microsoft/authorize first.

get/api/v1/onedrive/files

Request

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

Query parameters

folder_pathstring

Folder path ('root' for root, or path like 'Documents/Projects', or 'id:FOLDER_ID')

max_resultsinteger

Files per page (default: 100, max: 1000)

page_tokenstring

Token from previous response to get next page

Response

LIVE file list from user's OneDrive

userstring
countinteger

Number of files in this page

nextPageTokenstring

Token to get next page (null if no more pages)

hasMoreboolean

Whether more files are available

Changes

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