Skip to main content

List the distinct values of a document field.

POST/api/v1/document-fields/{document_field_id}/values/searchdocuments:read

The distinct stored values of the field among the documents the caller can read, in value order. A non-empty query keeps the values that contain it. Custom field values are not built yet.

Scopedocuments:read
AsynchronousNo
MCP toolsearch_document_field_values
Portal permissionssearch_document_metadata
Pagingsnapshot
Default ordervalue
Sort fieldsvalue

Parameters​

NameInTypeRequiredDescription
document_field_idpathstringRequired
limitqueryintegerOptionalDefault: 50; ≥ 1
cursorquerystringOptional
sortquerystringOptionalComma-separated sort fields, - for descending.
Docwize-Versionheaderstring (date)Optional

Request body​

Content typeType
application/jsonDocumentFieldValuesSearchInput

Responses​

StatusDescriptionBody
200Success.application/json object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
410cursor_expiredapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422invalid_cursor, 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 DocumentFieldValueRequired
next_cursorstring or nullRequired
warningsarray of objectRequired

Errors​

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

Schemas​

DocumentFieldValue​

FieldTypeRequiredDescription
stored_valuestringRequiredThe stored text the value reads from.
valuestringRequiredThe value as the read shape shows it: a list's label, else the stored text.

DocumentFieldValuesSearchInput​

FieldTypeRequiredDescription
querystring or nullOptionalKeep only the values that contain this text.