Rendering
Renders a widget payload (as emitted by agent/MCP tools or stored on reports) into a self-contained themed HTML fragment with inline styles — the same session-less renderer used across the platform's export surfaces. Suited to embedding: notebook rich display, emails, static pages. Body: widget (type plus kind-specific fields), theme (light | dark). 422 when the kind needs a live session or the payload is a bare pointer.
An API key (pk_...) created on the Organisation API page, or an OAuth access token. Every operation requires one.
Render theme (default light)
Successful response
Payload not declared in this repo
Bad Request
Unauthorized
Forbidden
Unprocessable Entity
Too Many Requests; the response carries Retry-After
Internal Server Error
POST /api/v1/render/widget HTTP/1.1
Host: sandbox.rootcause.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 79
{
"widget": {
"type": "text",
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"theme": "light"
}{
"data": "text"
}Last updated

