Skip to content
Registry StackDocsv0.49.0

Render one document and seal it (PAdES). Present only when the deployment declares seals.

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

The render route’s request body. The document type must name a seal in the bundle manifest; the payload the template reads carries a signing member {mode: seal, signerName, testOnly}. Requires the render:seal scope, which render:render does not imply, from a client the seal’s allowedClients names; the legacy API key never seals. The signing time is the server’s clock, truncated to seconds.

type
required
string
Idempotency-Key
string
<= 128 characters

Opaque correlation id; echoed and audited. A sealed file carries the signing time, so two seals of one request differ in their signed bytes; their first revision does not.

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"
}
}

Sealed PDF. The default representation is application/pdf with the headers below. With Accept: application/json, the body carries the same values and the warning text, and the headers are not sent. A sealed file has two digests: documentDigest over the first revision, Render’s rendered document, and signedFileDigest over the whole signed file; there is no pdfDigest.

string format: binary
X-Registry-Document-Digest

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

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

SHA-256 over the first revision, Render’s rendered document.

X-Registry-Signed-File-Digest

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

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

SHA-256 over the whole signed file.

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, its signing member included.

X-Registry-Document-Version
string

The document type and its version, as v.

X-Registry-Package-Digest

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

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

The served package’s digest, in the form package.expectedDigest takes.

X-Registry-Warning-Count
integer

Number of rendering warnings, including zero.

X-Registry-Seal-Id
string

The runtime seal id.

X-Registry-Seal-Level
string
Allowed values: B-T B-B

The PAdES baseline level, by its ETSI EN 319 142-1 name.

X-Registry-Certificate-Digest

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

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

SHA-256 over the seal certificate’s DER.

X-Registry-Timestamped-At
string format: date-time

B-T only: the timestamp authority’s genTime, RFC 3339 in UTC at the precision the authority gave (fractional seconds only when genTime has them).

X-Registry-Seal-Test-Only
string
Allowed values: true

True, for a seal the runtime declares assuranceProfile: local; absent otherwise.

Invalid request, data, or assets; or document-not-sealable, a document type that names no seal

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"
]
}

Forbidden: the verified credential is not admitted (client, actor kind, or missing render:seal scope), or is the legacy API key; seal-client-not-allowed: the verified client is not in the seal’s allowedClients

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"
]
}

This deployment does not serve the seal route

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"
]
}

Rate-limited: as many seals as render slots are already in flight; refused, not queued; retry later

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, or the prepared file was refused

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"
]
}

Timestamp-failed: the timestamp authority could not be reached, refused, returned an invalid token, or answered too large; one attempt, never retried, never sealed without the timestamp

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"
]
}

Signing-unavailable or seal-certificate-invalid (the seal cannot sign now, plain rendering unaffected); audit failure; or credential verifier unavailable

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"
]
}