Create a page
Create an app page in a space; its first version is built at once. An app is one HTML document (max 512 KiB) designed freely: scripts, stylesheets, fonts and images from any public https host are embedded at build time, Space images are referenced as adlass-document:, data comes from window.adlassApp. Plus a manifest that declares everything it can reach: 'link' values each link freezes, 'tables' with a row policy, named SQL 'queries', write 'actions' and 'downloads'. Without source it starts from a template. Refuses with the problems (path, or line and column in the source) when it does not build. The team sees the page at once in the app; then run pages.render, look at the screenshots and fix with pages.update, each save is a new version. Nothing is public until a person shares it. Kind 'live_document' shares a native live document of the space by source_document_id instead (one page per document: an existing one is returned). Read the pages guide before the first page.
Authorization
bearerApiKey Create a scoped API key in the Adlass settings.
In: header
Header Parameters
Optional correlation identifier.
length <= 128A unique key for this intended write; the body field idempotency_key is accepted instead. One of the two is required. Reuse it only for an identical retry.
1 <= length <= 200Request 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" \ -H "Idempotency-Key: 123e4567-e89b-42d3-a456-426614174000" \ -H "Content-Type: application/json" \ -d '{ "space_id": "123e4567-e89b-42d3-a456-426614174000", "name": "Customer documents" }'{ "id": "123e4567-e89b-42d3-a456-426614174000", "space_id": "123e4567-e89b-42d3-a456-426614174002", "kind": "app", "name": "Quarterly report", "status": "ACTIVE", "source_document": null, "source_type": "USER", "source_id": "", "current_version": { "id": "123e4567-e89b-42d3-a456-426614174001", "number": 3, "content_hash": "3f786850e387550fdab836ed7e6dc881de23001b", "released_at": "2026-09-04T12:00:00Z", "created_at": "2026-09-04T12:00:00Z", "page_id": "123e4567-e89b-42d3-a456-426614174000", "kind": "app", "definition": { "manifest": { "tables": { "orders": { "policy": "all" } } }, "documents": [], "source_sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08" }, "settings": {}, "artifact_size": 2048, "kit_version": "2", "assets": [], "created_by": { "id": "123e4567-e89b-42d3-a456-426614174002", "name": "Ada Lovelace", "email": "ada@example.com" } }, "released_version": { "id": "123e4567-e89b-42d3-a456-426614174001", "number": 3, "content_hash": "3f786850e387550fdab836ed7e6dc881de23001b", "released_at": "2026-09-04T12:00:00Z", "created_at": "2026-09-04T12:00:00Z" }, "pending_release": false, "link_count": 1, "visit_count": 12, "category": "", "featured_at": null, "featured_by": null, "featured_source": "", "created_by": { "id": "123e4567-e89b-42d3-a456-426614174002", "name": "Ada Lovelace", "email": "ada@example.com" }, "created_at": "2026-09-04T12:00:00Z", "updated_at": "2026-09-04T12:00:00Z", "source_document_id": null, "source_metadata": {}}