---
title: "Create a Smart Template"
method: POST
path: "/v1/medical-record-configurations"
tags: ["Medical Record Configurations"]
---

# Create a Smart Template

`POST /v1/medical-record-configurations`

## Request

- Base URL: `https://scribe-api.telepatia.ai`
- URL: `https://scribe-api.telepatia.ai/v1/medical-record-configurations`
- Auth: HTTP bearer

Register a Smart Template (medical record configuration). Idempotent on content hash: identical configurations for the same account return the existing id with `created: false`.

## Request body

- CreateMedicalRecordConfigurationRequest: Request body for registering a medical record configuration — a map of section key to section definition.
  - `name` string, nullable: Human-readable display name. Defaults to the public id when omitted.
  - `description` string, nullable: Optional human-readable description of the template.
  - `specialty` 'acupuncture' | 'alternativeMedicine' | 'ayurvedicMedicine' | 'chiropractic' | 'herbalMedicine' | 'homeopathy' | 'naturopathy' | 'traditionalChineseMedicine' | 'cosmeticDentistry' | 'dentistry' | 'developmentalBehavioralPediatrics' | 'endodontics' | 'forensicDentistry' | 'maxillofacialProsthodontics' | 'oralMaxillofacialSurgery' | 'oralMedicine' | 'oralPathology' | 'oralSurgery' | 'orthodontics' | 'pediatricDentistry' | 'periodontics' | 'prosthodontics' | 'addictionPsychiatry' | 'adolescentMedicine' | 'aerospaceMedicine' | 'allergyImmunology' | 'andrology' | 'anesthesiology' | 'anesthesiologyCriticalCare' | 'bariatricSurgery' | 'breastRadiology' | 'breastSurgery' | 'cardiacSurgery' | 'cardiovascularSurgery' | 'cardiology' | 'cardiovascularDisease' | 'cardiovascularRiskProgram' | 'childAbusePediatrics' | 'childAdolescentPsychiatry' | 'childNeurology' | 'childWelfareSocialWork' | 'clinicalNeurophysiology' | 'clinicalSocialWork' | 'colorectalSurgery' | 'communityMedicine' | 'communitySocialWork' | 'consultationLiaisonPsychiatry' | 'cosmeticDermatology' | 'craniofacialTrauma' | 'dermatology' | 'dermoscopy' | 'diabetes' | 'diagnosticRadiology' | 'electrophysiology' | 'emergencyCriticalCare' | 'emergencyMedicine' | 'emergencyPsychiatry' | 'endocrineSurgery' | 'endocrinology' | 'epilepsy' | 'facialPlasticSurgery' | 'familyMedicine' | 'familySocialWork' | 'footAnkleSurgery' | 'forensicPsychiatry' | 'forensicSocialWork' | 'gastroenterology' | 'generalMedicine' | 'generalMedicinePsychiatry' | 'generalSurgery' | 'geriatricMedicine' | 'geriatricPsychiatry' | 'geriatricSocialWork' | 'ginecology' | 'gynecologicOncology' | 'gynecologicSurgery' | 'gynecology' | 'handSurgery' | 'headNeckSurgery' | 'headacheMedicine' | 'heartFailureTransplantCardiology' | 'hematology' | 'hepatobiliarySurgery' | 'hipKneeSurgery' | 'hospitalist' | 'infectiousDisease' | 'internalCriticalCare' | 'internalMedicine' | 'interventionalCardiology' | 'interventionalRadiology' | 'maternalFetalMedicine' | 'medicalSocialWork' | 'militarySocialWork' | 'minimallyInvasiveGynecologicSurgery' | 'mohsSurgery' | 'musculoskeletalRadiology' | 'neonatology' | 'nephrology' | 'neurocriticalCare' | 'neuroimmunology' | 'neurology' | 'neuromuscularMedicine' | 'neuroradiology' | 'neurorehabilitation' | 'neurosurgery' | 'neurotology' | 'nuclearMedicine' | 'obstetrics' | 'obstetricsGynecology' | 'occupationalMedicine' | 'occupationalSocialWork' | 'oculoplasticSurgery' | 'oncology' | 'oncologySocialWork' | 'ophthalmology' | 'orthopedicHandSurgery' | 'orthopedicSportsMedicine' | 'orthopedicTrauma' | 'orthopedics' | 'otolaryngology' | 'painMedicine' | 'palliativeMedicine' | 'palliativeSocialWork' | 'pediatricAllergyImmunology' | 'pediatricAnesthesiology' | 'pediatricCardiology' | 'pediatricCriticalCare' | 'pediatricDermatology' | 'pediatricEmergencyMedicine' | 'pediatricEndocrinology' | 'pediatricENT' | 'pediatricGastroenterology' | 'pediatricHematologyOncology' | 'pediatricInfectiousDisease' | 'pediatricNephrology' | 'pediatricNeurology' | 'pediatricCardiacSurgery' | 'pediatricOncology' | 'pediatricOphthalmology' | 'pediatricOrthopedics' | 'pediatricPalliativeCare' | 'pediatricPulmonology' | 'pediatricRadiology' | 'pediatricRheumatology' | 'pediatricSocialWork' | 'pediatricSurgery' | 'pediatricTrauma' | 'pediatricUrology' | 'pediatrics' | 'perinatalPsychiatry' | 'physicalMedicineRehab' | 'plasticSurgery' | 'prenatalCareProgram' | 'preventiveMedicine' | 'psychiatricSocialWork' | 'psychiatry' | 'psychosomaticMedicine' | 'publicHealth' | 'pulmonaryDisease' | 'pulmonology' | 'radiationOncologist' | 'radiationOncology' | 'reproductiveEndocrinology' | 'retinaSurgery' | 'rheumatology' | 'riasProgram' | 'manager' | 'schoolSocialWork' | 'shoulderElbowSurgery' | 'sleepMedicine' | 'socialWork' | 'spinalCordInjury' | 'spinalTrauma' | 'spineSurgery' | 'sportsMedicine' | 'substanceAbuseSocialWork' | 'surgicalOncology' | 'telemedicine' | 'thoracicSurgery' | 'transplantHepatology' | 'transplantSurgery' | 'traumaSurgery' | 'traumatology' | 'triage' | 'unknown' | 'urgentCare' | 'urologicOncology' | 'urology' | 'vascularSurgery' | 'nursing' | 'clinicalNutrition' | 'eatingDisorderNutrition' | 'gastroenterologicNutrition' | 'geriatricNutrition' | 'nutrition' | 'oncologyNutrition' | 'pediatricNutrition' | 'renalNutrition' | 'sportsNutrition' | 'clinicalPsychology' | 'counselingPsychology' | 'developmentalPsychology' | 'forensicPsychology' | 'geropsychology' | 'healthPsychology' | 'industrialOrganizationalPsychology' | 'militaryPsychology' | 'neuropsychology' | 'positivePsychology' | 'psychology' | 'rehabilitationPsychology' | 'schoolPsychology' | 'sportsPsychology' | 'occupationalTherapy' | 'physicalTherapy' | 'respiratoryTherapy' | 'speechTherapy' | 'therapy' | 'other'
  - `workflow` 'defaultOutpatient' | 'inpatient' | 'emergencyRoom' | 'reportDictation' | 'historySummary': Product discriminator for a template. Absent means an ordinary Scribe template. `defaultOutpatient`, `inpatient`, and `emergencyRoom` also denote a Scribe template; each names the clinical care setting the template is written for. `reportDictation` and `historySummary` denote a non-Scribe product.
  - `configuration` object, required: Section map keyed by node key (schema + optional prompt strategy). A key is a stable identifier that matches `^[A-Za-z0-9_]+$` (ASCII letters, digits, underscore). Put display text in the section `schema.label`.

## Response `200`

Successful Response

- CreateMedicalRecordConfigurationResponse: Response body for registering a medical record configuration.
  - `id` string, required: Public ID of the medical record configuration.
  - `name` string, required: Resolved display name (defaults to the public id when none was provided).
  - `hash` string, required: SHA-256 hash of the canonical configuration JSON.
  - `createdAt` string, date-time, required
  - `created` boolean, required: True if a new configuration was created; False if a matching one already existed.
  - `example` object: Shape of the final payload this template produces, keyed by section name. Leaf values are typed placeholders (`<string>`, `<number>`, `<a | b>` for enums, `<YYYY-MM-DD>` for dates); object sections nest, free-text sections are a single string.

## Other responses

- `400`: Bad Request — invalid parameters, validation failures, or missing fields.
- `401`: Unauthorized — missing or invalid API key.
- `409`: Conflict — resource already exists or is in a conflicting state.
- `503`: Service Unavailable — an external dependency is down.

---

[API](https://skmtc.dev/telepatia/apis/scribe-public-api.md) - [All operations](https://skmtc.dev/telepatia/apis/scribe-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/telepatia/apis/scribe-public-api/revisions/be963942e472?raw)
