Docs

Execute Public Query

POST /documents/public/{token}/query/{blockId}

POST/documents/public/{token}/query/{blockId}

Runs a QueryBlock in a publicly shared document, like DynamicDocs_ExecuteQuery but for link viewers with no authentication. The link's pre-set variable values fill in variables the viewer did not supply, and values outside the link's allowed values are rejected with 400. This is a read despite being a POST.

Path Parameters

FieldTypeRequiredDescription
tokenstringRequired
blockIdstringRequired

Request Body

FieldTypeRequiredDescription
variablesobjectOptional

Response

FieldTypeDescription
rowsobject[]| null
groupsQueryGroupResponse[]| null

QueryGroupResponse

FieldTypeDescription
keystring| null
rowsobject[]| null