> ## Documentation Index
> Fetch the complete documentation index at: https://docs.telepatia.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a Smart Template by ID

> Get a Smart Template by its public identifier.



## OpenAPI

````yaml /es/scribe-api/openapi-institutional.json get /v1/medical-record-configurations/{configuration_id}
openapi: 3.1.0
info:
  title: Scribe Public API
  description: >-
    API REST externa para integración con la plataforma Telepatia. Autentíquese
    con claves API, establezca el contexto de consulta y consulte sesiones de
    scribe.
  version: 0.1.0
servers:
  - url: https://scribe-api.telepatia.ai
    description: Production
security:
  - BearerAuth: []
paths:
  /v1/medical-record-configurations/{configuration_id}:
    get:
      tags:
        - Medical Record Configurations
      summary: Get a Smart Template by ID
      description: Get a Smart Template by its public identifier.
      operationId: >-
        api_medical_record_configuration_get_v1_medical_record_configurations__configuration_id__get
      parameters:
        - name: configuration_id
          in: path
          required: true
          schema:
            type: string
            title: Configuration Id
      responses:
        '200':
          description: Respuesta exitosa
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MrcDetailResponse'
        '401':
          description: No autorizado — clave API faltante o inválida.
          content:
            application/json:
              examples:
                authentication_required:
                  summary: Invalid or missing API key
                  value:
                    error:
                      type: authentication_error
                      code: authentication_required
                      message: Invalid API key.
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: No encontrado — el recurso solicitado no existe.
          content:
            application/json:
              examples:
                resource_not_found:
                  summary: Resource not found
                  value:
                    error:
                      type: invalid_request_error
                      code: resource_not_found
                      message: No session scribe found for the given consultation ID.
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Servicio no disponible — una dependencia externa no está disponible.
          content:
            application/json:
              examples:
                service_unavailable:
                  summary: External service unavailable
                  value:
                    error:
                      type: api_error
                      code: service_unavailable
                      message: >-
                        Unable to generate verification code. Please try again
                        later.
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    MrcDetailResponse:
      properties:
        id:
          type: string
          title: Id
          description: Stable public identifier.
          examples:
            - mrc_a1b2c3d4e5f6g7h8
        name:
          type: string
          title: Name
          description: Display name (defaults to the public id when none was set).
          examples:
            - Cardiology intake
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: Optional human-readable description of the template.
          examples:
            - Intake template for the cardiology outpatient clinic.
        hash:
          type: string
          title: Hash
          description: Content hash used to detect configuration changes.
        createdAt:
          type: string
          title: Createdat
          description: ISO-8601 timestamp when the configuration was created.
        configuration:
          additionalProperties:
            $ref: '#/components/schemas/MrcSectionModel'
          type: object
          title: Configuration
          description: >-
            Section configurations keyed by section name (e.g.,
            'chiefComplaint', 'vitals').
        specialties:
          items:
            type: string
          type: array
          title: Specialties
          description: Medical specialty values this configuration applies to.
          examples:
            - - cardiology
        status:
          $ref: '#/components/schemas/MrcStatus'
          description: >-
            Lifecycle status: `active`, `inactive` (archived/draft), or
            `deleted`.
          examples:
            - active
      type: object
      required:
        - id
        - name
        - hash
        - createdAt
        - configuration
        - status
      title: MrcDetailResponse
      description: Full medical record configuration (detail response).
    ErrorResponse:
      description: Envoltorio estandarizado de respuesta de error.
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
      required:
        - error
      title: ErrorResponse
      type: object
    MrcSectionModel:
      properties:
        systemPrompt:
          anyOf:
            - type: string
            - type: 'null'
          title: Systemprompt
          description: Optional raw system prompt for this section.
        instructionSet:
          anyOf:
            - $ref: '#/components/schemas/InstructionSetModel'
            - type: 'null'
          description: Optional reference to a Telepatia managed prompt.
        schema:
          $ref: '#/components/schemas/OutputSchemaModel'
          description: Output schema for this section.
      type: object
      required:
        - schema
      title: MrcSectionModel
      description: >-
        The typed configuration for a single section within a medical record
        configuration.
    MrcStatus:
      type: string
      enum:
        - active
        - inactive
        - deleted
      title: MrcStatus
      description: Public lifecycle status exposed on list/detail responses.
    ErrorDetail:
      description: >-
        Detalle del error con códigos legibles por máquina y mensaje legible por
        humanos.
      properties:
        type:
          description: Broad error category for high-level handling.
          examples:
            - invalid_request_error
          title: Type
          type: string
        code:
          description: Machine-readable error code. Clients should switch on this value.
          examples:
            - parameter_invalid
          title: Code
          type: string
        message:
          description: Human-readable error message ending with a period.
          examples:
            - >-
              idCountry must be a valid country name, ISO alpha-2, or ISO
              alpha-3 code.
          title: Message
          type: string
        param:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: The request field that caused the error, if applicable.
          examples:
            - idCountry
          title: Param
        details:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          default: null
          description: Optional structured, machine-readable context for the error.
          examples:
            - pendingConsultations:
                - sessionId: abc123
                  url: https://...
          title: Details
      required:
        - type
        - code
        - message
      title: ErrorDetail
      type: object
    InstructionSetModel:
      properties:
        telepatiaPromptId:
          type: string
          title: Telepatiapromptid
          description: Identifier of the Telepatia-managed prompt.
        values:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Values
          description: Optional variable values passed into the prompt.
      type: object
      required:
        - telepatiaPromptId
      title: InstructionSetModel
      description: Reference to a Telepatia managed prompt.
    OutputSchemaModel:
      properties:
        type:
          type: string
          title: Type
          description: Schema type (string, object, array, boolean, integer, number).
        instructions:
          anyOf:
            - type: string
            - type: 'null'
          title: Instructions
          description: Free-form generation instructions.
        properties:
          anyOf:
            - items:
                $ref: '#/components/schemas/OutputSchemaPropertyModel'
              type: array
            - type: 'null'
          title: Properties
          description: Named properties (only present when type=object).
        items:
          anyOf:
            - $ref: '#/components/schemas/OutputSchemaModel'
            - type: 'null'
          description: Schema of array items (only present when type=array).
        enum:
          anyOf:
            - items:
                anyOf:
                  - type: string
                  - $ref: '#/components/schemas/EnumOptionModel'
              type: array
            - type: 'null'
          title: Enum
          description: >-
            Allowed values. Either plain strings, or `{label, value}` objects
            that decouple display (`label`) from the stored code (`value`).
        minimum:
          anyOf:
            - type: number
            - type: 'null'
          title: Minimum
          description: Minimum numeric value.
        maximum:
          anyOf:
            - type: number
            - type: 'null'
          title: Maximum
          description: Maximum numeric value.
        minLength:
          anyOf:
            - type: integer
            - type: 'null'
          title: Minlength
          description: Minimum string length.
        maxLength:
          anyOf:
            - type: integer
            - type: 'null'
          title: Maxlength
          description: Maximum string length.
        format:
          anyOf:
            - type: string
            - type: 'null'
          title: Format
          description: >-
            String format hint: 'date', 'time', or 'date-time' (generation
            returns ISO).
        required:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Required
          description: Whether the field must be generated. Defaults to true when omitted.
        default:
          title: Default
          description: >-
            Value substituted when generation extracts nothing; type must match
            `type`.
      type: object
      required:
        - type
      title: OutputSchemaModel
      description: Recursive output schema definition for a medical record section.
    OutputSchemaPropertyModel:
      properties:
        key:
          type: string
          title: Key
          description: Property key.
        schema:
          $ref: '#/components/schemas/OutputSchemaModel'
          description: Schema describing this property.
      type: object
      required:
        - key
        - schema
      title: OutputSchemaPropertyModel
      description: A named property within an object output schema.
    EnumOptionModel:
      properties:
        label:
          type: string
          title: Label
          description: Human-readable display label.
        value:
          type: string
          title: Value
          description: Stable stored code (e.g. catalog id, ICD-10, SNOMED).
      type: object
      required:
        - label
        - value
      title: EnumOptionModel
      description: 'A decoupled enum option: display ``label`` vs stored ``value`` (code).'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Clave API enviada como token Bearer

````