Skip to content
Notice This app is in Beta Testing We are still testing Record Sender, so features may change.
Sign in

Search — API reference

One search across mail, contacts, calendar, files, documents, chat, meetings, tasks and people; suggestions as you type; saved and recent searches (the person's own); content-free analytics. Permission filtering happens inside every domain's query.

← All groups
GET /api/v1/search

Search everything

`q` takes operators (`type:`, `from:`, `to:`, `with:`, `has:`, `is:`, `in:`, `filetype:` …). The semantic (AI) leg spends `brain.search` credits when the account has them; without credits, or with `semantic=false`, the search is keyword-only and free.

Scope: search:read · uses AI credits · search.index

ParameterInTypeDescription
qquerystringThe query (alias `query`)
typesquerystringComma-separated types: mail, contacts, calendar, files, documents, chat, meetings, tasks, people
withquerystringA person (address or name)
datequerystringweek | month | year | older
workspace_idquerystring (uuid)
labelquerystring
file_typequerystring
semanticquerybooleanDefault true
limitqueryintegerDefault 40, at most 100
Responses 200 · 401 · 403 · 429

200 Success

search * SearchResults
fields

SearchResults

facets object
fields
dates [object]
fields
count integer
value string
file_types [object]
fields
count integer
value string
labels [object]
fields
count integer
value string
people [object]
fields
count integer
value string
types [object]
fields
count integer
type string
workspaces [object]
fields
count integer
id string (uuid)
name string
fuzzy boolean Typo tolerance kicked in
query string
results [SearchHit]
fields

SearchHit

at string | null
file_type string | null
id string
labels any
meta object | null
path string | null Relative to `/app` or `/business`
people any
person any
score number | null
signals [string]
snippet string | null
snippet_marked string | null
title string | null
title_marked string | null With highlight marks
type string
workspace_id string | null
semantic_used boolean
suggestion string | null Did you mean
took_ms integer
total integer

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

GET /api/v1/search/analytics

Search analytics (no content)

Needs `knowledge:manage`. Queries searched by fewer than `min_searchers` people are only counted (`hidden_queries`).

Scope: search:read · search.analytics

ParameterInTypeDescription
daysqueryintegerDefault 30, at most 365
Responses 200 · 401 · 403 · 429

200 Success

analytics * object
fields
avg_ms number | null
days integer
hidden_queries integer
min_searchers integer
searchers integer
searches integer
semantic_share number Percent that ran AI search
top [object]
fields
avg_results any
count integer
query string
searchers integer
zero [object]
fields
avg_results any
count integer
query string
searchers integer
zero_rate number Percent with no results

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

DELETE /api/v1/search/recent

Clear the person's recent searches

Scope: search:read · search.clear_recent

Responses 204 · 401 · 402 · 403 · 422 · 429

204 Done (no content)

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/search/recent

The person's recent searches

Scope: search:read · paginated · search.recent

ParameterInTypeDescription
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage size
Responses 200 · 401 · 403 · 429

200 Success

has_more boolean
next_cursor string | null Pass as `cursor` for the next page; null on the last
recent * [string]

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

GET /api/v1/search/saved

The person's saved searches

Scope: search:read · paginated · search.saved

ParameterInTypeDescription
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage size
Responses 200 · 401 · 403 · 429

200 Success

has_more boolean
next_cursor string | null Pass as `cursor` for the next page; null on the last
saved * [SavedSearch]
fields

SavedSearch

filters object | null types, with, date, label, file_type
id string (uuid)
inserted_at string (date-time)
last_run_at string | null
name string | null
pinned boolean
query string

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

POST /api/v1/search/saved

Save a search

Scope: search:read · Idempotency-Key · search.create_saved

Request body application/json

SavedSearchInput

filters object types, with, date, label, file_type
name string
pinned boolean
query string Required when creating
Responses 201 · 401 · 402 · 403 · 409 · 422 · 429

201 Success

saved * SavedSearch
fields

SavedSearch

filters object | null types, with, date, label, file_type
id string (uuid)
inserted_at string (date-time)
last_run_at string | null
name string | null
pinned boolean
query string

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 Problem details (409)

422 `invalid`: query is required, or bad fields

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

DELETE /api/v1/search/saved/{id}

Delete a saved search

Scope: search:read · search.delete_saved

ParameterInTypeDescription
id *pathstring (uuid)
Responses 204 · 401 · 402 · 403 · 404 · 422 · 429

204 Done (no content)

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)

PATCH /api/v1/search/saved/{id}

Change a saved search

Scope: search:read · search.update_saved

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json

SavedSearchInput

filters object types, with, date, label, file_type
name string
pinned boolean
query string Required when creating
Responses 200 · 401 · 402 · 403 · 404 · 422 · 429

200 Success

saved * SavedSearch
fields

SavedSearch

filters object | null types, with, date, label, file_type
id string (uuid)
inserted_at string (date-time)
last_run_at string | null
name string | null
pinned boolean
query string

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/search/saved/{id}/run

Run a saved search

Runs its query with its filters (the semantic leg spends credits when available).

Scope: search:read · uses AI credits · search.run_saved

ParameterInTypeDescription
id *pathstring (uuid)
limitqueryintegerDefault 40, at most 100
Responses 200 · 401 · 403 · 404 · 429

200 Success

saved * SavedSearch
fields

SavedSearch

filters object | null types, with, date, label, file_type
id string (uuid)
inserted_at string (date-time)
last_run_at string | null
name string | null
pinned boolean
query string
search * SearchResults
fields

SearchResults

facets object
fields
dates [object]
fields
count integer
value string
file_types [object]
fields
count integer
value string
labels [object]
fields
count integer
value string
people [object]
fields
count integer
value string
types [object]
fields
count integer
type string
workspaces [object]
fields
count integer
id string (uuid)
name string
fuzzy boolean Typo tolerance kicked in
query string
results [SearchHit]
fields

SearchHit

at string | null
file_type string | null
id string
labels any
meta object | null
path string | null Relative to `/app` or `/business`
people any
person any
score number | null
signals [string]
snippet string | null
snippet_marked string | null
title string | null
title_marked string | null With highlight marks
type string
workspace_id string | null
semantic_used boolean
suggestion string | null Did you mean
took_ms integer
total integer

401 Problem details (401)

403 Problem details (403)

404 Problem details (404)

429 Problem details (429)

GET /api/v1/search/suggest

Suggestions as you type

Free: operator values, recent and saved searches, people, contacts and graph entities.

Scope: search:read · paginated · search.suggest

ParameterInTypeDescription
qquerystringWhat has been typed
limitqueryintegerDefault 8, at most 20
cursorquerystringThe `next_cursor` of the previous page
Responses 200 · 401 · 403 · 429

200 Success

has_more boolean
next_cursor string | null Pass as `cursor` for the next page; null on the last
suggestions * [SearchSuggestion]
fields

SearchSuggestion

kind string operator | recent | saved | person | contact | entity:<type> …
label string
url string | null
value string The text to put in the box

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)