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

# Get consultation

> Returns the details of a specific consultation, including transcription, recording and structured medical report.



## OpenAPI

````yaml docs/en/openapi.yaml get /consultations/{DAAI_CONSULTATION_ID}
openapi: 3.1.0
info:
  title: DAAI - APIS
  version: 1.0.0
servers:
  - url: https://apim.doctorassistant.ai/api/sandbox
security:
  - ApiKeyAuth: []
tags:
  - name: Consultations
  - name: Exams
  - name: Summaries
paths:
  /consultations/{DAAI_CONSULTATION_ID}:
    get:
      tags:
        - Consultations
      summary: Get consultation
      description: >-
        Returns the details of a specific consultation, including transcription,
        recording and structured medical report.
      parameters:
        - name: DAAI_CONSULTATION_ID
          in: path
          schema:
            type: string
          required: true
      responses:
        '200':
          description: Consultation details
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: Consultation ID
                    example: s0q0ud3fi1d9kcwjrt8vs50n
                  transcription:
                    type: string
                    description: Consultation audio transcription
                    example: >-
                      The patient came to me for the first consultation on July
                      23, 2024, with a history, a pre-Greek pathological history
                      and current fibromyalgia.
                  recording:
                    type: object
                    description: Recording information
                    properties:
                      duration:
                        type: integer
                        description: Duration in seconds
                        example: 12
                      url:
                        type: string
                        description: Recording URL
                        example: >-
                          https://storage.googleapis.com/doctor-assistant-consultations-stage/patients/unidentified/consultations/s0q0ud3fi1d9kcwjrt8vs50n/recordings/uh6iy80wogqnnnyvrdpk59k3-optimized.mp3
                    required:
                      - duration
                      - url
                  report:
                    type: object
                    description: Consultation report
                    properties:
                      specialty:
                        type: string
                        description: Consultation specialty
                        example: generic
                      content:
                        type: object
                        description: Report content
                        properties:
                          icd_json:
                            type: object
                            description: ICD information
                            properties:
                              assessment:
                                type: object
                                properties:
                                  content:
                                    type: object
                                    properties:
                                      description:
                                        type: object
                                        properties:
                                          title:
                                            type: string
                                          content:
                                            type: array
                                            items:
                                              type: object
                                              properties:
                                                icd:
                                                  type: array
                                                  items:
                                                    type: string
                                                content:
                                                  type: string
                          summary_json_pt:
                            type: object
                            description: >-
                              Consultation summary in Portuguese. The structure
                              of this object is flexible and follows the
                              specialty template defined in the /specialties
                              endpoint
                          medicalPrescription:
                            type: object
                            description: Medical prescriptions
                            properties:
                              medications:
                                type: object
                                properties:
                                  title:
                                    type: string
                                  content:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        dose:
                                          type: string
                                        name:
                                          type: string
                                        usage:
                                          type: string
                                        possible_medications_anvisa:
                                          type: array
                                          items:
                                            type: object
                      metadata:
                        type: object
                        description: Additional consultation metadata
                required:
                  - id
                  - transcription
                  - recording
                  - report
                  - metadata
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Unauthorized
                  statusCode:
                    type: integer
                    example: 401
                required:
                  - message
                  - statusCode
        '404':
          description: Consultation not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Error message
                    example: Consultation not found
                  error:
                    type: string
                    description: Error type
                    example: Not Found
                  statusCode:
                    type: integer
                    description: HTTP status code
                    example: 404
                required:
                  - message
                  - error
                  - statusCode
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-daai-api-key
      description: API key for authentication

````