Skip to main content

Preview Info Page

POST 

/api/admin/portal/pages/preview

Render a page body exactly as the portal will show it. body (required key, nullable, max 50,000 characters) is Markdown: raw HTML is stripped, unsafe links (e.g. javascript:) are dropped, and only headings (a # heading renders as h2), paragraphs, emphasis, lists, quotes, code, rules, tables and http/https/mailto/tel links survive. Links to a portal path (for example [Terms](/pages/terms)) are made absolute links into this portal, and in-page #anchor links are kept. An empty body returns html: null.

Required scope: customers:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Requires a staff bearer token with portal management permission.

Request​

Responses​

OK

Response Headers
    Content-Type