Pages

Run several page queries

POST
/pages/{page_id}/queries

Run several named queries of the current version in one call, in order, with the same version_id, link_values and viewer_email for all: one item per query with columns, rows and has_more, or ok=false with that query's error (the full SQL message); a failing query does not stop the others, and queries left when the call runs out of time answer budget_exceeded. The team view sends the queries a page asks for at the same moment through this.

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/queries" \  -H "Content-Type: application/json" \  -d '{    "queries": [      {        "key": "summary"      }    ]  }'
{  "items": [    {      "key": "summary",      "ok": false    }  ]}