Pages

Run a page query

POST
/pages/{page_id}/query

Run one named query of the current version's manifest. As a member it reads like records.sql: no row policies, only the manifest's tables. With link_values or viewer_email it answers as a visitor of such a link would (row policies on; viewer_email a verified visitor). params are the query's parameters; version_id (from pages.view) refuses a newer version with conflict reason page_version_changed. Returns columns, rows and has_more; errors carry the full SQL message.

Authorization

bearerApiKey
AuthorizationBearer <token>

Create a scoped API key in the Adlass settings.

In: header

Path Parameters

page_id*Page Id

Resource identifier: page_id.

Formatuuid

Header Parameters

X-Request-Id?string

Optional correlation identifier.

Lengthlength <= 128

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/pages/123e4567-e89b-42d3-a456-426614174000/query" \  -H "Content-Type: application/json" \  -d '{    "key": "summary"  }'
{  "columns": [    {      "name": "Customer documents",      "type": "run.completed"    }  ],  "rows": [],  "has_more": false}