Generate a Technique section

Markdown
POST /v1/techniques

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.

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

Prepare the metadata

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

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

Understand the response

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

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

Recover an identical request

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

Requests, retries, and downloads

Authentication

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

Authorization: Bearer <API_KEY>

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

Parameters

NameTypeRequiredConstraintsDescription
Idempotency-Keyheader: stringYes——

Request

application/json
NameTypeRequiredConstraintsDescription
sourceMetadataSourceYes—The submitted DICOM metadata and whether it covers the complete acquisition.

Request 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"
  }
}

Example

BASE_URL=https://radiologydictation.com

curl --request POST "$BASE_URL/v1/techniques" \
  --header "Authorization: Bearer $API_KEY" \
  --header "Idempotency-Key: $REQUEST_ID" \
  --header "Content-Type: application/json" \
  --data '{"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"}}'

Responses

StatusDescriptionType
200Successful ResponseTechniqueResponse · application/json
400Idempotency-Key header required—
401Invalid or missing API key—
409This request needs support before it can be retried. Contact support with the request ID.—
413Metadata exceeds the configured limits.—
415JSON request required.—
422Invalid DICOM metadata.—
429Too many attempts. Please try again later.—
502Technique generation failed.—
503Technique generation is unavailable.—

Response headers · 200

HeaderTypeDescription
X-Request-Idstring—

Response headers · 409

HeaderTypeDescription
Retry-Afterstring—

Response headers · 429

HeaderTypeDescription
Retry-Afterstring—

Response headers · 502

HeaderTypeDescription
X-Request-IdstringServer request identifier for support.
X-Request-StatusstringRequest outcome status.

Schemas

AcquisitionFact

NameTypeRequiredConstraintsDescription
idstringYes——
seriesstringYes——
attributestringYes——
valuesarray<string | number | integer>Yes——
sourcesarray<string>Yes——

MetadataSource

NameTypeRequiredConstraintsDescription
typestringYes—Use metadata to send DICOM JSON directly. This field does not select a PACS connection or file upload.
dicom_metadataarray<object>YesminItems=1; maxItems=512Array of DICOM JSON datasets containing acquisition metadata. Use tag numbers, vr, and Value arrays. Exclude patient identifiers and image data.
metadata_completebooleanNodefault=falseSet true only when these datasets cover all acquisitions in the study. Leave false for partial or uncertain coverage.

TechniqueRequest

NameTypeRequiredConstraintsDescription
sourceMetadataSourceYes—The submitted DICOM metadata and whether it covers the complete acquisition.

TechniqueResponse

NameTypeRequiredConstraintsDescription
schema_versionstringNodefault="1.0"—
techniquestringYes—Technique text assembled from the submitted acquisition facts. Review the flags before using it.
sentencesarray<TechniqueSentence>Yes—Individual sentences with references to the facts that support each sentence.
acquisition_factsarray<AcquisitionFact>Yes—Recognized metadata attributes and their source references, addressed by fact IDs.
review_flagsarray<string>Yes—Issues requiring confirmation, including incomplete metadata or contrast details.

TechniqueSentence

NameTypeRequiredConstraintsDescription
textstringYesminLength=1; maxLength=1000—
fact_idsarray<string>YesminItems=1; maxItems=64—

Select and copy