Skip to main content

Render a view

Render typed HTML safely at the service boundary.

Request

POST/v1/render

Renders typed view source into encoded HTML.

Authentication

Send a bearer token in the Authorization header.

API version2026-09-01
Idempotency

Repeated requests with the same key return the original result.

viewstringbodyRequired

Typed view source to encode and render.

Example: main { h1 { "Hello" } }

content_typestringbody

Response media type.

Default: text/html

Values: text/html, application/xhtml+xml

prettybooleanquery

Indent the returned markup for inspection.

Default: false

200Rendered HTML and response media type.
invalid_view

The supplied view could not be parsed.

unsupported_content_type

The requested response type is unavailable.