openapi: 3.1.0 info: title: Heidi Health Ask Heidi Templates API version: v2 summary: Public Heidi REST API for ambient AI medical scribe, transcription, consult notes, documents, clinical coding, and Ask Heidi. description: 'The Heidi API lets partner platforms (EHRs, telehealth apps, custom clinician tools) drive Heidi''s ambient documentation engine end-to-end: authentication via tenant API key + per-user JWT, patient profile management, session lifecycle (create, update, list, retrieve), contextual attachments and linked sessions, audio upload (single file or chunked live), transcript retrieval (final or live-chunked), template discovery, streamed consult-note and document generation against Heidi or custom templates, multi-standard clinical coding (ICD-10/SNOMED/CPT and others), and streamed Ask Heidi assistant responses. Documentation: https://www.heidihealth.com/developers/heidi-api/overview ' contact: name: Heidi Health Support url: https://support.heidihealth.com license: name: Heidi Health Terms of Service url: https://www.heidihealth.com/legal/terms-of-service servers: - url: https://registrar.api.heidihealth.com/api/v2/ml-scribe/open-api description: Production security: - bearerAuth: [] tags: - name: Templates description: Consult-note templates. paths: /templates/document-templates: get: tags: - Templates summary: List Consult Note Templates operationId: listTemplates responses: '200': description: Templates returned. content: application/json: schema: type: object properties: data: type: array items: $ref: '#/components/schemas/Template' components: schemas: Template: type: object properties: id: type: string name: type: string structure_template: type: object template_category: type: string enum: - CONSULT_NOTE_TEMPLATE - DOCUMENT_TEMPLATE template_html: type: string author_name: type: string securitySchemes: heidiApiKey: type: apiKey in: header name: Heidi-Api-Key bearerAuth: type: http scheme: bearer bearerFormat: JWT