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

# Buscar sessão de Scribe

> Busca uma sessão de scribe pelo ID.



## OpenAPI

````yaml /pt-BR/scribe-api/openapi-institutional.json get /v1/scribe-sessions/{id}
openapi: 3.1.0
info:
  title: Scribe Public API
  description: >-
    API REST externa para integração com a plataforma Telepatia. Autentique-se
    com chaves de API, defina o contexto da consulta e busque sessões de scribe.
  version: 0.1.0
servers:
  - url: https://scribe-api.telepatia.ai
    description: Production
security:
  - BearerAuth: []
paths:
  /v1/scribe-sessions/{id}:
    get:
      tags:
        - Session Scribes
      summary: Buscar sessão de Scribe
      description: Busca uma sessão de scribe pelo ID.
      operationId: api_scribe_session_retrieved_v1_scribe_sessions__id__get
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 128
            pattern: ^[A-Za-z0-9_-][A-Za-z0-9._-]{0,127}$
            description: >-
              A sessão a buscar — seu consultationInternalId, ou o id da sessão
              (ss_...) que a API retorna.
            examples:
              - CONSULT-12345
              - ss_sa98vgqyra91q5b8
            title: Id
          description: >-
            A sessão a buscar — seu consultationInternalId, ou o id da sessão
            (ss_...) que a API retorna.
      responses:
        '200':
          description: Resposta bem-sucedida
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionScribeLookupResponse'
              example:
                branch:
                  id: b1f2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d
                  name: Example Hospital North
                completedAt: '2026-02-20T10:30:00Z'
                consultationInternalId: CONSULT-12345
                createdAt: '2026-02-20T10:00:00Z'
                emrEncounterId: ENC-67890
                id: ss_a1b2c3d4e5f6g7h8
                patientName: John Doe
                scribeSessionModality: IN_PERSON
                specialty: Cardiology
                status: completed
        '400':
          description: >-
            Requisição inválida — parâmetros inválidos, falhas de validação ou
            campos ausentes.
          content:
            application/json:
              examples:
                parameter_invalid:
                  summary: Invalid consultation ID format
                  value:
                    error:
                      type: invalid_request_error
                      code: parameter_invalid
                      message: >-
                        id must contain only letters, digits, hyphens,
                        underscores, and dots, and must not start with a dot.
                      param: id
                      requestId: 3f9a1c2e-5b7d-4a21-9f0c-8e6d4b2a1c30
                account_invalid:
                  summary: Account has no auth ID
                  value:
                    error:
                      type: invalid_request_error
                      code: account_invalid
                      message: Account has no valid authId.
                      requestId: 3f9a1c2e-5b7d-4a21-9f0c-8e6d4b2a1c30
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Não autorizado — chave de API ausente ou 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.
                      requestId: 3f9a1c2e-5b7d-4a21-9f0c-8e6d4b2a1c30
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Não encontrado — o recurso solicitado não 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.
                      requestId: 3f9a1c2e-5b7d-4a21-9f0c-8e6d4b2a1c30
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '428':
          description: Precondition Required
          content:
            application/json:
              examples:
                cdss_review_required:
                  summary: Doctor has pending CDSS suggestions awaiting review
                  value:
                    error:
                      type: invalid_request_error
                      code: cdss_review_required
                      message: >-
                        This doctor has 1 pending CDSS suggestion awaiting
                        review from the last 7 days. The API is blocked by your
                        institution until the suggestions are reviewed. Open the
                        consultation(s) to accept or reject them:
                        https://scribe.telepatia.ai/consultations/session-abc-123.
                      details:
                        pendingConsultations:
                          - sessionId: session-abc-123
                            url: >-
                              https://scribe.telepatia.ai/consultations/session-abc-123
                      requestId: 3f9a1c2e-5b7d-4a21-9f0c-8e6d4b2a1c30
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Serviço indisponível — uma dependência externa está indisponível.
          content:
            application/json:
              examples:
                service_unavailable:
                  summary: Failed to look up session scribe
                  value:
                    error:
                      type: api_error
                      code: service_unavailable
                      message: >-
                        Failed to look up session scribe. Please try again
                        later.
                      requestId: 3f9a1c2e-5b7d-4a21-9f0c-8e6d4b2a1c30
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    SessionScribeLookupResponse:
      properties:
        id:
          type: string
          maxLength: 255
          title: Id
          examples:
            - ss_a1b2c3d4e5f6g7h8
        status:
          type: string
          maxLength: 255
          title: Status
          examples:
            - completed
        createdAt:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Createdat
          examples:
            - '2026-02-20T10:00:00Z'
        completedAt:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Completedat
          examples:
            - '2026-02-20T10:30:00Z'
        patientName:
          anyOf:
            - type: string
              maxLength: 255
            - type: 'null'
          title: Patientname
          examples:
            - John Doe
        scribeSessionModality:
          anyOf:
            - type: string
            - type: 'null'
          title: Scribesessionmodality
          description: >-
            The modality of the scribe session (e.g. 'IN_PERSON',
            'TELEMEDICINE').
          examples:
            - IN_PERSON
        consultationInternalId:
          anyOf:
            - type: string
            - type: 'null'
          title: Consultationinternalid
          description: The consultation ID provided by the API consumer.
          examples:
            - CONSULT-12345
        specialty:
          anyOf:
            - type: string
            - type: 'null'
          title: Specialty
          description: The medical specialty of the clinician who conducted the session.
          examples:
            - Cardiology
        emrEncounterId:
          anyOf:
            - type: string
            - type: 'null'
          title: Emrencounterid
          description: >-
            O número do atendimento do EMR ao qual a sessão está vinculada (no
            MV, CD_ATENDIMENTO). Null quando a sessão não está vinculada a um
            atendimento importado do EMR.
          examples:
            - ENC-67890
        branch:
          anyOf:
            - $ref: '#/components/schemas/SessionBranch'
            - type: 'null'
          description: >-
            A unidade em que a sessão foi gravada. É a unidade do médico quando
            a sessão foi criada, não é lida do atendimento do EMR. Null quando a
            sessão não tem unidade.
      type: object
      required:
        - id
        - status
      title: SessionScribeLookupResponse
      description: Corpo da resposta da busca de sessão de scribe.
      examples:
        - branch:
            id: b1f2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d
            name: Example Hospital North
          completedAt: '2026-02-20T10:30:00Z'
          consultationInternalId: CONSULT-12345
          createdAt: '2026-02-20T10:00:00Z'
          emrEncounterId: ENC-67890
          id: ss_a1b2c3d4e5f6g7h8
          patientName: John Doe
          scribeSessionModality: IN_PERSON
          specialty: Cardiology
          status: completed
    ErrorResponse:
      description: Envelope padronizado de resposta de erro.
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetailWithRequestId'
      required:
        - error
      title: ErrorResponse
      type: object
    SessionBranch:
      properties:
        id:
          anyOf:
            - type: string
            - type: 'null'
          title: Id
          description: >-
            Id da unidade. Corresponde ao `id` de `GET
            /v1/institutional/branches`. Null em sessões antigas que guardaram
            só o nome da unidade.
          examples:
            - b1f2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
          description: Nome da unidade registrado na sessão quando ela foi criada.
          examples:
            - Example Hospital North
      type: object
      title: SessionBranch
      description: A unidade da instituição em que a sessão foi gravada.
    ErrorDetailWithRequestId:
      description: >-
        Top-level error object: :class:`ErrorDetail` plus the request
        correlation id.


        Kept as a subclass rather than a field on ``ErrorDetail`` because
        ``ErrorDetail`` is

        also the per-item error shape inside the batch account-creation response

        (``BatchAccountResult.error``), which is serialized with nulls included.
        Adding the

        field there would publish ``"requestId": null`` on an HTTP 200, and
        there is only

        ever one request id per batch anyway -- batch callers read the
        ``X-Request-ID``

        response header.
      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
        requestId:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            Unique id for this request, identical to the X-Request-ID response
            header. Quote it when contacting support.
          examples:
            - 3f9a1c2e-5b7d-4a21-9f0c-8e6d4b2a1c30
          title: Requestid
      required:
        - type
        - code
        - message
      title: ErrorDetailWithRequestId
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Chave de API enviada como token Bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.