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.
| Scope | documents:read |
| Asynchronous | No |
| MCP tool | search_document_field_values |
| Portal permissions | search_document_metadata |
| Paging | snapshot |
| Default order | value |
| Sort fields | value |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
document_field_id | path | string | Required | |
limit | query | integer | Optional | Default: 50; ≥ 1 |
cursor | query | string | Optional | |
sort | query | string | Optional | Comma-separated sort fields, - for descending. |
Docwize-Version | header | string (date) | Optional |
Request body
| Content type | Type |
|---|---|
application/json | DocumentFieldValuesSearchInput |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json object |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
410 | cursor_expired | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | invalid_cursor, validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
200 body
| Field | Type | Required | Description |
|---|---|---|---|
items | array of DocumentFieldValue | Required | |
next_cursor | string or null | Required | |
warnings | array of object | Required |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
DocumentFieldValue
| Field | Type | Required | Description |
|---|---|---|---|
stored_value | string | Required | The stored text the value reads from. |
value | string | Required | The value as the read shape shows it: a list's label, else the stored text. |
DocumentFieldValuesSearchInput
| Field | Type | Required | Description |
|---|---|---|---|
query | string or null | Optional | Keep only the values that contain this text. |