Skip to main content

List my saved searches.

GET/api/v1/saved-searchesdocuments:search

Needs View Saved Document Searches. The caller's own saved searches, newest first, each with its search, its status (pending while the background task caches the result set, completed, failed, needs_rerun for a search saved before result sets were cached, needs_resaving for one that cannot be run as it was stored), the number of documents it matched and a plain-language summary.

Scopedocuments:search
AsynchronousNo
MCP toollist_saved_searches
Portal permissionsview_saved_document_searches
Company capabilitysearch
Pagingsnapshot
Default order-created_at, saved_search_id
Sort fieldscreated_at, saved_search_id

Parameters​

NameInTypeRequiredDescription
limitqueryintegerOptionalDefault: 50; ≥ 1
cursorquerystringOptional
sortquerystringOptionalComma-separated sort fields, - for descending.
Docwize-Versionheaderstring (date)Optional
If-None-MatchheaderstringOptionalAnswers 304 when the representation is unchanged (resources that publish an ETag).

Responses​

StatusDescriptionBody
200Success.application/json object
304Not modified (If-None-Match matched the ETag).
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
410cursor_expiredapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422invalid_cursor, unsupported_for_tenant, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

200 body​

FieldTypeRequiredDescription
itemsarray of SavedSearchRequired
next_cursorstring or nullRequired
warningsarray of objectRequired

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

SavedSearch​

FieldTypeRequiredDescription
cached_hit_countintegerRequiredThe documents cached so far while the run is pending. ≥ -2147483648; ≤ 2147483647
created_atstring (date-time) or nullRequired
descriptionstringRequired
namestringRequired
needs_rerunbooleanRequiredSaved before result sets were cached: run it again to read its result.
needs_resavingbooleanRequiredThe stored search cannot be run as it was stored: save it again.
reasonstring or nullRequiredWhy the search needs re-saving.
saved_search_idstringRequired
searchSavedSearchSpec or nullRequiredThe search; null when it needs re-saving.
statusstringRequiredpending, completed, failed, needs_rerun or needs_resaving.
summarystring or nullRequiredThe plain-language summary written when the search was saved.
total_hit_countintegerRequiredThe documents the last run matched. ≥ -2147483648; ≤ 2147483647

SavedSearchSpec​

FieldTypeRequiredDescription
date_rangesarray of SearchDateRangeRequiredKeep the documents whose dates fall in every range.
document_number_prefixesarray of stringRequiredKeep the documents whose number starts with one of these, ignoring case.
exclude_duplicatesboolean or nullRequiredHide the documents that duplicate another document's number.
facet_filtersarray of SearchFacetFilterRequiredKeep the documents whose folder, tag, location, file author and so on hold one of the values. The values are the ones POST /documents/aggregate lists.
querystring or nullRequiredFull text, as in POST /documents/search.
reference_numbersarray of stringRequiredKeep the documents whose reference number contains one of these, ignoring case.
weightsSearchWeights or nullRequiredHow much each field counts towards the score of a match of the query. 0 leaves a field out.

SearchDateRange​

FieldTypeRequiredDescription
fieldstringRequiredOne of document_date, created_at, file_created_at, file_modified_at.
fromstring (date) or nullRequiredThe first day; open when left out.
tostring (date) or nullRequiredThe last day; open when left out.

SearchFacetFilter​

FieldTypeRequiredDescription
facetstringRequiredOne of document_type, document_sub_type, from, to, project, folder, location, tag, created_by, file_content_type, file_author, file_last_author, file_producer, file_title.
valuesarray of SearchFacetValueRequiredAlternatives: a document is kept when its facet holds any of them.

SearchFacetValue​

FieldTypeRequiredDescription
include_childrenbooleanRequiredWith match exact, also select the values under this one in a hierarchy (a folder's subfolders): the facet starts with the value, ignoring case.
matchstring or nullRequiredexact (the default: the facet equals the value) or contains (the facet contains the text, ignoring case).
valuestringRequiredA value as the facet lists it. An empty string selects the documents with no value.

SearchWeights​

FieldTypeRequiredDescription
ccsinteger or nullRequired
contentinteger or nullRequired
descriptioninteger or nullRequired
document_numberinteger or nullRequired
foldersinteger or nullRequired
frominteger or nullRequired
other_numberinteger or nullRequired
reference_numberinteger or nullRequired
tointeger or nullRequired