Search content
const url = 'https://example.com/api/v1/search?q=example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/api/v1/search?q=example' \ --header 'Authorization: Bearer <token>'Searches for the content. It requires a signed-in User with the data scope. It can return 400 if the request is invalid, 401 if the session is missing or expired and 403 if access is denied. Route: /api/v1/search. Inputs: q, limit, show_hidden, semantic. Safe reads can use bounded retries.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Text to search for.
Most hits each provider may return (1 to 200, default 20). The search window asks for more as the user scrolls its full view.
Accepted for client compatibility. Search always excludes hidden paths.
Return Search Plugin keyword hits only when false. True or omitted keeps hybrid results from every Plugin.
Responses
Section titled “Responses”Search results completed before the request deadline
Results from the server-side search fan-out.
object
Search index progress, when an Index is available.
object
Searchable paths scanned in the current pass.
True while the Index is being scanned or repaired.
Percentage of searchable paths scanned, when the scan size is known.
Total searchable paths in the current pass, when known.
Search hits returned by providers that completed before the deadline.
A single result from a server-side plugin search provider.
object
Client route for opening the result.
Stable result identifier within the plugin.
Optional result kind from the search grammar (note, task, log,
photo, bookmark, text, file, folder, event). Clients group and facet
results by it; a missing kind means the provider does not know it.
Optional media/document MIME type used to render file results consistently.
Optional last-modified time (or the day of a log entry) in Unix seconds.
Optional Home-relative client path of the object (for example
Files/plan.pdf, or Shared/<owner>/… for a Share). Clients use it
for thumbnails, previews and folder facets.
Plugin that owns the result.
Optional provider relevance score. Clients must not compare scores from different providers as if they shared one scale.
Optional preview text.
Ordered Event categories. Calendar clients use the first tag for tint.
Main result label.
True when the request deadline stopped one or more providers.
Examplegenerated
{ "indexing": { "completed_items": 1, "indexing": true, "progress_percent": 1, "total_items": 1 }, "results": [ { "href": "example", "id": "example", "kind": "example", "mime": "example", "modified": 1, "path": "example", "plugin_id": "example", "score": 1, "snippet": "example", "tags": [ "example" ], "title": "example" } ], "timed_out": true}Invalid search query
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}Authentication is required
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}Data access is required
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}