Pages

Render a page version

POST
/pages/{page_id}/render

Render the current version of an app page (or version number version) headless on desktop and mobile, its queries answered live (row policies on; link_values as a link would freeze them; params[], otherwise each parameter's default or example; at most 200 rows per query). Returns screenshot urls (valid 10 minutes), runtime errors and findings. Look at the screenshots, fix with pages.update and render again; findings are hints, not a gate. The render of the current version becomes the gallery image. At most 30 per hour per space.

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/render" \  -H "Content-Type: application/json" \  -d '{}'
{  "screenshots": [    {      "viewport": "desktop",      "url": "https://api.adlass.io/v1/workflows/hooks/example"    }  ],  "errors": [    {      "message": "Please review the extracted totals."    }  ],  "findings": [    {      "code": "example",      "message": "Please review the extracted totals."    }  ]}