{"openapi":"3.1.0","info":{"title":"Radiology Dictation API","description":"Generate draft radiology reports from audio, optional Technique sections from DICOM metadata, and Word documents from saved templates. Manage shared settings, templates, and endpoint usage with a client API key. A clinician must review generated content before use.","version":"0.5.0"},"paths":{"/v1/client/settings":{"get":{"summary":"Read client settings","description":"Read the standards and instruction text saved in your workspace. This is useful when setting up an integration, displaying preferences in your application, or preparing a settings update. Any active API key in the workspace can read these shared settings.\n\nThe response contains standards_text, transcription_instructions, dictation_conventions, style_instructions, and revision. Settings are shared across all workspace keys; creating another key does not create a separate set of preferences.\n\n## Understand the four settings fields\n\n## Prepare for an update\n\nKeep the returned revision with the settings you read. When updating preferences, send that value as expected_revision so your change cannot silently overwrite a more recent edit from the workspace or another integration.\n\n[Standards and instructions](/docs/standards)\n\n[Update client settings](/docs/patch-v1-client-settings)","operationId":"read_client_settings_v1_client_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientSettings"}}}},"401":{"description":"Invalid or missing API key"},"429":{"description":"Too many attempts. Please try again later.","headers":{"Retry-After":{"schema":{"type":"integer","minimum":1.0}}}},"503":{"description":"Service is unavailable. Please try again."}},"security":[{"HTTPBearer":[]}]},"patch":{"summary":"Update client settings","description":"Update the saved preferences that your workspace uses for future reports. Send only the fields you intend to change, together with expected_revision from a recent settings read. Any active workspace API key can perform this update, so keep integration keys private.\n\nOmitted fields stay unchanged. Empty strings clear instruction fields, while null values and empty updates are rejected. A supplied standards_text must be a valid, nonempty standards library. Changes apply to subsequent reports; reports already running keep their settings snapshot.\n\n## Make a small, deliberate change\n\nFirst call GET /v1/client/settings. For example, if its revision is 3, send expected_revision: 3 together with the new style_instructions. Use the revision returned by the API rather than copying a revision number from an example. The successful response contains the saved settings and the new revision.\n\n## Handle a revision conflict\n\nA 409 means someone else saved changes after your read. Read the current settings again, preserve unrelated changes, and decide how to combine the edits before retrying with the new expected_revision. Do not automatically replace all fields with your older copy.\n\nIf an agent manages settings, require a deliberate preference-saving action. It should never turn ordinary report dictation into a settings update. Put study templates in standards_text and use the three instruction fields for their distinct purposes.\n\n[Standards and instructions](/docs/standards)","operationId":"update_client_settings_v1_client_settings_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientSettingsUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientSettings"}}}},"401":{"description":"Invalid or missing API key"},"429":{"description":"Too many attempts. Please try again later.","headers":{"Retry-After":{"schema":{"type":"integer","minimum":1.0}}}},"503":{"description":"Service is unavailable. Please try again."},"400":{"description":"Standards must have unique study IDs, such as MRI-LSP."},"413":{"description":"Request is too large.","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string"}},"additionalProperties":false,"type":"object","required":["detail"]}}}},"415":{"description":"JSON request required.","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string"}},"additionalProperties":false,"type":"object","required":["detail"]}}}},"409":{"description":"Your changes were not saved. Reload settings before trying again."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/client/settings/history":{"get":{"summary":"List settings history","description":"List saved settings versions, newest first. Use next_before as the before query parameter to load the next page. Each item identifies its revision, timestamp, source, actor, and whether it was a save, baseline, or restore. Existing workspaces receive a baseline when they next save; earlier changes cannot be recovered.","operationId":"history_v1_client_settings_history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":9223372036854775807,"minimum":0},{"type":"null"}],"title":"Before"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsHistory"}}}},"401":{"description":"Invalid or missing API key","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"429":{"description":"Too many attempts. Please try again later.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}},"headers":{"Retry-After":{"schema":{"type":"string"}}}},"503":{"description":"Service is unavailable. Please try again.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/client/settings/history/{revision}":{"get":{"summary":"Read a settings version","description":"Read the complete settings saved in one version. Versions belong to the authenticated workspace. A version that is missing or belongs to another workspace returns 404.\n\nAny active API key in the workspace can read these shared settings.","operationId":"version_v1_client_settings_history__revision__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"revision","in":"path","required":true,"schema":{"type":"integer","maximum":9223372036854775807,"minimum":0,"title":"Revision"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsVersion"}}}},"401":{"description":"Invalid or missing API key","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"429":{"description":"Too many attempts. Please try again later.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}},"headers":{"Retry-After":{"schema":{"type":"string"}}}},"503":{"description":"Service is unavailable. Please try again.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"404":{"description":"Settings version not found."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/client/settings/restore":{"post":{"summary":"Restore a settings version","description":"Restore a saved version by sending revision and expected_revision from your latest settings read. Restore creates a new version and preserves the existing history. A stale expected_revision returns 409. Changes apply to future reports; reports already running keep their settings snapshot.","operationId":"restore_v1_client_settings_restore_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsRestore"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientSettings"}}}},"401":{"description":"Invalid or missing API key","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string"}},"additionalProperties":false,"type":"object","required":["detail"]}}}},"429":{"description":"Too many attempts. Please try again later.","headers":{"Retry-After":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"properties":{"detail":{"type":"string"}},"additionalProperties":false,"type":"object","required":["detail"]}}}},"503":{"description":"Service is unavailable. Please try again.","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string"}},"additionalProperties":false,"type":"object","required":["detail"]}}}},"400":{"description":"Settings must contain valid text.","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string"}},"additionalProperties":false,"type":"object","required":["detail"]}}}},"404":{"description":"Settings version not found."},"409":{"description":"Your changes were not saved. Reload settings before trying again."},"413":{"description":"Request is too large.","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string"}},"additionalProperties":false,"type":"object","required":["detail"]}}}},"415":{"description":"JSON request required.","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string"}},"additionalProperties":false,"type":"object","required":["detail"]}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/techniques":{"post":{"summary":"Generate a Technique section","description":"Use this endpoint when you need a Technique section from acquisition metadata independently of report generation. Send acquisition metadata in DICOM JSON format, and receive Technique text, the related acquisition facts, and review flags. You can display this text in your application or pass it to the Word document endpoint.\n\nSend a JSON body with source.type set to metadata and your datasets in source.dicom_metadata. Omit patient identifiers and image data. The API processes the submitted metadata without retrieving images or contacting a PACS. Arrange any PACS retrieval in your own environment.\n\n## Prepare the metadata\n\nDICOM JSON uses tag numbers as property names. Each tag contains its value representation (vr) and Value array. For example, tag 00080060 with vr CS and Value [\"MR\"] identifies the modality. Submit relevant acquisition metadata across the study rather than assuming one image header describes every sequence.\n\nSet source.metadata_complete to true only when your submission covers all acquisitions. Leave it false for a partial selection or when completeness is unknown. Do not include pixel data, InlineBinary values, or a URL expecting the API to fetch the study.\n\n## Understand the response\n\ntechnique contains the Technique text. sentences and acquisition_facts provide the related acquisition facts and references. Use these fields when your application needs to display the supporting details alongside the text.\n\nreview_flags identifies information that needs confirmation, such as incomplete acquisition metadata or contrast details. Metadata can be incomplete even when the JSON is valid, so review those flags rather than treating the generated line as a verified acquisition record.\n\n## Recover an identical request\n\nUse a new Idempotency-Key for a new generation. Identical retries with the same API key can retrieve a successful result for 24 hours. After that window the same key cannot start another generation. If the result is uncertain, keep the request identifiers and contact support before starting new work.\n\n[Requests, retries, and downloads](/docs/retries)","operationId":"create_technique_v1_techniques_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechniqueRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechniqueResponse"}}},"headers":{"X-Request-Id":{"schema":{"type":"string"}}}},"400":{"description":"Idempotency-Key header required"},"401":{"description":"Invalid or missing API key"},"409":{"description":"This request needs support before it can be retried. Contact support with the request ID.","headers":{"Retry-After":{"schema":{"type":"string"}}}},"413":{"description":"Metadata exceeds the configured limits."},"415":{"description":"JSON request required."},"422":{"description":"Invalid DICOM metadata."},"429":{"description":"Too many attempts. Please try again later.","headers":{"Retry-After":{"schema":{"type":"string"}}}},"502":{"description":"Technique generation failed.","headers":{"X-Request-Id":{"description":"Server request identifier for support.","schema":{"type":"string"}},"X-Request-Status":{"description":"Request outcome status.","schema":{"type":"string"}}}},"503":{"description":"Technique generation is unavailable."}}}},"/v1/usage/endpoints":{"get":{"summary":"Read usage by endpoint","description":"See how your integration uses each API operation over a calendar month or across all recorded history. The response separates request attempts, accepted work, completed results, failures, rejected calls, duplicate retries, and uncertain outcomes.\n\nOmit month for all-time totals, or send YYYY-MM for a calendar month in the returned timezone. Set all_keys=true to include all keys owned by your workspace, including revoked keys. Without all_keys, only the key making this request is included.\n\n## Read the counters\n\noperation identifies the action, such as reports.create or report_documents.create. requests measures recorded service calls, succeeded counts completed results, and duplicates counts retries recognized as work already submitted. A duplicate retry is not another completed generation. Some authentication, validation, and rate-limit errors occur before service-level recording, so this is not a count of every HTTP request received.\n\nSettings and template actions also appear under their operation names. A complete Word report is counted as one report_documents.create operation.\n\nFor example, month=2026-09&all_keys=true selects September 2026 across the workspace. Omit month to select all time. Calendar-month filters are different from the key-specific reporting window returned by GET /v1/usage.","operationId":"endpoint_usage_v1_usage_endpoints_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"month","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[0-9]{4}-(0[1-9]|1[0-2])$"},{"type":"null"}],"title":"Month"}},{"name":"all_keys","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"All Keys"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndpointUsageSummary"}}}},"401":{"description":"Invalid or missing API key","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"429":{"description":"Too many attempts. Please try again later.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}},"headers":{"Retry-After":{"schema":{"type":"string"}}}},"503":{"description":"Service is unavailable. Please try again.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/documents":{"post":{"summary":"Generate a Word document","description":"Use this endpoint when you already have structured findings and impression and want to format them as a Word document. It fills an owned, saved template using the report text you provide. It does not transcribe audio or generate a Technique section for you.\n\nRead your template to obtain template_id and template_revision. Send these with a report object containing ordered findings and impression arrays. Include an active API key and a new Idempotency-Key. The successful response is a .docx attachment, not a JSON object.\n\n## Fill the optional fields\n\nOptional top-level patient_name, date_of_birth, referring_physician, patient_id, and date_of_study fields override the matching values from report for this Word document only. If omitted, the values from report are used. Optional technique, exam_title, clinical_history, and comparison fields fill their matching placeholders. Pass the Technique result’s technique text when you have generated it separately. Include review_flags from your source report so they remain visible in the document.\n\nThe saved template revision supplies the document layout and Findings/Impression formatting controls. List items become Word paragraphs, and the rest of the template retains its formatting. The API preserves review flags even if the template has no designated placeholder for them.\n\n## Save the response and handle retries\n\nSave a successful response body directly as a Word file, up to 4,000,000 bytes. Check the status and Content-Type first so an error JSON response is not saved as a .docx. Identical retries with the same API key and Idempotency-Key can download the saved document for 24 hours after completion, even if the template has since changed or been deleted.\n\nChanging any input requires a new request key. After the recovery window, the original key cannot start another generation. Request status with operation=documents.render reports state only; it does not return the Word file.\n\n[Working with Word templates](/docs/word-templates)\n\n[Requests, retries, and downloads](/docs/retries)","operationId":"create_document_v1_documents_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"schema":{"type":"string","format":"binary"}}},"headers":{"Content-Disposition":{"schema":{"type":"string"}},"X-Request-Id":{"schema":{"type":"string"}},"X-Template-Version":{"schema":{"type":"string"}},"X-Template-Hash":{"schema":{"type":"string"}},"X-Review-Flags":{"schema":{"type":"string"}}}},"401":{"description":"Invalid or missing API key","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"429":{"description":"Too many attempts. Please try again later.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}},"headers":{"Retry-After":{"schema":{"type":"string"}}}},"503":{"description":"Service is unavailable. Please try again.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"404":{"description":"Template not found.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"409":{"description":"This idempotency key was already used for different input.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"413":{"description":"Word template exceeds the configured limits.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"422":{"description":"Invalid Word template.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"400":{"description":"Idempotency-Key header required","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"415":{"description":"JSON request required.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"500":{"description":"Document generation failed.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"502":{"description":"Document generation failed.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}},"headers":{"X-Request-Id":{"description":"Server request identifier for support.","schema":{"type":"string"}},"X-Request-Status":{"description":"Request outcome status.","schema":{"type":"string"}}}}}}},"/v1/report-documents":{"post":{"summary":"Complete Word report","description":"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.\n\nUpload 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.\n\n## Optional silence trimming\n\nTrimming 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.\n\nThe 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.\n\nQuiet 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.\n\n## Include optional examination details\n\npatient_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.\n\n## Add Technique from DICOM metadata\n\ndicom_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.\n\nTechnique 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.\n\n## Download and recover the result\n\nThe 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.\n\nComplete 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.\n\n[Working with Word templates](/docs/word-templates)\n\n[Requests, retries, and downloads](/docs/retries)","operationId":"create_complete_report_v1_report_documents_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","description":"Unique key for this generation. Keep the same API key and request key only for identical-input recovery.","title":"Idempotency-Key"},"description":"Unique key for this generation. Keep the same API key and request key only for identical-input recovery."}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_create_complete_report_v1_report_documents_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"schema":{"type":"string","format":"binary"}}},"headers":{"Content-Disposition":{"schema":{"type":"string"}},"X-Request-Id":{"schema":{"type":"string"}},"X-Template-Version":{"schema":{"type":"string"}},"X-Template-Hash":{"schema":{"type":"string"}},"X-Review-Flags":{"schema":{"type":"string"}}}},"401":{"description":"Invalid or missing API key","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"429":{"description":"Too many attempts. Please try again later.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}},"headers":{"X-Request-Id":{"description":"Server request identifier for support.","schema":{"type":"string"}},"X-Request-Status":{"description":"Request outcome status.","schema":{"type":"string"}},"Retry-After":{"schema":{"type":"string"}}}},"503":{"description":"Service is unavailable. Please try again.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"404":{"description":"Template not found.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"409":{"description":"This idempotency key was already used for different input.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}},"example":{"detail":"This request needs support before it can be retried. Contact support with the request ID."}}},"headers":{"X-Request-Id":{"description":"Server request identifier for support.","schema":{"type":"string"}},"X-Request-Status":{"description":"Request outcome status.","schema":{"type":"string"}},"Retry-After":{"schema":{"type":"string"}}}},"413":{"description":"Word template exceeds the configured limits.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"422":{"description":"Invalid Word template.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}},"example":{"detail":"No speech was detected. Check the recording and submit it again."}}},"headers":{"X-Request-Id":{"description":"Server request identifier for support.","schema":{"type":"string"}},"X-Request-Status":{"description":"Request outcome status.","schema":{"type":"string"}}}},"400":{"description":"Idempotency-Key header required","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"415":{"description":"Check the required fields and their lengths.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"500":{"description":"Document generation failed.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"502":{"description":"Report generation failed.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}},"headers":{"X-Request-Id":{"description":"Server request identifier for support.","schema":{"type":"string"}},"X-Request-Status":{"description":"Request outcome status.","schema":{"type":"string"}}}}}}},"/v1/reports/stream-sessions":{"post":{"summary":"Start a live report session","operationId":"start_report_stream_v1_reports_stream_sessions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportStreamStart"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/report-documents/stream-sessions":{"post":{"summary":"Start a live Word report session","operationId":"start_word_stream_v1_report_documents_stream_sessions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportDocumentStreamStart"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/stream-sessions/{session_id}":{"get":{"summary":"Stream Status","operationId":"stream_status_v1_stream_sessions__session_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Cancel Stream","operationId":"cancel_stream_v1_stream_sessions__session_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/stream-sessions/{session_id}/result":{"get":{"summary":"Get completed live report","operationId":"stream_result_v1_stream_sessions__session_id__result_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportResponse"}},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"schema":{"type":"string","format":"binary"}}}},"401":{"description":"Valid API key required"},"404":{"description":"Request not found"},"409":{"description":"This request is still processing."},"503":{"description":"Service is unavailable. Please try again."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/document-templates":{"get":{"summary":"List Word templates","description":"List the Word templates saved in your workspace. Use this endpoint to offer a template picker in your integration. All active workspace API keys see the same owned templates and saved formatting.\n\nEach list item includes an id, name, current revision, and creation/update times. An empty array means no templates have been uploaded yet. Read an individual template when you need paragraph details or formatting controls.\n\n[Working with Word templates](/docs/word-templates)","operationId":"list_templates_v1_document_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/TemplateSummary"},"type":"array","title":"Response List Templates V1 Document Templates Get"}}}},"401":{"description":"Invalid or missing API key","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string"}},"additionalProperties":false,"type":"object","required":["detail"]}}}},"429":{"description":"Too many attempts. Please try again later.","headers":{"Retry-After":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"properties":{"detail":{"type":"string"}},"additionalProperties":false,"type":"object","required":["detail"]}}}},"503":{"description":"Service is unavailable. Please try again.","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string"}},"additionalProperties":false,"type":"object","required":["detail"]}}}}},"security":[{"HTTPBearer":[]}]},"post":{"summary":"Upload a Word template","description":"Upload a .docx document to create a template owned by your workspace. It can be an empty template or a completed report you want to reuse. Send multipart/form-data with the file in document and a readable template name in name.\n\nThe response includes the template id, revision, paragraph IDs, placeholders, and saved report formatting. Use these details to replace report-specific text with placeholders and remove leftover paragraphs. Uploaded formatting and images are preserved.\n\n## Turn an existing report into a reusable template\n\nA completed report can be uploaded before its placeholders are ready. Replace the old findings and impression with {{ findings }} and {{ impression }}, then delete any remaining report-specific text. Both placeholders are required before downloading a sample or generating a report.\n\nThe compressed upload limit is 2,000,000 bytes. The API accepts ordinary .docx documents and rejects unsafe or unsupported content such as macros, embedded objects, external relationships, and tracked changes. Use Word to simplify a document if validation rejects its structure.\n\n[Working with Word templates](/docs/word-templates)\n\n[Update a Word template](/docs/patch-v1-document-templates-template-id)","operationId":"upload_template_v1_document_templates_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_template_v1_document_templates_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateDetail"}}}},"401":{"description":"Invalid or missing API key","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string"}},"additionalProperties":false,"type":"object","required":["detail"]}}}},"429":{"description":"Too many attempts. Please try again later.","headers":{"Retry-After":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"properties":{"detail":{"type":"string"}},"additionalProperties":false,"type":"object","required":["detail"]}}}},"503":{"description":"Service is unavailable. Please try again.","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string"}},"additionalProperties":false,"type":"object","required":["detail"]}}}},"413":{"description":"Word template exceeds the configured limits.","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string"}},"additionalProperties":false,"type":"object","required":["detail"]}}}},"422":{"description":"Invalid Word template.","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string"}},"additionalProperties":false,"type":"object","required":["detail"]}}}},"415":{"description":"Check the required fields and their lengths.","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string"}},"additionalProperties":false,"type":"object","required":["detail"]}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/document-templates/starter":{"get":{"summary":"Download a starter template","description":"Download a starter .docx with supported report placeholders. Use it when you do not have an existing Word document to begin with. The response is Word file data that you can save and open in Word.\n\nDownloading the starter does not add it to your workspace. Upload the file with a name to create your own saved template, then adjust the layout and report formatting as needed.\n\n[Upload a Word template](/docs/post-v1-document-templates)","operationId":"starter_v1_document_templates_starter_get","responses":{"200":{"description":"Successful Response","headers":{"Content-Disposition":{"schema":{"type":"string"}}},"content":{"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"schema":{"type":"string","format":"binary"}}}},"401":{"description":"Invalid or missing API key","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string"}},"additionalProperties":false,"type":"object","required":["detail"]}}}},"429":{"description":"Too many attempts. Please try again later.","headers":{"Retry-After":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"properties":{"detail":{"type":"string"}},"additionalProperties":false,"type":"object","required":["detail"]}}}},"503":{"description":"Service is unavailable. Please try again.","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string"}},"additionalProperties":false,"type":"object","required":["detail"]}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/document-templates/{template_id}":{"get":{"summary":"Read a Word template","description":"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.\n\nThe 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.\n\n## Interpret editing permissions\n\neditable 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.\n\nspacing 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.\n\n[Update a Word template](/docs/patch-v1-document-templates-template-id)","operationId":"read_template_v1_document_templates__template_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-f0-9]{32}$","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateDetail"}}}},"401":{"description":"Invalid or missing API key","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"429":{"description":"Too many attempts. Please try again later.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}},"headers":{"Retry-After":{"schema":{"type":"string"}}}},"503":{"description":"Service is unavailable. Please try again.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"404":{"description":"Template not found.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"413":{"description":"Word template exceeds the configured limits.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"422":{"description":"Invalid Word template.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}}}},"patch":{"summary":"Update a Word template","description":"Edit a saved template’s text, paragraph structure, or report formatting. Read the current template first, then send expected_revision and the changes you want to apply. A successful save creates a new revision and returns its updated paragraph IDs and formatting.\n\nA stale revision returns 409 without applying your changes. Read the latest template and review how to combine the edits before retrying. Paragraph IDs and text offsets must come from the revision you are editing.\n\n## Replace text precisely\n\nedits contains a paragraph id, start, end, and replacement text. Text-edit offsets count Unicode characters; end is exclusive. For example, start 0 and end 5 replace the first five characters. Use equal start and end to insert text, or an empty replacement string to remove selected text. JavaScript string indexes count UTF-16 code units, so convert indexes when text includes characters outside the basic multilingual plane.\n\n## Delete, move, or remove a break\n\noperations can delete eligible paragraphs, move a paragraph before another within its safe move_group, or remove page and column breaks. A move with before_id omitted or null places the paragraph at the end of its group. Break offsets refer to the original revision; page_break_before has no offset. Text edits are applied before structural operations. The whole update is rejected if an operation is invalid.\n\n## Save report formatting\n\nOmitted spacing keeps the saved formatting. A supplied spacing object replaces the formatting options: include the saved values you want to preserve. Blank-paragraph options accept true or false. Bold, underline, italic, and bullet options accept true, false, or null to inherit the template. An omitted option inside a supplied spacing object resets to its default.\n\nFormatting applies to generated Findings and Impression text. Headings, surrounding text, images, and other document formatting retain their existing appearance. The API examples below show formatting-only changes as well as text edits and paragraph operations.\n\n[Working with Word templates](/docs/word-templates)","operationId":"update_template_v1_document_templates__template_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-f0-9]{32}$","title":"Template Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateDetail"}}}},"401":{"description":"Invalid or missing API key","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"429":{"description":"Too many attempts. Please try again later.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}},"headers":{"Retry-After":{"schema":{"type":"string"}}}},"503":{"description":"Service is unavailable. Please try again.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"404":{"description":"Template not found.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"409":{"description":"Template changed. Reload it before saving.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"413":{"description":"Word template exceeds the configured limits.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"422":{"description":"Invalid Word template.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"415":{"description":"JSON request required.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}}}},"delete":{"summary":"Delete a Word template","description":"Delete a template that is no longer needed. Send its id in the path and its current revision as the expected_revision query parameter. A successful response is 204 with no body.\n\nA 409 means the template changed after you read it. Read the current version and confirm that deletion is still intended before retrying. New generations cannot use a deleted template; completed Word files remain available for identical retries until their recovery window ends.","operationId":"delete_template_v1_document_templates__template_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-f0-9]{32}$","title":"Template Id"}},{"name":"expected_revision","in":"query","required":true,"schema":{"type":"integer","minimum":1,"title":"Expected Revision"}}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"Invalid or missing API key","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"429":{"description":"Too many attempts. Please try again later.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}},"headers":{"Retry-After":{"schema":{"type":"string"}}}},"503":{"description":"Service is unavailable. Please try again.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"404":{"description":"Template not found.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"409":{"description":"Template changed. Reload it before saving.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"422":{"description":"Invalid Word template.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}}}}},"/v1/document-templates/{template_id}/download":{"get":{"summary":"Download a Word template","description":"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.\n\nThis 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.","operationId":"download_template_v1_document_templates__template_id__download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-f0-9]{32}$","title":"Template Id"}},{"name":"revision","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Revision"}}],"responses":{"200":{"description":"Successful Response","content":{"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"schema":{"type":"string","format":"binary"}}},"headers":{"Content-Disposition":{"schema":{"type":"string"}}}},"401":{"description":"Invalid or missing API key","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"429":{"description":"Too many attempts. Please try again later.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}},"headers":{"Retry-After":{"schema":{"type":"string"}}}},"503":{"description":"Service is unavailable. Please try again.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"404":{"description":"Template not found.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"422":{"description":"Invalid Word template.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}}}}},"/v1/document-templates/{template_id}/sample":{"get":{"summary":"Download a sample document","description":"Download 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.\n\nOmit 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.","operationId":"sample_v1_document_templates__template_id__sample_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-f0-9]{32}$","title":"Template Id"}},{"name":"revision","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Revision"}}],"responses":{"200":{"description":"Successful Response","content":{"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"schema":{"type":"string","format":"binary"}}},"headers":{"Content-Disposition":{"schema":{"type":"string"}}}},"401":{"description":"Invalid or missing API key","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"429":{"description":"Too many attempts. Please try again later.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}},"headers":{"Retry-After":{"schema":{"type":"string"}}}},"503":{"description":"Service is unavailable. Please try again.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"404":{"description":"Template not found.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"413":{"description":"Word template exceeds the configured limits.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}},"422":{"description":"Invalid Word template.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"additionalProperties":false,"properties":{"detail":{"type":"string"}}}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Health Health Get"}}}}}}},"/v1/usage":{"get":{"summary":"Get current usage","description":"Read summary counts for JSON report requests made by the current API key during its current reporting window. The response includes the window’s start and end, its timezone, report_requests, completed_reports, and failed_or_blocked.\n\nUse this endpoint for the existing per-key report summary. For calendar months, all-time totals, multiple keys, or separate counts for Technique and Word generation, use GET /v1/usage/endpoints instead. The legacy report summary does not combine those operations.\n\n[Read usage by endpoint](/docs/get-v1-usage-endpoints)","operationId":"current_usage_v1_usage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageSummary"}}}},"401":{"description":"Invalid or missing API key"},"503":{"description":"Service is unavailable. Please try again."},"429":{"description":"Too many checks. Try again in a minute."}},"security":[{"HTTPBearer":[]}]}},"/v1/requests/{idempotency_key}":{"get":{"summary":"Check request status","description":"Check the state of a generation request when your integration needs to know whether it finished. Put the original Idempotency-Key in the path, use the same API key, and select the operation matching the endpoint you called.\n\nThe response contains status only: running, succeeded, failed, or uncertain. It does not return generated content. Retrieve a saved result by sending an identical retry to the original generation endpoint within its recovery window.\n\n## Select the correct operation\n\nSet operation to reports.create, techniques.create, documents.render, or report_documents.create; it defaults to reports.create. A request key used at one endpoint does not identify a request at another endpoint. A 404 means no matching request is recorded for this API key and operation.\n\nDo not automatically start a new generation when status is uncertain. Keep the original key and X-Request-Id and contact support. See the retry guide for the meaning of each state and how to recover downloads.\n\n[Requests, retries, and downloads](/docs/retries)","operationId":"request_status_v1_requests__idempotency_key__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"idempotency_key","in":"path","required":true,"schema":{"type":"string","title":"Idempotency Key"}},{"name":"operation","in":"query","required":false,"schema":{"enum":["reports.create","techniques.create","documents.render","report_documents.create"],"type":"string","default":"reports.create","title":"Operation"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestStatus"}}}},"401":{"description":"Invalid or missing API key"},"503":{"description":"Service is unavailable. Please try again."},"400":{"description":"Invalid request ID"},"404":{"description":"Request not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports":{"post":{"summary":"Create report","description":"Use this endpoint when your application needs a draft report as structured JSON. Upload one WAV or MP3 dictation up to 10 minutes. The API returns technique, patient name, date of birth, referring physician, patient ID, date of study, ordered findings and impression items, review flags, and the transcription with word timings. Missing or uncertain metadata values are returned as \"Not provided.\" Your active API key selects the workspace’s saved standards and instructions.\n\nSave your standards before making the first request. Send the recording in the audio field of a multipart/form-data request, together with an Authorization header and a new Idempotency-Key. Let your HTTP client create the multipart boundary; do not set this request’s Content-Type to application/json.\n\n## Optional silence trimming\n\nTrimming 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.\n\nThe 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.\n\nQuiet 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.\n\n## Add context when it helps\n\nstudy_metadata can describe the examination, such as the modality and body region. user_specification supplies instructions for this request only; it does not update saved settings. Use the settings API when a preference should apply to future reports.\n\n## Use the report in your application\n\nThe response includes technique, patient_name, date_of_birth, referring_physician, patient_id, and date_of_study as strings; missing or uncertain values are \"Not provided.\" The Technique value can include acquisition wording dictated in the audio. Findings and impression are ordered arrays. Preserve that order when displaying or exporting them. Read review_flags before using the draft, and provide a clinician review step. transcription.text holds readable text, while transcription.words contains word start/end times in seconds from the original audio. Words without usable timings may be absent from that list.\n\nstandard_id identifies the selected saved standard when one is selected. X-Request-Id identifies the server request for support, while the settings-version headers describe the snapshot used for this report.\n\n## Keep the successful response\n\nAn identical retry can retrieve a successful report JSON response for 24 hours after completion. Keep the original input and request key if you may need to recover a response.\n\n[Standards and instructions](/docs/standards)\n\n[Requests, retries, and downloads](/docs/retries)","operationId":"create_report_v1_reports_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","description":"Unique ID for this dictation. Reuse it only to retry the identical request. Use letters, digits, periods, underscores, tildes, or hyphens; up to 128 characters.","title":"Idempotency-Key"},"description":"Unique ID for this dictation. Reuse it only to retry the identical request. Use letters, digits, periods, underscores, tildes, or hyphens; up to 128 characters."}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_create_report_v1_reports_post"}}}},"responses":{"200":{"description":"Draft report JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportResponse"}}},"headers":{"X-Request-Id":{"description":"Server request identifier for support.","schema":{"type":"string"}},"X-Standard-Version":{"description":"Version identifier for the selected standard.","schema":{"type":"string"}},"X-Profile-Version":{"description":"Version identifier for the report profile, or \"none\".","schema":{"type":"string"}}}},"401":{"description":"Invalid or missing API key"},"503":{"description":"Service is unavailable. Please try again."},"400":{"description":"Invalid request ID"},"409":{"description":"Request ID reused, already processed, or client standards not configured"},"413":{"description":"Upload or text too large"},"415":{"description":"Unsupported or unreadable audio"},"429":{"description":"Request temporarily unavailable"},"502":{"description":"Report generation failed."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AcquisitionFact":{"properties":{"id":{"type":"string","title":"Id"},"series":{"type":"string","title":"Series"},"attribute":{"type":"string","title":"Attribute"},"values":{"items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"integer"}]},"type":"array","title":"Values"},"sources":{"items":{"type":"string"},"type":"array","title":"Sources"}},"additionalProperties":false,"type":"object","required":["id","series","attribute","values","sources"],"title":"AcquisitionFact"},"Body_create_complete_report_v1_report_documents_post":{"properties":{"audio":{"type":"string","contentMediaType":"application/octet-stream","title":"Audio","description":"One WAV or MP3 dictation, up to 50,000,000 bytes and 10 minutes (600 seconds)."},"template_id":{"type":"string","pattern":"^[a-f0-9]{32}$","title":"Template Id","description":"ID of your saved Word template, returned by template upload or listing."},"template_revision":{"type":"integer","minimum":1.0,"title":"Template Revision","description":"Saved version to use. Read the template to obtain its current revision."},"dicom_metadata":{"anyOf":[{"type":"string","maxLength":2000000},{"type":"null"}],"title":"Dicom Metadata","description":"Optional JSON array of DICOM JSON datasets, encoded as text in this form field. Omit identifiers and image data."},"metadata_complete":{"type":"boolean","title":"Metadata Complete","description":"Set true only when dicom_metadata covers all acquisitions. Requires metadata; leave false for incomplete or uncertain coverage.","default":false},"study_metadata":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Study Metadata","description":"Optional examination context for report generation, such as modality and body region."},"user_specification":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"User Specification","description":"Instructions for this report only; does not update saved workspace preferences."},"exam_title":{"type":"string","maxLength":20000,"title":"Exam Title","description":"Optional text for the Exam title placeholder.","default":""},"clinical_history":{"type":"string","maxLength":20000,"title":"Clinical History","description":"Optional supplied history for the Clinical history placeholder.","default":""},"comparison":{"type":"string","maxLength":20000,"title":"Comparison","description":"Optional supplied wording for the Comparison placeholder.","default":""},"patient_name":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Patient Name","description":"Optional patient name override for the Word document only."},"date_of_birth":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Date Of Birth","description":"Optional date of birth override for the Word document only."},"referring_physician":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Referring Physician","description":"Optional referring physician override for the Word document only."},"patient_id":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Patient Id","description":"Optional patient ID override for the Word document only."},"date_of_study":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Date Of Study","description":"Optional date of study override for the Word document only."},"silence_threshold_dbfs":{"anyOf":[{"type":"number","maximum":0.0,"minimum":-120.0},{"type":"null"}],"title":"Silence Threshold Dbfs"},"silence_min_duration_ms":{"anyOf":[{"type":"integer","maximum":600000.0,"minimum":1.0},{"type":"null"}],"title":"Silence Min Duration Ms"}},"type":"object","required":["audio","template_id","template_revision"],"title":"Body_create_complete_report_v1_report_documents_post"},"Body_create_report_v1_reports_post":{"properties":{"audio":{"type":"string","contentMediaType":"application/octet-stream","title":"Audio","description":"Upload a WAV or MP3 dictation file. Maximum size: 50,000,000 bytes. Maximum duration: 10 minutes (600 seconds)."},"user_specification":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Specification","description":"Optional formatting or style instructions."},"study_metadata":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Study Metadata","description":"Optional study details such as modality and body region."},"experimental":{"type":"boolean","const":false,"title":"Experimental","description":"Experimental transcription mode.","default":false,"deprecated":true},"silence_threshold_dbfs":{"anyOf":[{"type":"number","maximum":0.0,"minimum":-120.0},{"type":"null"}],"title":"Silence Threshold Dbfs"},"silence_min_duration_ms":{"anyOf":[{"type":"integer","maximum":600000.0,"minimum":1.0},{"type":"null"}],"title":"Silence Min Duration Ms"}},"type":"object","required":["audio"],"title":"Body_create_report_v1_reports_post"},"Body_upload_template_v1_document_templates_post":{"properties":{"document":{"type":"string","contentMediaType":"application/octet-stream","title":"Document","description":"Word document (.docx) to reuse as a template, including an existing completed report."},"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name","description":"A readable name for choosing this template later."}},"type":"object","required":["document","name"],"title":"Body_upload_template_v1_document_templates_post"},"ClientSettings":{"properties":{"standards_text":{"type":"string","maxLength":200000,"title":"Standards Text","description":"Your saved study-specific report wording. Begin each standard with a unique uppercase, hyphen-separated label on its own line, such as MRI-LSP.","default":""},"transcription_instructions":{"type":"string","maxLength":20000,"title":"Transcription Instructions","description":"Terminology guidance used when recognizing spoken words, such as medical names, laterality, and measurements.","default":""},"dictation_conventions":{"type":"string","maxLength":20000,"title":"Dictation Conventions","description":"Rules for interpreting spoken commands and corrections when constructing the report.","default":""},"style_instructions":{"type":"string","maxLength":20000,"title":"Style Instructions","description":"Preferences for report wording, organization, and expression of certainty.","default":""},"technique_instructions":{"$ref":"#/components/schemas/TechniqueInstructions"},"pathology_text":{"type":"string","maxLength":200000,"title":"Pathology Text","default":""},"revision":{"type":"integer","minimum":0.0,"title":"Revision","description":"The saved settings version. Send this value as expected_revision when preparing an update.","default":0},"groups":{"items":{"$ref":"#/components/schemas/SettingsGroup"},"type":"array","maxItems":100,"minItems":1,"title":"Groups"}},"additionalProperties":false,"type":"object","title":"ClientSettings"},"ClientSettingsUpdate":{"properties":{"expected_revision":{"type":"integer","minimum":0.0,"title":"Expected Revision","description":"revision from your most recent settings read. A stale value returns 409 instead of overwriting newer settings."},"standards_text":{"type":"string","maxLength":200000,"title":"Standards Text","description":"Replace the saved standards library. Must contain at least one recognized unique label; cannot be empty. Omit to preserve it."},"transcription_instructions":{"type":"string","maxLength":20000,"title":"Transcription Instructions","description":"Replace terminology guidance. Omit to preserve it; an empty string clears it. Null is rejected."},"dictation_conventions":{"type":"string","maxLength":20000,"title":"Dictation Conventions","description":"Replace spoken-command and correction rules. Omit to preserve them; an empty string clears them. Null is rejected."},"style_instructions":{"type":"string","maxLength":20000,"title":"Style Instructions","description":"Replace report-writing preferences. Omit to preserve them; an empty string clears them. Null is rejected."},"technique_instructions":{"$ref":"#/components/schemas/TechniqueInstructions","title":"Technique Instructions"},"groups":{"items":{"$ref":"#/components/schemas/SettingsGroup"},"type":"array","maxItems":100,"minItems":1,"title":"Groups"}},"additionalProperties":false,"type":"object","required":["expected_revision"],"title":"ClientSettingsUpdate","examples":[{"expected_revision":0,"style_instructions":""}]},"DeleteParagraph":{"properties":{"operation":{"type":"string","const":"delete","title":"Operation"},"id":{"type":"string","maxLength":200,"title":"Id"}},"additionalProperties":false,"type":"object","required":["operation","id"],"title":"DeleteParagraph"},"DocumentReport":{"properties":{"schema_version":{"type":"string","const":"1.2","title":"Schema Version","default":"1.2"},"standard_id":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Standard Id"},"technique":{"type":"string","maxLength":20000,"title":"Technique","default":"Not provided."},"patient_name":{"type":"string","maxLength":20000,"title":"Patient Name","default":"Not provided."},"date_of_birth":{"type":"string","maxLength":20000,"title":"Date Of Birth","default":"Not provided."},"referring_physician":{"type":"string","maxLength":20000,"title":"Referring Physician","default":"Not provided."},"patient_id":{"type":"string","maxLength":20000,"title":"Patient Id","default":"Not provided."},"date_of_study":{"type":"string","maxLength":20000,"title":"Date Of Study","default":"Not provided."},"findings":{"items":{"type":"string","maxLength":20000},"type":"array","maxItems":200,"title":"Findings"},"impression":{"items":{"type":"string","maxLength":20000},"type":"array","maxItems":100,"title":"Impression"},"review_flags":{"items":{"$ref":"#/components/schemas/ReviewFlag"},"type":"array","maxItems":100,"title":"Review Flags"},"transcription":{"anyOf":[{"$ref":"#/components/schemas/TimestampedTranscript"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["findings","impression"],"title":"DocumentReport"},"DocumentRequest":{"properties":{"template_id":{"type":"string","pattern":"^[a-f0-9]{32}$","title":"Template Id","description":"ID of a Word template owned by your workspace, returned by upload or listing."},"template_revision":{"type":"integer","minimum":1.0,"title":"Template Revision","description":"Saved template revision to use. Read the template to obtain its current revision."},"report":{"$ref":"#/components/schemas/DocumentReport","description":"The structured findings, impression, and review flags to place into the Word document."},"technique":{"type":"string","maxLength":20000,"title":"Technique","description":"Optional Technique text to fill the matching placeholder; this endpoint does not generate it.","default":""},"patient_name":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Patient Name","description":"Optional override for the patient name in this Word document. When omitted, uses report.patient_name."},"date_of_birth":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Date Of Birth","description":"Optional override for the date of birth in this Word document. When omitted, uses report.date_of_birth."},"referring_physician":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Referring Physician","description":"Optional override for the referring physician in this Word document. When omitted, uses report.referring_physician."},"patient_id":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Patient Id","description":"Optional override for the patient ID in this Word document. When omitted, uses report.patient_id."},"date_of_study":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Date Of Study","description":"Optional override for the date of study in this Word document. When omitted, uses report.date_of_study."},"exam_title":{"type":"string","maxLength":20000,"title":"Exam Title","description":"Optional examination title for the Exam title placeholder.","default":""},"clinical_history":{"type":"string","maxLength":20000,"title":"Clinical History","description":"Optional supplied clinical history for the matching placeholder.","default":""},"comparison":{"type":"string","maxLength":20000,"title":"Comparison","description":"Optional supplied comparison wording for the matching placeholder.","default":""}},"additionalProperties":false,"type":"object","required":["template_id","template_revision","report"],"title":"DocumentRequest","examples":[{"exam_title":"Example exam","report":{"findings":["Example finding."],"impression":["Example impression."]},"template_id":"00000000000000000000000000000000","template_revision":1}]},"EndpointUsage":{"properties":{"operation":{"type":"string","title":"Operation","description":"The recorded action, such as reports.create or report_documents.create."},"requests":{"type":"integer","minimum":0.0,"title":"Requests","description":"Recorded service invocations, including recognized retries. Does not include every early HTTP denial."},"accepted":{"type":"integer","minimum":0.0,"title":"Accepted","description":"New logical work accepted for this operation."},"succeeded":{"type":"integer","minimum":0.0,"title":"Succeeded","description":"Logical operations that completed successfully."},"failed":{"type":"integer","minimum":0.0,"title":"Failed","description":"Accepted operations that finished unsuccessfully."},"rejected":{"type":"integer","minimum":0.0,"title":"Rejected","description":"Recorded calls that were rejected before starting work."},"duplicates":{"type":"integer","minimum":0.0,"title":"Duplicates","description":"Retries recognized as a previously submitted logical request."},"uncertain":{"type":"integer","minimum":0.0,"title":"Uncertain","description":"Operations whose outcome needs review before another generation."},"billable_units":{"type":"integer","minimum":0.0,"title":"Billable Units"},"client_charge_nanos":{"type":"string","pattern":"^[0-9]+$","title":"Client Charge Nanos"}},"additionalProperties":false,"type":"object","required":["operation","requests","accepted","succeeded","failed","rejected","duplicates","uncertain","billable_units","client_charge_nanos"],"title":"EndpointUsage"},"EndpointUsageSummary":{"properties":{"scope":{"type":"string","enum":["key","client"],"title":"Scope"},"month":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Month"},"timezone":{"type":"string","title":"Timezone"},"endpoints":{"items":{"$ref":"#/components/schemas/EndpointUsage"},"type":"array","title":"Endpoints"}},"type":"object","required":["scope","month","timezone","endpoints"],"title":"EndpointUsageSummary"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"MetadataSource":{"properties":{"type":{"type":"string","const":"metadata","title":"Type","description":"Use metadata to send DICOM JSON directly. This field does not select a PACS connection or file upload."},"dicom_metadata":{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":512,"minItems":1,"title":"Dicom Metadata","description":"Array of DICOM JSON datasets containing acquisition metadata. Use tag numbers, vr, and Value arrays. Exclude patient identifiers and image data."},"metadata_complete":{"type":"boolean","title":"Metadata Complete","description":"Set true only when these datasets cover all acquisitions in the study. Leave false for partial or uncertain coverage.","default":false}},"additionalProperties":false,"type":"object","required":["type","dicom_metadata"],"title":"MetadataSource"},"MoveParagraph":{"properties":{"operation":{"type":"string","const":"move","title":"Operation"},"id":{"type":"string","maxLength":200,"title":"Id"},"before_id":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Before Id"}},"additionalProperties":false,"type":"object","required":["operation","id"],"title":"MoveParagraph"},"Paragraph":{"properties":{"id":{"type":"string","title":"Id"},"text":{"type":"string","title":"Text"},"editable":{"type":"boolean","title":"Editable"},"deletable":{"type":"boolean","title":"Deletable","default":false},"move_group":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Move Group"},"markers":{"items":{"$ref":"#/components/schemas/ParagraphMarker"},"type":"array","title":"Markers"}},"additionalProperties":false,"type":"object","required":["id","text","editable"],"title":"Paragraph"},"ParagraphEdit":{"properties":{"id":{"type":"string","maxLength":200,"title":"Id"},"start":{"type":"integer","minimum":0.0,"title":"Start"},"end":{"type":"integer","minimum":0.0,"title":"End"},"text":{"type":"string","maxLength":20000,"title":"Text"}},"additionalProperties":false,"type":"object","required":["id","start","end","text"],"title":"ParagraphEdit"},"ParagraphMarker":{"properties":{"kind":{"type":"string","enum":["page_break","page_break_before","column_break","section_break","image","field","anchor","table_cell","protected_structure"],"title":"Kind"},"position":{"type":"string","enum":["before","within","after"],"title":"Position"},"offset":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Offset"},"section_type":{"anyOf":[{"type":"string","enum":["nextPage","continuous","evenPage","oddPage","nextColumn"]},{"type":"null"}],"title":"Section Type"}},"additionalProperties":false,"type":"object","required":["kind","position"],"title":"ParagraphMarker"},"Pathology":{"properties":{"id":{"type":"string","maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9_-]+$","title":"Id"},"when_dictated":{"type":"string","maxLength":20000,"minLength":1,"title":"When Dictated"},"findings":{"type":"string","maxLength":20000,"minLength":1,"title":"Findings"},"impression":{"type":"string","maxLength":20000,"title":"Impression","default":""}},"additionalProperties":false,"type":"object","required":["id","when_dictated","findings"],"title":"Pathology"},"RemoveBreak":{"properties":{"operation":{"type":"string","const":"remove_break","title":"Operation"},"id":{"type":"string","maxLength":200,"title":"Id"},"kind":{"type":"string","enum":["page_break","column_break","page_break_before"],"title":"Kind"},"offset":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Offset"}},"additionalProperties":false,"type":"object","required":["operation","id","kind"],"title":"RemoveBreak"},"ReportDocumentInput":{"properties":{"template_id":{"type":"string","pattern":"^[a-f0-9]{32}$","title":"Template Id"},"template_revision":{"type":"integer","minimum":1.0,"title":"Template Revision"},"study_metadata":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Study Metadata"},"user_specification":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"User Specification"},"exam_title":{"type":"string","maxLength":20000,"title":"Exam Title","default":""},"clinical_history":{"type":"string","maxLength":20000,"title":"Clinical History","default":""},"comparison":{"type":"string","maxLength":20000,"title":"Comparison","default":""},"patient_name":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Patient Name"},"date_of_birth":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Date Of Birth"},"referring_physician":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Referring Physician"},"patient_id":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Patient Id"},"date_of_study":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Date Of Study"},"source":{"anyOf":[{"$ref":"#/components/schemas/MetadataSource"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["template_id","template_revision"],"title":"ReportDocumentInput"},"ReportDocumentStreamStart":{"properties":{"silence_threshold_dbfs":{"anyOf":[{"type":"number","maximum":0.0,"minimum":-120.0},{"type":"null"}],"title":"Silence Threshold Dbfs"},"silence_min_duration_ms":{"anyOf":[{"type":"integer","maximum":600000.0,"minimum":1.0},{"type":"null"}],"title":"Silence Min Duration Ms"},"payload":{"$ref":"#/components/schemas/ReportDocumentInput"},"sample_rate":{"type":"integer","const":24000,"title":"Sample Rate","default":24000}},"additionalProperties":false,"type":"object","required":["payload"],"title":"ReportDocumentStreamStart","examples":[{"payload":{"template_id":"00000000000000000000000000000000","template_revision":1},"sample_rate":24000}]},"ReportFormatting":{"properties":{"findings_blank_paragraph":{"type":"boolean","title":"Findings Blank Paragraph","default":false},"impression_blank_paragraph":{"type":"boolean","title":"Impression Blank Paragraph","default":false},"findings_bulleted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Findings Bulleted"},"impression_bulleted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Impression Bulleted"},"findings_bold":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Findings Bold"},"findings_underline":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Findings Underline"},"findings_italic":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Findings Italic"},"impression_bold":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Impression Bold"},"impression_underline":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Impression Underline"},"impression_italic":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Impression Italic"}},"additionalProperties":false,"type":"object","title":"ReportFormatting"},"ReportResponse":{"properties":{"schema_version":{"type":"string","pattern":"^1\\.2$","title":"Schema Version","description":"Version of the report JSON format."},"standard_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Standard Id","description":"Study template ID selected from the doctor's standard, or null."},"technique":{"type":"string","title":"Technique","description":"Technique text, or \"Not provided.\" when unavailable."},"patient_name":{"type":"string","title":"Patient Name","description":"Patient name, or \"Not provided.\" when unavailable."},"date_of_birth":{"type":"string","title":"Date Of Birth","description":"Date of birth, or \"Not provided.\" when unavailable."},"referring_physician":{"type":"string","title":"Referring Physician","description":"Referring physician, or \"Not provided.\" when unavailable."},"patient_id":{"type":"string","title":"Patient Id","description":"Patient ID, or \"Not provided.\" when unavailable."},"date_of_study":{"type":"string","title":"Date Of Study","description":"Study date, or \"Not provided.\" when unavailable."},"findings":{"items":{"type":"string"},"type":"array","title":"Findings","description":"Ordered finding statements."},"impression":{"items":{"type":"string"},"type":"array","title":"Impression","description":"Ordered impression statements."},"review_flags":{"items":{"$ref":"#/components/schemas/ReviewFlag"},"type":"array","title":"Review Flags","description":"Unresolved issues for clinician review."},"transcription":{"$ref":"#/components/schemas/TimestampedTranscript"}},"additionalProperties":false,"type":"object","required":["schema_version","standard_id","technique","patient_name","date_of_birth","referring_physician","patient_id","date_of_study","findings","impression","review_flags","transcription"],"title":"ReportResponse"},"ReportStreamStart":{"properties":{"silence_threshold_dbfs":{"anyOf":[{"type":"number","maximum":0.0,"minimum":-120.0},{"type":"null"}],"title":"Silence Threshold Dbfs"},"silence_min_duration_ms":{"anyOf":[{"type":"integer","maximum":600000.0,"minimum":1.0},{"type":"null"}],"title":"Silence Min Duration Ms"},"study_metadata":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Study Metadata"},"user_specification":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"User Specification"},"sample_rate":{"type":"integer","const":24000,"title":"Sample Rate","default":24000}},"additionalProperties":false,"type":"object","title":"ReportStreamStart","examples":[{"sample_rate":24000,"study_metadata":"MRI brain"}]},"RequestStatus":{"properties":{"status":{"type":"string","enum":["running","succeeded","failed","uncertain"],"title":"Status","description":"Current state of the request."}},"additionalProperties":false,"type":"object","required":["status"],"title":"RequestStatus"},"ReviewFlag":{"properties":{"issue":{"type":"string","title":"Issue","description":"What needs review."},"transcript_excerpt":{"type":"string","title":"Transcript Excerpt","description":"Relevant source transcript text."},"audio_start_seconds":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Audio Start Seconds","description":"Start time in seconds, when available."},"audio_end_seconds":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Audio End Seconds","description":"End time in seconds, when available."}},"additionalProperties":false,"type":"object","required":["issue","transcript_excerpt"],"title":"ReviewFlag"},"SettingsEntry":{"properties":{"id":{"type":"string","maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9_-]+$","title":"Id"},"name":{"type":"string","maxLength":80,"title":"Name","default":""},"text":{"type":"string","maxLength":200000,"title":"Text","default":""},"pathologies":{"items":{"$ref":"#/components/schemas/Pathology"},"type":"array","maxItems":100,"title":"Pathologies"}},"additionalProperties":false,"type":"object","required":["id"],"title":"SettingsEntry"},"SettingsGroup":{"properties":{"id":{"type":"string","maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9_-]+$","title":"Id"},"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"},"standards_text":{"type":"string","maxLength":200000,"title":"Standards Text","default":""},"transcription_instructions":{"type":"string","maxLength":20000,"title":"Transcription Instructions","default":""},"dictation_conventions":{"type":"string","maxLength":20000,"title":"Dictation Conventions","default":""},"style_instructions":{"type":"string","maxLength":20000,"title":"Style Instructions","default":""},"entries":{"additionalProperties":{"items":{"$ref":"#/components/schemas/SettingsEntry"},"type":"array","maxItems":100},"propertyNames":{"enum":["standards_text","transcription_instructions","dictation_conventions","style_instructions"]},"type":"object","title":"Entries"}},"additionalProperties":false,"type":"object","required":["id","name"],"title":"SettingsGroup","description":"One organization-only section; every section participates in requests."},"SettingsHistory":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SettingsVersionSummary"},"type":"array","title":"Items"},"current_revision":{"type":"integer","title":"Current Revision"},"next_before":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Next Before"}},"type":"object","required":["items","current_revision"],"title":"SettingsHistory"},"SettingsRestore":{"properties":{"revision":{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0,"title":"Revision"},"expected_revision":{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0,"title":"Expected Revision"}},"additionalProperties":false,"type":"object","required":["revision","expected_revision"],"title":"SettingsRestore","examples":[{"expected_revision":3,"revision":1}]},"SettingsVersion":{"properties":{"source":{"type":"string","enum":["workspace","api","system"],"title":"Source","default":"system"},"actor_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Id"},"revision":{"type":"integer","minimum":0.0,"title":"Revision"},"parent_revision":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Parent Revision"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"action":{"type":"string","enum":["baseline","update","restore"],"title":"Action"},"restored_from":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Restored From"},"settings":{"$ref":"#/components/schemas/ClientSettings"}},"additionalProperties":false,"type":"object","required":["revision","created_at","action","settings"],"title":"SettingsVersion"},"SettingsVersionSummary":{"properties":{"source":{"type":"string","enum":["workspace","api","system"],"title":"Source","default":"system"},"actor_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Id"},"revision":{"type":"integer","minimum":0.0,"title":"Revision"},"parent_revision":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Parent Revision"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"action":{"type":"string","enum":["baseline","update","restore"],"title":"Action"},"restored_from":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Restored From"}},"additionalProperties":false,"type":"object","required":["revision","created_at","action"],"title":"SettingsVersionSummary"},"TechniqueInstructions":{"properties":{"mri":{"type":"string","pattern":"^[^\\x00]*$","title":"Mri","default":""},"ct":{"type":"string","pattern":"^[^\\x00]*$","title":"Ct","default":""},"xray":{"type":"string","pattern":"^[^\\x00]*$","title":"Xray","default":""}},"additionalProperties":false,"type":"object","title":"TechniqueInstructions"},"TechniqueRequest":{"properties":{"source":{"$ref":"#/components/schemas/MetadataSource","description":"The submitted DICOM metadata and whether it covers the complete acquisition."}},"additionalProperties":false,"type":"object","required":["source"],"title":"TechniqueRequest","examples":[{"source":{"dicom_metadata":[{"00080060":{"Value":["MR"],"vr":"CS"},"00180023":{"Value":["2D"],"vr":"CS"},"00180080":{"Value":[3000],"vr":"DS"},"00180081":{"Value":[80],"vr":"DS"},"0020000E":{"Value":["1.2.840.10008.1"],"vr":"UI"}}],"metadata_complete":false,"type":"metadata"}}]},"TechniqueResponse":{"properties":{"schema_version":{"type":"string","const":"1.0","title":"Schema Version","default":"1.0"},"technique":{"type":"string","title":"Technique","description":"Technique text assembled from the submitted acquisition facts. Review the flags before using it."},"sentences":{"items":{"$ref":"#/components/schemas/TechniqueSentence"},"type":"array","title":"Sentences","description":"Individual sentences with references to the facts that support each sentence."},"acquisition_facts":{"items":{"$ref":"#/components/schemas/AcquisitionFact"},"type":"array","title":"Acquisition Facts","description":"Recognized metadata attributes and their source references, addressed by fact IDs."},"review_flags":{"items":{"type":"string"},"type":"array","title":"Review Flags","description":"Issues requiring confirmation, including incomplete metadata or contrast details."}},"additionalProperties":false,"type":"object","required":["technique","sentences","acquisition_facts","review_flags"],"title":"TechniqueResponse"},"TechniqueSentence":{"properties":{"text":{"type":"string","maxLength":1000,"minLength":1,"title":"Text"},"fact_ids":{"items":{"type":"string"},"type":"array","maxItems":64,"minItems":1,"title":"Fact Ids"}},"additionalProperties":false,"type":"object","required":["text","fact_ids"],"title":"TechniqueSentence"},"TemplateDetail":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"revision":{"type":"integer","title":"Revision"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"paragraphs":{"items":{"$ref":"#/components/schemas/Paragraph"},"type":"array","title":"Paragraphs"},"placeholders":{"items":{"type":"string"},"type":"array","title":"Placeholders"},"spacing":{"$ref":"#/components/schemas/ReportFormatting"},"bulleted_placeholders":{"items":{"type":"string"},"type":"array","title":"Bulleted Placeholders"},"placeholder_formatting":{"additionalProperties":{"$ref":"#/components/schemas/TextFormatting"},"type":"object","title":"Placeholder Formatting"}},"additionalProperties":false,"type":"object","required":["id","name","revision","created_at","updated_at","paragraphs","placeholders"],"title":"TemplateDetail"},"TemplateSummary":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"revision":{"type":"integer","title":"Revision"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"additionalProperties":false,"type":"object","required":["id","name","revision","created_at","updated_at"],"title":"TemplateSummary"},"TemplateUpdate":{"properties":{"expected_revision":{"type":"integer","minimum":1.0,"title":"Expected Revision","description":"Current revision returned by reading the template. Prevents overwriting another saved edit."},"edits":{"items":{"$ref":"#/components/schemas/ParagraphEdit"},"type":"array","maxItems":2000,"title":"Edits","description":"Text replacements using paragraph IDs and Unicode-character offsets from the expected revision. end is exclusive."},"operations":{"items":{"oneOf":[{"$ref":"#/components/schemas/DeleteParagraph"},{"$ref":"#/components/schemas/MoveParagraph"},{"$ref":"#/components/schemas/RemoveBreak"}],"discriminator":{"propertyName":"operation","mapping":{"delete":"#/components/schemas/DeleteParagraph","move":"#/components/schemas/MoveParagraph","remove_break":"#/components/schemas/RemoveBreak"}}},"type":"array","maxItems":2000,"title":"Operations","description":"Ordered paragraph deletions, moves, or page/column break removals applied after text edits."},"spacing":{"anyOf":[{"$ref":"#/components/schemas/ReportFormatting"},{"type":"null"}],"description":"Report formatting overrides. Omit to preserve saved controls. A supplied object replaces all controls; include values you want to keep. The object cannot be null."}},"additionalProperties":false,"type":"object","required":["expected_revision"],"title":"TemplateUpdate","examples":[{"expected_revision":1,"spacing":{"findings_blank_paragraph":false,"findings_bold":true,"impression_blank_paragraph":false,"impression_bold":true}},{"edits":[{"end":0,"id":"word/document.xml#0","start":0,"text":"{{ exam_title }}"}],"expected_revision":1},{"expected_revision":1,"operations":[{"id":"word/document.xml#1","operation":"delete"}]},{"expected_revision":1,"operations":[{"before_id":"word/document.xml#1","id":"word/document.xml#2","operation":"move"}]},{"expected_revision":1,"operations":[{"id":"word/document.xml#1","kind":"page_break","offset":12,"operation":"remove_break"}]}]},"TextFormatting":{"properties":{"bold":{"type":"boolean","title":"Bold","default":false},"underline":{"type":"boolean","title":"Underline","default":false},"italic":{"type":"boolean","title":"Italic","default":false}},"additionalProperties":false,"type":"object","title":"TextFormatting"},"TimestampedTranscript":{"properties":{"text":{"type":"string","title":"Text"},"words":{"items":{"$ref":"#/components/schemas/TranscriptWord"},"type":"array","title":"Words","description":"Word timestamps in seconds from the beginning of the audio."}},"additionalProperties":false,"type":"object","required":["text","words"],"title":"TimestampedTranscript"},"TranscriptWord":{"properties":{"word":{"type":"string","title":"Word"},"start":{"type":"number","minimum":0.0,"title":"Start","description":"Word start time in seconds from the beginning of the audio."},"end":{"type":"number","exclusiveMinimum":0.0,"title":"End","description":"Word end time in seconds from the beginning of the audio."}},"additionalProperties":false,"type":"object","required":["word","start","end"],"title":"TranscriptWord"},"UsageSummary":{"properties":{"period_start":{"type":"string","format":"date-time","title":"Period Start"},"period_end":{"type":"string","format":"date-time","title":"Period End"},"timezone":{"type":"string","title":"Timezone"},"report_requests":{"type":"integer","minimum":0.0,"title":"Report Requests"},"completed_reports":{"type":"integer","minimum":0.0,"title":"Completed Reports"},"failed_or_blocked":{"type":"integer","minimum":0.0,"title":"Failed Or Blocked"}},"additionalProperties":false,"type":"object","required":["period_start","period_end","timezone","report_requests","completed_reports","failed_or_blocked"],"title":"UsageSummary"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}