Skip to main content
GET
Search OneDrive and SharePoint files as the calling member

Authorizations

x-api-key
string
header
required

Organization API key passed as the x-api-key header. The raw key is the header value; do not prefix it with Bearer.

Query Parameters

query
string
required

Text to search in file names and content.

Required string length: 1 - 500
maxResults
integer
default:10

Maximum files to return, capped at 25.

Required range: 1 <= x <= 25
pageToken
string

nextPageToken from the previous page of the same search.

Pattern: ^\d{1,6}$

Response

Files returned.

ok
boolean
required
files
object[]
required
scope
enum<string>
required

all: every OneDrive and SharePoint file the member can open; myDrive: only their own OneDrive, because the connection lacks the all-files permission.

Available options:
all,
myDrive
nextPageToken
string | null
required