> ## 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 um paciente por ID

> Busca um paciente pelo seu identificador público.



## OpenAPI

````yaml /pt-BR/scribe-api/openapi.json get /v1/patients/{patient_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/patients/{patient_id}:
    get:
      tags:
        - Patients
      summary: Buscar um paciente por ID
      description: Busca um paciente pelo seu identificador público.
      operationId: api_patient_get_v1_patients__patient_id__get
      parameters:
        - name: patient_id
          in: path
          required: true
          schema:
            type: string
            title: Patient Id
      responses:
        '200':
          description: Resposta bem-sucedida
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PatientResponse'
              example:
                createdAt: '2026-07-01T12:00:00.000Z'
                id: sp_a1b2c3d4e5f6g7h8
                idCountry: COLOMBIA
                idType: CC
                idValue: '1024567890'
                name: John Doe
        '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.
              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.
              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: 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:
    PatientResponse:
      properties:
        id:
          type: string
          title: Id
          description: Stable public identifier.
          examples:
            - sp_a1b2c3d4e5f6g7h8
        name:
          type: string
          title: Name
          examples:
            - John Doe
        idCountry:
          anyOf:
            - type: string
            - type: 'null'
          title: Idcountry
          examples:
            - COLOMBIA
        idType:
          anyOf:
            - type: string
            - type: 'null'
          title: Idtype
          examples:
            - CC
        idValue:
          anyOf:
            - type: string
            - type: 'null'
          title: Idvalue
          examples:
            - '1024567890'
        createdAt:
          type: string
          title: Createdat
          description: ISO-8601 timestamp when the patient was created.
      type: object
      required:
        - id
        - name
        - createdAt
      title: PatientResponse
      description: A single patient. `id` is the stable public id (sp_...).
      examples:
        - createdAt: '2026-07-01T12:00:00.000Z'
          id: sp_a1b2c3d4e5f6g7h8
          idCountry: COLOMBIA
          idType: CC
          idValue: '1024567890'
          name: John Doe
    ErrorResponse:
      description: Envelope padronizado de resposta de erro.
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
      required:
        - error
      title: ErrorResponse
      type: object
    ErrorDetail:
      description: >-
        Detalhe do erro com códigos legíveis por máquina e mensagem legível 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
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Chave de API enviada como token Bearer

````