Render a view
Render typed HTML safely at the service boundary.
Request
POST
/v1/renderRenders typed view source into encoded HTML.
Authentication
Send a bearer token in the Authorization header.
API version
2026-09-01Idempotency
Repeated requests with the same key return the original result.
viewstringbodyRequiredTyped view source to encode and render.
Example: main { h1 { "Hello" } }
content_typestringbodyResponse media type.
Default: text/html
Values: text/html, application/xhtml+xml
prettybooleanqueryIndent the returned markup for inspection.
Default: false
200Rendered HTML and response media type.invalid_viewThe supplied view could not be parsed.
unsupported_content_typeThe requested response type is unavailable.