List or search the values of a lookup list.
The values the list offers a form, as the Portal loads and searches them: the rows of the list's virtual view, run by the Portal's query builder with the caller's own document and register security, with context as the view's runtime inputs. Without query every value is listed (the Portal's load); with one, only the rows whose key or label contains it, ignoring case. Values are ordered by label, then by the view's other columns, and paged by offset: the cursor holds how many were read, so a page is a snapshot of the view as it was then. A view that has no query, or cannot be built from the context (an input it needs is missing), has no values, as in the Portal's forms: run test_lookup_lists to see why. A view that returns no Key or Value column, or a label that cannot be sorted, is a 422 in the Portal's words. A lookup list that does not exist is 404. Needs View Lookup Lists.
| |
|---|
| Scope | lookup_lists:read |
| Asynchronous | No |
| MCP tool | search_lookup_list_values |
| Portal permissions | view_lookup_lists |
| Paging | snapshot |
| Default order | label |
Parameters
| Name | In | Type | Required | Description |
|---|
lookup_list_id | path | string | Required | |
limit | query | integer | Optional | Default: 50; ≥ 1 |
cursor | query | string | Optional | |
Docwize-Version | header | string (date) | Optional | |
Request body
Responses
200 body
| Field | Type | Required | Description |
|---|
items | array of LookupListValue | 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
LookupListValue
| Field | Type | Required | Description |
|---|
columns | object | Required | Every column the view returned for the row by the view's own column name, Key and Value included. Dates are text and decimals strings. |
key | string or null | Required | The row's Key column as text: what a field stores. |
label | string or null | Required | The row's Value column as text: what a form shows. |
| Field | Type | Required | Description |
|---|
context | object | Optional | The values the form has captured so far. See the list of values for what each key is. |
query | string or null | Optional | Keep the values whose key or label contains this text, ignoring case. Without it every value is listed. |