Skip to main content
POST
Create a render from a published template

Authorizations

Authorization
string
header
required

Batch Relay scoped API key or an anonymous Test Mode session. Scope names document required capabilities. Anonymous sessions are sandbox-only and do not authorize studio, event, billing, or Live Mode operations.

Headers

Idempotency-Key
string
required

Retries with the same key return the durable render job; reuse with a different request returns idempotency_conflict.

Required string length: 1 - 200
X-BatchRelay-Client-Surface
string

Untrusted optional analytics hint naming the calling client surface. It never affects authorization, routing, pricing, or behavior.

Required string length: 1 - 100
X-BatchRelay-Client-Version
string

Untrusted optional analytics hint naming the calling client version. It never affects authorization, routing, pricing, or behavior.

Required string length: 1 - 100
X-BatchRelay-Invocation-Mode
string

Untrusted optional analytics hint naming the invocation mode. It never affects authorization, routing, pricing, or behavior.

Required string length: 1 - 100

Path Parameters

template_id
string
required
Minimum string length: 1

Body

application/json
inputs
object
required

Explicit stable slot ID to value mapping. Labels and positional order are never interpreted by the API.

output_id
string
required

A published one- or multi-surface output selector, such as print-8x10-portrait or trader-card-double-sided. It owns the selected surface variants.

revision_id
string

Optional immutable template revision. When omitted, Batch Relay resolves the latest published revision and returns it in template.revision_id.

Response

Render queued, running, succeeded, or failed. Artifacts are always an array so multi-surface output is representable.

artifacts
object[]
required
created_at
string<date-time>
required
output_id
string
required
render_id
string
required
status
enum<string>
required
Available options:
queued,
running,
succeeded,
failed,
cancelled
template
object
required
updated_at
string<date-time>
required