Skip to content
concord.app
Book a demo
esc
concord.app
Book a demo

API reference

Search. 13 operations.

The Search operations of the concord.app REST API, each with its parameters, body fields and responses.

Search — full-text, semantic and structured search across the workspace.

Every path is on https://app.concord.app.

POST/api/v1/search/answer

Answer a search question

Answers a natural-language question about the caller's agreements, in any language, with a generated answer plus the agreement passages it was grounded in. CALLS THE AI: one call reads the question (its filters and an English rewrite) beside the retrieval, and one writer call first decides whether the passages answer the question and then writes the cited answer (asked once more at most, when it names a gap and a second look finds new passages), all inside the organization's short-term AI allowance, which can answer 429 with a Retry-After while it is full. RECORDS THE QUESTION: the question text and its retrieval trace are written to the organization's search history, from which search.suggest later replays the question to its own author as a typeahead completion. No agreement is created or changed. Covers the caller's active organization unless includeAllOrganizations is set, which grounds the answer in every organization the caller can reach; each citation then names the organization it came from.

Parameters

NameInTypeDescription
Idempotency-Key header string Optional idempotency key. When supplied, a repeat of the same request replays the original response instead of performing the write twice. A retry sent WITHOUT the header is a second write and CAN duplicate its effect — always send one on retries.

Request body

NameTypeDescription
query
required
string
include_all_organizations boolean Search every organization the caller can reach, not just the active one. Inherently all-workspaces: it wins over workspaceId / includeAllWorkspaces, since a workspace belongs to exactly one organization. The response's scope block states which organizations were actually covered.
ask_id string (uuid) Optional. A UUIDv7 naming this question. When the answer is run_still_working, send the same request again with the same askId: it re-joins the same AI run instead of starting a new one, and answers once that run has ended.
read_as object
search_session_id string (uuid) Optional UUID naming one search interaction (for example one opening of a search box). Recorded with the search in the organization's search history so its searches, clicks and answer ratings can be read together; it changes nothing the search finds.

Responses

StatusDescription
200OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: Authenticated but not authorized for this resource
404404 — NOT_FOUND: Requested resource does not exist
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: Service temporarily unavailable — may be retried after Retry-After
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

POST/api/v1/search/documents

Search documents

Ranked hybrid search over the agreements the caller is allowed to read, narrowed by the agreement filter set — status, stage, category, counterparty, date range and monetary range. Returns one page of hits with title, stage, status and a matched snippet; no agreement or other record is created or changed. Omit query to list the population the filters select instead: every readable agreement that fits them, in date order when a date field is named (newest-created first otherwise), with an exact total and no text narrowing. A filtered text search sent with countPopulation also returns population, the size of the set its hits were drawn from. Send view to search inside a Documents list view — only the documents that view lists can be hits. Covers the caller's active organization unless includeAllOrganizations is set, which re-fuses a single ranking across every organization the caller can reach; the response's scope block names the organizations actually covered.

Parameters

NameInTypeDescription
Idempotency-Key header string Optional idempotency key. When supplied, a repeat of the same request replays the original response instead of performing the write twice. A retry sent WITHOUT the header is a second write and CAN duplicate its effect — always send one on retries.

Request body

NameTypeDescription
query string
filters object
view object Search inside a Documents list view: the view's filters, starred (favorites), folderId and showReplaced, exactly as the documents list takes them. Hits, totals and facet counts are then drawn only from the documents that view lists — trashed documents only when its filters name visibility, templates only when they name isTemplate. Omit it to search every agreement the caller can read.
page integer
page_size integer
workspace_id string
include_all_workspaces boolean
include_all_organizations boolean Search every organization the caller can reach, not just the active one. Inherently all-workspaces: it wins over workspaceId / includeAllWorkspaces, since a workspace belongs to exactly one organization. The response's scope block states which organizations were actually covered.
search_session_id string (uuid) Optional UUID naming one search interaction (for example one opening of a search box). Recorded with the search in the organization's search history so its searches, clicks and answer ratings can be read together; it changes nothing the search finds.
count_population boolean With a query and at least one narrowing filter: also count every agreement the filters select, with no text narrowing, and return it as population. Costs one count on the same read. Ignored without a query.

Responses

StatusDescription
200OK
400Malformed request or invalid parameters for the operation, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters for the operation; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: Authenticated but not authorized for this resource or operation
404404 — NOT_FOUND: The requested resource (or a resource referenced by the operation) was not found
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable
429429 — TOO_MANY_REQUESTS: Rate limit or quota exceeded for the operation
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error while processing the operation
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: Service temporarily unavailable — may be retried after Retry-After
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

POST/api/v1/search/facets

Get search facets

Returns facet counts — stage, category, counterparty, date range and clause type — over the same authorization-filtered candidate set an agreements search for this query, filters and scope ranks, so each stage, category and counterparty count is the number of results that search returns once that value is added as a filter (each dimension is counted under the request's other filters, since picking a value replaces that dimension's current one), inside the view when one is sent. countPrecision says, per dimension, whether that holds exactly or only as a floor (atLeast); a single-organization response is exact. Counts only: no row content leaves. Covers the caller's active organization unless includeAllOrganizations is set, which sums the per-organization counts across every organization the caller can reach; the response's scope block names the organizations actually covered.

Parameters

NameInTypeDescription
Idempotency-Key header string Optional idempotency key. When supplied, a repeat of the same request replays the original response instead of performing the write twice. A retry sent WITHOUT the header is a second write and CAN duplicate its effect — always send one on retries.

Request body

NameTypeDescription
query
required
string
filters object
view object Search inside a Documents list view: the view's filters, starred (favorites), folderId and showReplaced, exactly as the documents list takes them. Hits, totals and facet counts are then drawn only from the documents that view lists — trashed documents only when its filters name visibility, templates only when they name isTemplate. Omit it to search every agreement the caller can read.
workspace_id string
include_all_workspaces boolean
include_all_organizations boolean Search every organization the caller can reach, not just the active one. Inherently all-workspaces: it wins over workspaceId / includeAllWorkspaces, since a workspace belongs to exactly one organization. The response's scope block states which organizations were actually covered.

Responses

StatusDescription
200OK
400Malformed request or invalid parameters for the operation, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters for the operation; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: Authenticated but not authorized for this resource or operation
404404 — NOT_FOUND: The requested resource (or a resource referenced by the operation) was not found
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable
429429 — TOO_MANY_REQUESTS: Rate limit or quota exceeded for the operation
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error while processing the operation
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: Service temporarily unavailable — may be retried after Retry-After
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

POST/api/v1/search/global

Search globally

Searches every domain in the caller's organization in one request — agreements, obligations, folders, attachments, deadlines, tasks, clause library, counterparties, users, comments, CRM deals, notifications, field values, artifacts, templates and audit events — and returns the query's interpreted intent alongside the hits. CALLS THE AI: unless the query is plain keywords or lexicalOnly is set, the intent half makes a live LLM call inside the organization's short-term AI allowance, which can answer 429 with a Retry-After while it is full. The retrieval half is a pure read and calls no model. Nothing is created or changed. Covers the caller's active organization unless includeAllOrganizations is set, which repeats the whole fan-out in every organization the caller can reach — each hit is then tagged with the organization it came from, and the response's scope block names the organizations actually covered. With mode: "page" it serves a full results page instead: one row per document (its signed copy, obligations, deadlines, comments and properties fold into it), ranked by relevance and paginated by offset/limit, with per-type and per-tab counts, up to three highlighted passages per hit with the clause each sits under, and a corrected query when a misspelled word matched nothing; page mode makes no LLM call and spends no AI budget.

Parameters

NameInTypeDescription
Idempotency-Key header string Optional idempotency key. When supplied, a repeat of the same request replays the original response instead of performing the write twice. A retry sent WITHOUT the header is a second write and CAN duplicate its effect — always send one on retries.

Request body

NameTypeDescription
query
required
string
limit integer
workspace_id string
include_all_workspaces boolean
include_all_organizations boolean Search every organization the caller can reach, not just the active one. Inherently all-workspaces: it wins over workspaceId / includeAllWorkspaces, since a workspace belongs to exactly one organization. The response's scope block states which organizations were actually covered.
lexical_only boolean
mode one of "panel", "page"
tab one of "all", "documents", "clauses", "obligations", "comments"
types array of one of "agreement", "playbook_wording", "obligation", "deadline", "task", "chat" and 12 more
spellcheck boolean
offset integer
agreement_view object Search inside a Documents list view: the view's filters, starred (favorites), folderId and showReplaced, exactly as the documents list takes them. Hits, totals and facet counts are then drawn only from the documents that view lists — trashed documents only when its filters name visibility, templates only when they name isTemplate. Omit it to search every agreement the caller can read.
owner_user_ids array of string
updated_from string (date-time)
updated_to string (date-time)
reading object
source_type one of "agreement", "playbook_wording", "obligation", "deadline", "task", "user" and 10 more
agreement_id string
search_session_id string (uuid) Optional UUID naming one search interaction (for example one opening of a search box). Recorded with the search in the organization's search history so its searches, clicks and answer ratings can be read together; it changes nothing the search finds.

Responses

StatusDescription
200OK
400Malformed request or invalid parameters for the operation, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters for the operation; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: Authenticated but not authorized for this resource or operation
404404 — NOT_FOUND: The requested resource (or a resource referenced by the operation) was not found
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable
429429 — TOO_MANY_REQUESTS: Rate limit or quota exceeded for the operation
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error while processing the operation
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: Service temporarily unavailable — may be retried after Retry-After
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

GET/api/v1/search/languages

List supported search languages

Returns the fixed, platform-wide list of languages the search engine recognises, each as an ISO 639-1 code, its English name and how keyword search analyses it: stemmed (stemmed in that language and accent-folded), segmented (Chinese, Japanese, Thai: split into words, then matched unstemmed) or unstemmed (detected and labelled, matched as accent-folded words). A document in a language that is not listed, or whose language cannot be detected, is still searchable as accent-folded words. Meaning search (embeddings) is multilingual independently of this list. Static data: no database is read and the list is identical for every caller and every organization — it does not describe which languages the caller's own documents are written in.

Responses

StatusDescription
200OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: Authenticated but not authorized for this resource
404404 — NOT_FOUND: Requested resource does not exist
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: Service temporarily unavailable — may be retried after Retry-After
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

POST/api/v1/search/passages

Find the passages that answer a question

Finds the PASSAGES of the caller's agreements that best answer a question, in any language: the same passage retrieval and cross-encoder ranking Ask grounds its answers in, with no AI writer. Use it for a question about WHAT contracts say (a notice period, a governing law, a cap, a clause) across the portfolio; it returns the passages themselves (each with its contract's agreementId and title, at most three per contract), not a list of contracts. Each passage is its contract's own words: a figure or term in it may be quoted or stated exactly as the passage writes it, said of that passage's contract. A passage is an excerpt, so read the contract's text with its agreementId for anything the passage does not hold. An empty passages list means nothing relevant was found; degraded: true means part of the search failed, so an empty list then says nothing about the contracts. Covers the caller's active organization unless includeAllOrganizations is set. No record is created or changed.

Parameters

NameInTypeDescription
Idempotency-Key header string Optional idempotency key. When supplied, a repeat of the same request replays the original response instead of performing the write twice. A retry sent WITHOUT the header is a second write and CAN duplicate its effect — always send one on retries.

Request body

NameTypeDescription
query
required
string
limit integer
includeAllOrganizations boolean Search every organization the caller can reach, not just the active one. Inherently all-workspaces: it wins over workspaceId / includeAllWorkspaces, since a workspace belongs to exactly one organization. The response's scope block states which organizations were actually covered.

Responses

StatusDescription
200OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: Authenticated but not authorized for this resource
404404 — NOT_FOUND: Requested resource does not exist
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: Service temporarily unavailable — may be retried after Retry-After
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

GET/api/v1/search/saved

List saved searches

Lists this caller's own saved searches, plus any saved search in the organization marked shared with it, one keyset page at a time — 50 rows by default, 200 at most — in the stored sortOrder, newest first within a tie. Returns stored query configuration only.

Parameters

NameInTypeDescription
starting_after query string Opaque cursor anchor from a previous page's next_page_url — returns the page starting after this item. Pair with limit. (cursor is the internal pagination dialect and is rejected on the public surface.)
limit query integer

Responses

StatusDescription
200OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: Authenticated but not authorized for this resource
404404 — NOT_FOUND: Requested resource does not exist
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: Service temporarily unavailable — may be retried after Retry-After
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

POST/api/v1/search/saved

Save a search

Stores a named search — its query text and filters — for this caller in their active organization, to be replayed later by search.executeSavedSearch.

Parameters

NameInTypeDescription
Idempotency-Key header string Optional idempotency key. When supplied, a repeat of the same request replays the original response instead of performing the write twice. A retry sent WITHOUT the header is a second write and CAN duplicate its effect — always send one on retries.

Request body

NameTypeDescription
name
required
string
query
required
string
filters object

Responses

StatusDescription
200OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: Authenticated but not authorized for this resource
404404 — NOT_FOUND: Requested resource does not exist
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: Service temporarily unavailable — may be retried after Retry-After
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

PATCH/api/v1/search/saved

Update a saved search

Renames one of this caller's own saved searches by id. The saved query text and filters are not editable here — replace the search instead.

Parameters

NameInTypeDescription
Idempotency-Key header string Optional idempotency key. When supplied, a repeat of the same request replays the original response instead of performing the write twice. A retry sent WITHOUT the header is a second write and CAN duplicate its effect — always send one on retries.

Request body

NameTypeDescription
id
required
string
name string

Responses

StatusDescription
200OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: Authenticated but not authorized for this resource
404404 — NOT_FOUND: Requested resource does not exist
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: Service temporarily unavailable — may be retried after Retry-After
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

DELETE/api/v1/search/saved

Delete a saved search

Permanently deletes one of this caller's OWN saved searches by id. The row is hard-deleted — there is no archive column, no trash and no restore endpoint. Scoped to rows this caller created: an id that does not exist, or belongs to another user, is reported as a success and deletes nothing.

Parameters

NameInTypeDescription
Idempotency-Key header string Optional idempotency key. When supplied, a repeat of the same request replays the original response instead of performing the write twice. A retry sent WITHOUT the header is a second write and CAN duplicate its effect — always send one on retries.

Request body

NameTypeDescription
id
required
string

Responses

StatusDescription
200OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: Authenticated but not authorized for this resource
404404 — NOT_FOUND: Requested resource does not exist
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: Service temporarily unavailable — may be retried after Retry-After
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

POST/api/v1/search/saved/execute

Execute saved search

Re-runs a saved search by id — replaying the query text and filters stored on it through the search engine — and returns one page of agreement hits. No column of the saved row is written back, not even its last-alert timestamp. The saved record is always resolved in the caller's active organization; setting includeAllOrganizations replays that stored question in every organization the caller can reach, widening the question asked and never what the caller is allowed to read.

Parameters

NameInTypeDescription
Idempotency-Key header string Optional idempotency key. When supplied, a repeat of the same request replays the original response instead of performing the write twice. A retry sent WITHOUT the header is a second write and CAN duplicate its effect — always send one on retries.

Request body

NameTypeDescription
id
required
string
page integer
page_size integer
include_all_organizations boolean Search every organization the caller can reach, not just the active one. Inherently all-workspaces: it wins over workspaceId / includeAllWorkspaces, since a workspace belongs to exactly one organization. The response's scope block states which organizations were actually covered.

Responses

StatusDescription
200OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: Authenticated but not authorized for this resource
404404 — NOT_FOUND: Requested resource does not exist
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: Service temporarily unavailable — may be retried after Retry-After
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

GET/api/v1/search/suggest

Suggest search completions

Suggests up to five earlier queries to complete what the caller is typing, matched as a substring anywhere inside the stored query text rather than only at its start. Drawn only from the caller's OWN search history of the last 30 days, most-frequently-searched first — never from document content, and never from another user's queries, so an empty result means this caller has not searched that text before. Covers the caller's active organization unless includeAllOrganizations is set, which merges that same personal history across every organization the caller can reach and re-caps the merge at five.

Parameters

NameInTypeDescription
query
required
query string
includeAllOrganizations query boolean

Responses

StatusDescription
200OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: Authenticated but not authorized for this resource
404404 — NOT_FOUND: Requested resource does not exist
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: Service temporarily unavailable — may be retried after Retry-After
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

POST/api/v1/search/understand

Understand a search query

Classifies a search query and extracts the structured filters it implies — stage, category, counterparty, date range, monetary range — from the query text alone. No agreement and no tenant setting is read: the stage and category vocabularies it maps onto are the platform's fixed lists, so the result describes the QUESTION asked and never what the caller's own corpus contains. CALLS THE AI: for any query that is not plain keywords, this makes a live LLM call inside the organization's short-term AI allowance, which can answer 429 with a Retry-After while it is full. A keyword-only query is answered from heuristics alone and calls no model. No agreement or other record is created or changed.

Parameters

NameInTypeDescription
Idempotency-Key header string Optional idempotency key. When supplied, a repeat of the same request replays the original response instead of performing the write twice. A retry sent WITHOUT the header is a second write and CAN duplicate its effect — always send one on retries.

Request body

NameTypeDescription
query
required
string

Responses

StatusDescription
200OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: Authenticated but not authorized for this resource
404404 — NOT_FOUND: Requested resource does not exist
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: Service temporarily unavailable — may be retried after Retry-After
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

See it on your contracts.

Book a demo

Trusted by teams at

  • 4M+ documents signed since 2014