Schema Discovery
Discover the structure of your Docwize instance at runtime. These endpoints let you enumerate all filterable fields — both core document columns and custom field template columns — and retrieve their distinct values.
Use these endpoints to build dynamic filter UIs, validate values before constructing search queries, or populate autocomplete dropdowns.
Endpoints
| Method | Path | Description | Scope |
|---|---|---|---|
| GET | /apiv2/pub/schema/fields | List all filterable fields (document + custom fields) | documents_read |
| GET | /apiv2/pub/schema/values/{field_name} | Get distinct values for any field | documents_read |