Read a Word template

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

Read one saved template before editing or generating a report. Use an id returned by the template list or upload endpoint. Only templates owned by your workspace are accessible.

The response includes the current revision, paragraph text, layout markers, available placeholders, and saved report formatting. Paragraph IDs belong to this revision; reread the template after a successful edit instead of reusing old IDs.

Interpret editing permissions

editable identifies text you can change, deletable identifies paragraphs you can remove, and move_group identifies paragraphs that can be reordered together. Markers describe page/column breaks, images, fields, section boundaries, and other protected structure. Use this metadata to enable only supported controls.

spacing holds the saved Findings/Impression formatting controls. bulleted_placeholders and placeholder_formatting describe inherited document styling when a control is null. They help your editor show the template’s current appearance without changing it.

Update a Word 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}$"—

Example

BASE_URL=https://radiologydictation.com

curl --request GET "$BASE_URL/v1/document-templates/$TEMPLATE_ID" \
  --header "Authorization: Bearer $API_KEY"

Responses

StatusDescriptionType
200Successful ResponseTemplateDetail · application/json
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
413Word template exceeds the configured limits.object · application/json
422Invalid Word template.object · application/json

Response headers · 429

HeaderTypeDescription
Retry-Afterstring—

Schemas

Paragraph

NameTypeRequiredConstraintsDescription
idstringYes——
textstringYes——
editablebooleanYes——
deletablebooleanNodefault=false—
move_groupstring | nullNo——
markersarray<ParagraphMarker>No——

ParagraphMarker

NameTypeRequiredConstraintsDescription
kindstringYesenum=["page_break", "page_break_before", "column_break", "section_break", "image", "field", "anchor", "table_cell", "protected_structure"]—
positionstringYesenum=["before", "within", "after"]—
offsetinteger | nullNo——
section_typestring | nullNo——

ReportFormatting

NameTypeRequiredConstraintsDescription
findings_blank_paragraphbooleanNodefault=false—
impression_blank_paragraphbooleanNodefault=false—
findings_bulletedboolean | nullNo——
impression_bulletedboolean | nullNo——
findings_boldboolean | nullNo——
findings_underlineboolean | nullNo——
findings_italicboolean | nullNo——
impression_boldboolean | nullNo——
impression_underlineboolean | nullNo——
impression_italicboolean | nullNo——

TemplateDetail

NameTypeRequiredConstraintsDescription
idstringYes——
namestringYes——
revisionintegerYes——
created_atstring (date-time)Yes——
updated_atstring (date-time)Yes——
paragraphsarray<Paragraph>Yes——
placeholdersarray<string>Yes——
spacingReportFormattingNo——
bulleted_placeholdersarray<string>No——
placeholder_formattingobjectNo——

TextFormatting

NameTypeRequiredConstraintsDescription
boldbooleanNodefault=false—
underlinebooleanNodefault=false—
italicbooleanNodefault=false—

Select and copy