Get search history
Retrieve the authenticated user's persisted search history.
Returns searches the user owns along with searches shared with them, scoped to the caller's organization. Archived and deleted entries are excluded. Citation references on this endpoint are returned as raw identifier strings; use GET /search/{searchId} to fetch a single search with its citations fully expanded.
Pagination defaults to page=1, limit=20 (maximum limit is 100). Results are sorted by most recent activity by default.
Query parameters
Page number to return. Must be within [1, 1000].
Number of items per page. Values are clamped to the range [1, 100].
Field used to sort results. Any value other than createdAt, lastActivityAt, or title is treated as lastActivityAt.
Sort direction applied to sortBy.
Case-insensitive substring to match against a search's title and message content. Regex metacharacters are escaped automatically. Values longer than 1000 characters are rejected with 400.
Filter results by their shared status. Accepted values are 'true' / '1' (return only shared searches) and 'false' / '0' (exclude shared searches). Matching is case-insensitive and surrounding whitespace is trimmed.
ISO 8601 timestamp used as the lower bound for a search's creation date.
ISO 8601 timestamp used as the upper bound for a search's creation date.
Response
Persisted search history plus pagination, applied/available filter metadata, and a request-scoped meta block.