Pages

Publish a page

POST
/pages/{page_id}/publish

Freeze the draft into a new immutable version and mark the page PUBLISHED. Links that are not pinned move to the new version immediately (their ids are returned in retargeted_link_ids); pinned links keep showing their version. The response lists input keys added, removed or changed versus the previous version.

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
Idempotency-Key*string

A unique key for this intended write. Reuse it only for an identical retry.

Length1 <= length <= 200

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/publish" \  -H "Idempotency-Key: 123e4567-e89b-42d3-a456-426614174000"
{  "page": {    "id": "123e4567-e89b-42d3-a456-426614174000",    "space_id": "123e4567-e89b-42d3-a456-426614174002",    "kind": "html",    "name": "Quarterly report",    "status": "PUBLISHED",    "source_type": "USER",    "source_id": null,    "current_version": {      "id": "123e4567-e89b-42d3-a456-426614174001",      "number": 3,      "content_hash": "3f786850e387550fdab836ed7e6dc881de23001b",      "created_at": "2026-09-04T12:00:00Z"    },    "submission_count": 0,    "link_count": 1,    "visit_count": 12,    "created_at": "2026-09-04T12:00:00Z",    "updated_at": "2026-09-04T12:00:00Z",    "source_document_id": null,    "source_metadata": {},    "draft_definition": {},    "draft_settings": {},    "draft_assets": [],    "created_by": {      "id": "123e4567-e89b-42d3-a456-426614174002",      "name": "Ada Lovelace",      "email": "ada@example.com"    }  },  "version": {    "id": "123e4567-e89b-42d3-a456-426614174001",    "number": 3,    "content_hash": "3f786850e387550fdab836ed7e6dc881de23001b",    "created_at": "2026-09-04T12:00:00Z",    "page_id": "123e4567-e89b-42d3-a456-426614174000",    "kind": "html",    "definition": {},    "settings": {},    "output_schema": null,    "artifact_size": 2048,    "assets": [],    "created_by": {      "id": "123e4567-e89b-42d3-a456-426614174002",      "name": "Ada Lovelace",      "email": "ada@example.com"    }  },  "changed_keys": [    "definition"  ]}