Download a sample document
GET /v1/document-templates/{template_id}/sampleDownload a preview document using the template’s saved formatting. The sample contains three example findings and three example impression items, so you can see paragraph spacing, bullets, and character formatting before using the template for reports.
Omit revision for the current saved template or supply a retained revision to preview that version. Save edits first: samples use saved revisions, not unsaved editor changes. Findings and Impression placeholders are required. Downloading a sample does not change your 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
| Name | Type | Required | Constraints | Description |
|---|---|---|---|---|
| template_id | path: string | Yes | pattern="^[a-f0-9]{32}$" | — |
| revision | query: integer | null | No | — | — |
Example
BASE_URL=https://radiologydictation.com
curl --request GET "$BASE_URL/v1/document-templates/$TEMPLATE_ID/sample" \
--header "Authorization: Bearer $API_KEY" \
--output report.docxResponses
| Status | Description | Type |
|---|---|---|
| 200 | Successful Response | string (binary) · application/vnd.openxmlformats-officedocument.wordprocessingml.document |
| 401 | Invalid or missing API key | object · application/json |
| 429 | Too many attempts. Please try again later. | object · application/json |
| 503 | Service is unavailable. Please try again. | object · application/json |
| 404 | Template not found. | object · application/json |
| 413 | Word template exceeds the configured limits. | object · application/json |
| 422 | Invalid Word template. | object · application/json |
Response headers · 200
| Header | Type | Description |
|---|---|---|
| Content-Disposition | string | — |
Response headers · 429
| Header | Type | Description |
|---|---|---|
| Retry-After | string | — |