Search passages or files with a regular expression
Finds indexed passages that match a case-sensitive RE2 pattern. Each result identifies its readable file. Choose passages for matching text, or files for distinct results with full file content. Patterns are never query-expanded. Results are not relevance-ranked. A result appears only if this API key can read the file.
Authorizations
Workspace-scoped API key, sent as a bearer token. The recommended header. The workspace is implicit in the key and never appears in a URL.
Body
Return matching passages or distinct files.
passages, files A case-sensitive RE2 pattern matched against each indexed passage. Anchors apply to passage boundaries.
1024"refund|return"
Maximum results: matching passages in passages mode, distinct files in files mode. Defaults to 10.
1 <= x <= 500Include linked external records. Defaults to true.
Response
Matching passages or files, without relevance ranking. One page; there is no next.
Type discriminator. Always list.
list The search this page came from.
"/v1/search/regex"
Always false. A search answers the best matches in one page and has no next page.
false
Always null. A search has no position to resume from, so there is no cursor to pass back.
null
Matching passages or files, without relevance ranking.