curl 'https://api.anyformat.ai/v3/workflows/0686bb97-8c30-70f0-8000-97669e000eb8/report-templates/069dcc2c-e14c-7606-8000-2ee4fb17b4e2/' \
-H 'Authorization: Bearer YOUR_API_KEY'
template = client.get_report_template(
"0686bb97-8c30-70f0-8000-97669e000eb8", "069dcc2c-e14c-7606-8000-2ee4fb17b4e2"
)
const template = await af.getReportTemplate(
"0686bb97-8c30-70f0-8000-97669e000eb8",
"069dcc2c-e14c-7606-8000-2ee4fb17b4e2",
);
{
"id": "069dcc2c-e14c-7606-8000-2ee4fb17b4e2",
"name": "safety-plan.docx",
"size_bytes": 48213,
"placeholders": ["crew", "sections", "site_name"]
}
Upload
Get Report Template
Read one of a workflow’s Word report templates
GET
/
v3
/
workflows
/
{workflow_id}
/
report-templates
/
{template_id}
/
curl 'https://api.anyformat.ai/v3/workflows/0686bb97-8c30-70f0-8000-97669e000eb8/report-templates/069dcc2c-e14c-7606-8000-2ee4fb17b4e2/' \
-H 'Authorization: Bearer YOUR_API_KEY'
template = client.get_report_template(
"0686bb97-8c30-70f0-8000-97669e000eb8", "069dcc2c-e14c-7606-8000-2ee4fb17b4e2"
)
const template = await af.getReportTemplate(
"0686bb97-8c30-70f0-8000-97669e000eb8",
"069dcc2c-e14c-7606-8000-2ee4fb17b4e2",
);
{
"id": "069dcc2c-e14c-7606-8000-2ee4fb17b4e2",
"name": "safety-plan.docx",
"size_bytes": 48213,
"placeholders": ["crew", "sections", "site_name"]
}
Returns one Word template of the workflow: its name, its size and the
placeholders it reads. A template of another workflow answers 404.
curl 'https://api.anyformat.ai/v3/workflows/0686bb97-8c30-70f0-8000-97669e000eb8/report-templates/069dcc2c-e14c-7606-8000-2ee4fb17b4e2/' \
-H 'Authorization: Bearer YOUR_API_KEY'
template = client.get_report_template(
"0686bb97-8c30-70f0-8000-97669e000eb8", "069dcc2c-e14c-7606-8000-2ee4fb17b4e2"
)
const template = await af.getReportTemplate(
"0686bb97-8c30-70f0-8000-97669e000eb8",
"069dcc2c-e14c-7606-8000-2ee4fb17b4e2",
);
{
"id": "069dcc2c-e14c-7606-8000-2ee4fb17b4e2",
"name": "safety-plan.docx",
"size_bytes": 48213,
"placeholders": ["crew", "sections", "site_name"]
}
Authorizations
Response
Successful Response

