Skip to main content
GET
Returns one Word template of the workflow: its name, its size and the placeholders it reads. A template of another workflow answers 404.

Authorizations

Authorization
string
header
required

API key issued from app.anyformat.ai/api-key. Send as Authorization: Bearer <key>.

Path Parameters

workflow_id
string
required
template_id
string
required

Response

Successful Response

id
string
required

Unique identifier of the template (hyphenated UUID). This is the value to put in a report node's template_file_id.

Example:

"069dcc2c-e14c-7606-8000-2ee4fb17b4e2"

name
string
required

Filename the template was uploaded under.

Example:

"safety-plan.docx"

size_bytes
integer
required

Size of the document in bytes.

Example:

48213

placeholders
string[]
required

The field keys the template reads, sorted. A run is refused while one of them is not a field of the node that feeds the report.

Example: