Skip to content

Download a template

GET
/v1/templates/{id}/content
curl -H "X-Api-Key: $KEY" \
"http://localhost:9027/v1/templates/$ID/content" -o invoice.docx

Downloads a template as it was uploaded.

id
required
string

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

The file

Media typeapplication/octet-stream

The file, as bytes.

string format: binary

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