Hanzo
OpenapiFramework

Returns the caller org's documents of one DocType, filtered, ordered and…

Returns the caller org's documents of one DocType, filtered, ordered and projected by the query.

GET /v1/framework/{doctype}

Addresshttps://api.hanzo.ai/v1/framework/{doctype}
MethodGET
Operationget_framework_by_doctype
AuthAuthorization: Bearer $HANZO_API_KEY

Returns the caller org's documents of one DocType, filtered, ordered and projected by the query. The DocType is resolved FIRST — through the same permission gate the list itself uses — because the query is validated against its schema: a filter, sort or field name the DocType does not declare is refused rather than reaching the store.

Request

5 fields.

FieldInTypeRequiredDescription
doctypepathstringyesDocType is the DocType to list, from the path.
filtersquerystringFilters is a JSON object of equality matches, e.g. {"priority":"High"}.
fieldsquerystringFields projects the response to a subset — a JSON array ["a","b"] or a comma list "a,b".
order_byquerystringOrderBy is "<field> [asc|desc]".
limitquerystringLimit caps the rows returned.

Response

StatusBodyMeaning
200documentListok

200 body — 2 fields.

FieldInTypeAlwaysDescription
databodyobject[]Data is the matching documents, newest-updated first unless order_by said otherwise, each projected to the requested fields plus the envelope keys.
data[].*bodyobject

Failure carries the platform error shape — see Errors.

Examples

hanzo framework get <doctype>

Framework API · All Hanzo APIs · Interactive reference

How is this guide?

On this page