Skip to content
Registry StackDocsv0.49.0

Render one document

POST
/v1/render/{type}
curl --request POST \
--url https://example.com/v1/render/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "locale": "example", "issuedAt": "2026-04-15T12:00:00Z", "data": {}, "assets": { "additionalProperty": "example" } }'
type
required
string
Idempotency-Key
string
<= 128 characters

Opaque correlation ID for the response and audit record. Deterministic rendering makes deduplication unnecessary.

Media typeapplication/json
object
locale
string
issuedAt
required
string format: date-time
data
required
object
assets
object
key
additional properties
string

Example generated

{
"locale": "example",
"issuedAt": "2026-04-15T12:00:00Z",
"data": {},
"assets": {
"additionalProperty": "example"
}
}

Rendered PDF. The default representation is application/pdf with the headers below. A nonzero warning count means the host should inspect the JSON warnings before releasing the document. With Accept: application/json, the body carries the same values and the warning text, and the headers are not sent.

string format: binary
X-Registry-Pdf-Digest

A labelled SHA-256 digest: sha256: and 64 lowercase hex digits.

string
/^sha256:[0-9a-f]{64}$/

SHA-256 over the PDF.

X-Registry-Data-Digest

A labelled SHA-256 digest: sha256: and 64 lowercase hex digits.

string
/^sha256:[0-9a-f]{64}$/

SHA-256 over the canonical request envelope the template read.

X-Registry-Document-Version
string

The document type and its version, as v.

X-Registry-Warning-Count
integer

Number of rendering warnings, including zero. Present on PDF responses; warning text is available in the JSON representation.

Invalid request, data, or assets (problem+json with JSON pointers)

Media typeapplication/problem+json
object
type
required
string format: uri
title
required
string
status
required
integer
detail
required
string
code
required
string
traceId
required
string
/^[0-9a-f]{32}$/
pointers
Array<string>
<= 32 items

Example generated

{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"code": "example",
"traceId": "example",
"pointers": [
"example"
]
}

Missing or invalid bearer credential; Bearer challenge

Media typeapplication/problem+json
object
type
required
string format: uri
title
required
string
status
required
integer
detail
required
string
code
required
string
traceId
required
string
/^[0-9a-f]{32}$/
pointers
Array<string>
<= 32 items

Example generated

{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"code": "example",
"traceId": "example",
"pointers": [
"example"
]
}

Verified credential is not admitted (client, actor kind, or missing render:render scope)

Media typeapplication/problem+json
object
type
required
string format: uri
title
required
string
status
required
integer
detail
required
string
code
required
string
traceId
required
string
/^[0-9a-f]{32}$/
pointers
Array<string>
<= 32 items

Example generated

{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"code": "example",
"traceId": "example",
"pointers": [
"example"
]
}

Request body over the configured limit (problem+json; audited, after authentication)

Media typeapplication/problem+json
object
type
required
string format: uri
title
required
string
status
required
integer
detail
required
string
code
required
string
traceId
required
string
/^[0-9a-f]{32}$/
pointers
Array<string>
<= 32 items

Example generated

{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"code": "example",
"traceId": "example",
"pointers": [
"example"
]
}

Compile failure, strict warnings, or oversized output

Media typeapplication/problem+json
object
type
required
string format: uri
title
required
string
status
required
integer
detail
required
string
code
required
string
traceId
required
string
/^[0-9a-f]{32}$/
pointers
Array<string>
<= 32 items

Example generated

{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"code": "example",
"traceId": "example",
"pointers": [
"example"
]
}

Render panicked

Media typeapplication/problem+json
object
type
required
string format: uri
title
required
string
status
required
integer
detail
required
string
code
required
string
traceId
required
string
/^[0-9a-f]{32}$/
pointers
Array<string>
<= 32 items

Example generated

{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"code": "example",
"traceId": "example",
"pointers": [
"example"
]
}

Audit failure or credential verifier unavailable without usable cached keys

Media typeapplication/problem+json
object
type
required
string format: uri
title
required
string
status
required
integer
detail
required
string
code
required
string
traceId
required
string
/^[0-9a-f]{32}$/
pointers
Array<string>
<= 32 items

Example generated

{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"code": "example",
"traceId": "example",
"pointers": [
"example"
]
}

Render timeout

Media typeapplication/problem+json
object
type
required
string format: uri
title
required
string
status
required
integer
detail
required
string
code
required
string
traceId
required
string
/^[0-9a-f]{32}$/
pointers
Array<string>
<= 32 items

Example generated

{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"code": "example",
"traceId": "example",
"pointers": [
"example"
]
}