Skip to main content

Get Field Values

GET/apiv2/pub/schema/values/{field_name}documents_read

Returns distinct values for any field — document columns, Grid custom fields, or GridLink custom fields. Only values from documents accessible to the token's user are returned.

Request

Path parameters

ParameterTypeDescription
field_namestringField identifier from List Fields (e.g. Documents.doc_type or customfields_grid_5.cfield_101).

Query parameters

ParameterTypeDefaultDescription
searchstringFilter values by substring match.
limitinteger100Max values to return (1–500).

Response

200 OK — Flat array of distinct string values, sorted ascending.


Errors

StatusReason
400Unknown field name format
401Invalid or expired token
404Custom field template or column not found

cURL

curl -i -X GET "https://portal.docwize.com/apiv2/pub/schema/values/Documents.doc_type" \
-H "Authorization: Bearer <ACCESS_TOKEN>"
# Custom field values with search
curl -i -X GET "https://portal.docwize.com/apiv2/pub/schema/values/customfields_grid_5.cfield_101?search=INV&limit=20" \
-H "Authorization: Bearer <ACCESS_TOKEN>"

[
"Contract",
"Invoice",
"Memo",
"Report"
]
{"detail": "Unrecognised field name format: BadField"}
{"detail": "Custom field template not found"}