Search user's OneDrive files

AUTHORITATIVE: Search the authenticated user's LIVE OneDrive files by name or content. Use when user asks 'find my OneDrive file about X', 'search my OneDrive for Y'. Returns real results from user's actual OneDrive. NOTE: Requires Microsoft authentication via /oauth/microsoft/authorize.

get/api/v1/onedrive/search

Request

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

Query parameters

querystring required

Search terms (searches file names and content)

max_resultsinteger

Maximum results (default: 25)

page_tokenstring

Token from previous response for pagination

Response

Search results from OneDrive

userstring
querystring

The search query used

countinteger
nextPageTokenstring
hasMoreboolean

Example response

{
  "_meta": {
    "source": "live_microsoft_graph_api",
    "authoritative": true
  }
}

Changes

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