# Complete Word report

https://radiologydictation.com/docs/post-v1-report-documents

```http
POST /v1/report-documents
```

Use this endpoint to turn a dictation into a Word report in one request. Upload one WAV or MP3 dictation up to 10 minutes. The API fills your chosen Word template with the generated findings and impression, Technique wording clearly dictated in the audio when DICOM metadata is absent, and Technique details from supplied DICOM metadata when provided. The successful response is the completed .docx file.

Upload audio as multipart/form-data and include template_id and template_revision from your saved template. The template must contain Findings and Impression placeholders. Send an active API key and a new Idempotency-Key. Download the response body directly; it is Word file data, not JSON.

## Optional silence trimming

Trimming is off by default. To enable it, send both multipart form fields: silence_threshold_dbfs and silence_min_duration_ms. For example, -55 and 500 shorten passages that stay below -55 dBFS for at least 500 milliseconds. A more negative threshold preserves quieter sounds.

The threshold ranges from -120 to 0 dBFS. The duration is a whole number from 1 to 600000 milliseconds. Up to 100 milliseconds at each edge is kept, capped at a quarter of the requested duration. An entirely below-threshold recording is processed in full.

Quiet speech can fall below your threshold. Test your settings with representative recordings. Returned times refer to the original recording. Trimming adds no report caution and does not change prices or the original recording limits. Use a new request key if you change these settings.

## Include optional examination details

patient_name, date_of_birth, referring_physician, patient_id, and date_of_study are optional multipart overrides for the generated report values in this Word document. When omitted, the generated values are used. These overrides do not change the report endpoint output. exam_title, clinical_history, and comparison fill their matching placeholders when supplied. study_metadata gives the report generator examination context, and user_specification gives instructions for this request. These fields do not change your saved workspace settings.

## Add Technique from DICOM metadata

dicom_metadata is a form field containing a JSON array of DICOM JSON datasets. It is not a .dcm file, a PACS address, or image data. Set metadata_complete to true only when the submitted metadata covers all acquisitions; otherwise leave it false. Retrieve and prepare metadata in your own environment before sending it.

Technique wording clearly dictated in the audio can appear when dicom_metadata is omitted. If you provide dicom_metadata, the Technique text is based on that metadata. Use a Technique placeholder where the text should appear. Review flags are included in the document, even without a Review flags placeholder.

## Download and recover the result

The generated Word file is limited to 4,000,000 bytes. Check the HTTP status before saving it: successful responses are Word bytes, and errors are JSON. X-Template-Version and X-Template-Hash identify the saved template used; X-Review-Flags reports the number of review issues included.

Complete Word report requests support identical-input recovery for up to 24 hours after acceptance. A completed Word file can be retrieved for 24 hours after completion. Send the same API key, request key, and original inputs to retrieve a saved result. If the outcome is uncertain, keep the request identifiers and contact support before starting another request.

[Working with Word templates](https://radiologydictation.com/docs/word-templates.md)

[Requests, retries, and downloads](https://radiologydictation.com/docs/retries.md)

## 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.

```http
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 |
| --- | --- | --- | --- | --- |
| Idempotency-Key | header: string | Yes |  | Unique key for this generation. Keep the same API key and request key only for identical-input recovery. |

## Request

```http
multipart/form-data
```

| Name | Type | Required | Constraints | Description |
| --- | --- | --- | --- | --- |
| audio | string | Yes |  | One WAV or MP3 dictation, up to 50,000,000 bytes and 10 minutes (600 seconds). |
| template_id | string | Yes | pattern="^[a-f0-9]{32}$" | ID of your saved Word template, returned by template upload or listing. |
| template_revision | integer | Yes | minimum=1.0 | Saved version to use. Read the template to obtain its current revision. |
| dicom_metadata | string \| null | No |  | Optional JSON array of DICOM JSON datasets, encoded as text in this form field. Omit identifiers and image data. |
| metadata_complete | boolean | No | default=false | Set true only when dicom_metadata covers all acquisitions. Requires metadata; leave false for incomplete or uncertain coverage. |
| study_metadata | string \| null | No |  | Optional examination context for report generation, such as modality and body region. |
| user_specification | string \| null | No |  | Instructions for this report only; does not update saved workspace preferences. |
| exam_title | string | No | maxLength=20000; default="" | Optional text for the Exam title placeholder. |
| clinical_history | string | No | maxLength=20000; default="" | Optional supplied history for the Clinical history placeholder. |
| comparison | string | No | maxLength=20000; default="" | Optional supplied wording for the Comparison placeholder. |
| patient_name | string \| null | No |  | Optional patient name override for the Word document only. |
| date_of_birth | string \| null | No |  | Optional date of birth override for the Word document only. |
| referring_physician | string \| null | No |  | Optional referring physician override for the Word document only. |
| patient_id | string \| null | No |  | Optional patient ID override for the Word document only. |
| date_of_study | string \| null | No |  | Optional date of study override for the Word document only. |
| silence_threshold_dbfs | number \| null | No |  |  |
| silence_min_duration_ms | integer \| null | No |  |  |

## Example

```bash
BASE_URL=https://radiologydictation.com

curl --request POST "$BASE_URL/v1/report-documents" \
  --header "Authorization: Bearer $API_KEY" \
  --header "Idempotency-Key: $REQUEST_ID" \
  --form audio=@dictation.wav \
  --form "template_id=$TEMPLATE_ID" \
  --form template_revision=1 \
  --output report.docx
```

## Responses

| 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 |
| 409 | This idempotency key was already used for different input. | object · application/json |
| 413 | Word template exceeds the configured limits. | object · application/json |
| 422 | Invalid Word template. | object · application/json |
| 400 | Idempotency-Key header required | object · application/json |
| 415 | Check the required fields and their lengths. | object · application/json |
| 500 | Document generation failed. | object · application/json |
| 502 | Report generation failed. | object · application/json |

### Response headers · 200

| Header | Type | Description |
| --- | --- | --- |
| Content-Disposition | string |  |
| X-Request-Id | string |  |
| X-Template-Version | string |  |
| X-Template-Hash | string |  |
| X-Review-Flags | string |  |

### Response headers · 429

| Header | Type | Description |
| --- | --- | --- |
| X-Request-Id | string | Server request identifier for support. |
| X-Request-Status | string | Request outcome status. |
| Retry-After | string |  |

### Response headers · 409

| Header | Type | Description |
| --- | --- | --- |
| X-Request-Id | string | Server request identifier for support. |
| X-Request-Status | string | Request outcome status. |
| Retry-After | string |  |

### Response headers · 422

| Header | Type | Description |
| --- | --- | --- |
| X-Request-Id | string | Server request identifier for support. |
| X-Request-Status | string | Request outcome status. |

### Response headers · 502

| Header | Type | Description |
| --- | --- | --- |
| X-Request-Id | string | Server request identifier for support. |
| X-Request-Status | string | Request outcome status. |

## Schemas

### Body_create_complete_report_v1_report_documents_post

| Name | Type | Required | Constraints | Description |
| --- | --- | --- | --- | --- |
| audio | string | Yes |  | One WAV or MP3 dictation, up to 50,000,000 bytes and 10 minutes (600 seconds). |
| template_id | string | Yes | pattern="^[a-f0-9]{32}$" | ID of your saved Word template, returned by template upload or listing. |
| template_revision | integer | Yes | minimum=1.0 | Saved version to use. Read the template to obtain its current revision. |
| dicom_metadata | string \| null | No |  | Optional JSON array of DICOM JSON datasets, encoded as text in this form field. Omit identifiers and image data. |
| metadata_complete | boolean | No | default=false | Set true only when dicom_metadata covers all acquisitions. Requires metadata; leave false for incomplete or uncertain coverage. |
| study_metadata | string \| null | No |  | Optional examination context for report generation, such as modality and body region. |
| user_specification | string \| null | No |  | Instructions for this report only; does not update saved workspace preferences. |
| exam_title | string | No | maxLength=20000; default="" | Optional text for the Exam title placeholder. |
| clinical_history | string | No | maxLength=20000; default="" | Optional supplied history for the Clinical history placeholder. |
| comparison | string | No | maxLength=20000; default="" | Optional supplied wording for the Comparison placeholder. |
| patient_name | string \| null | No |  | Optional patient name override for the Word document only. |
| date_of_birth | string \| null | No |  | Optional date of birth override for the Word document only. |
| referring_physician | string \| null | No |  | Optional referring physician override for the Word document only. |
| patient_id | string \| null | No |  | Optional patient ID override for the Word document only. |
| date_of_study | string \| null | No |  | Optional date of study override for the Word document only. |
| silence_threshold_dbfs | number \| null | No |  |  |
| silence_min_duration_ms | integer \| null | No |  |  |
