Skip to content

Get a template

GET
/v1/templates/{id}
curl -H "X-Api-Key: $KEY" "http://localhost:9027/v1/templates/$ID"

One template’s details.

id
required
string

The template’s id, or an alias as name or name@version

The template

Media typeapplication/json

A stored template.

object
createdAt
required

RFC 3339.

string
format
required
string
id
required

Pass as templateId to /v1/render, /v1/render/batch or /v1/templates/validate, or point an alias at it with PUT /v1/aliases/{name}.

string
name
required
string
sha256
required

Hex SHA-256 of the content.

string
size
required
integer format: int64

Example

{
"format": "docx",
"id": "01966f3e-7c1a-7d3c-9a44-1d2f5a6b7c8d",
"name": "invoice.docx"
}

This caller has no such template

Media typeapplication/json

The JSON body of every error response.

object
error
required

A stable, machine-readable kind.

string
message
required

What went wrong, for a person.

string

Example

{
"error": "invalid_request",
"message": "unknown step 'teleport'"
}

RUSTICDOC_STORE is not set

Media typeapplication/json

The JSON body of every error response.

object
error
required

A stable, machine-readable kind.

string
message
required

What went wrong, for a person.

string

Example

{
"error": "invalid_request",
"message": "unknown step 'teleport'"
}

The store cannot be reached

Media typeapplication/json

The JSON body of every error response.

object
error
required

A stable, machine-readable kind.

string
message
required

What went wrong, for a person.

string

Example

{
"error": "invalid_request",
"message": "unknown step 'teleport'"
}