Download a Word template

Markdown
GET /v1/document-templates/{template_id}/download

Download the saved .docx template so you can inspect it, edit it in Word, or keep a local copy. Use revision to select a retained saved version, or omit it to download the current version. Save the binary response as a Word file.

This downloads the template, not a completed report. Report formatting options are separate from the Word file and are applied when generating documents. If you upload this file as a new template, configure those controls again for the new template.

Authentication

Create a named API key in your workspace’s API keys tab, then send it in the Authorization header on each API request. Your key connects the integration to that workspace’s saved settings and Word templates. Signing into the website does not replace this header in an API integration.

Authorization: Bearer <API_KEY>

Keep the key in your application’s server-side secret configuration. It is shown only once when created, so save it securely then. Do not place it in browser code, logs, version control, or a prompt sent to your coding agent. You can revoke an integration’s key from the workspace without changing the other keys.

Parameters

NameTypeRequiredConstraintsDescription
template_idpath: stringYespattern="^[a-f0-9]{32}$"—
revisionquery: integer | nullNo——

Example

BASE_URL=https://radiologydictation.com

curl --request GET "$BASE_URL/v1/document-templates/$TEMPLATE_ID/download" \
  --header "Authorization: Bearer $API_KEY" \
  --output report.docx

Responses

StatusDescriptionType
200Successful Responsestring (binary) · application/vnd.openxmlformats-officedocument.wordprocessingml.document
401Invalid or missing API keyobject · application/json
429Too many attempts. Please try again later.object · application/json
503Service is unavailable. Please try again.object · application/json
404Template not found.object · application/json
422Invalid Word template.object · application/json

Response headers · 200

HeaderTypeDescription
Content-Dispositionstring—

Response headers · 429

HeaderTypeDescription
Retry-Afterstring—

Select and copy