> ## 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 patient by ID

> Get a patient by its public identifier.



## OpenAPI

````yaml /scribe-api/openapi.json get /v1/patients/{patient_id}
openapi: 3.1.0
info:
  title: Scribe Public API
  description: >-
    External-facing REST API for integrating with the Telepatia platform.
    Authenticate with API keys, set consultation context, and look up scribe
    sessions.
  version: 0.1.0
servers:
  - url: https://scribe-api.telepatia.ai
    description: Production
security:
  - BearerAuth: []
paths:
  /v1/patients/{patient_id}:
    get:
      tags:
        - Patients
      summary: Get a patient by ID
      description: Get a patient by its public identifier.
      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: Successful Response
          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: Unauthorized — missing or invalid API key.
          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: Not Found — the requested resource does not exist.
          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: Service Unavailable — an external dependency is down.
          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: Standardized error response envelope.
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
      required:
        - error
      title: ErrorResponse
      type: object
    ErrorDetail:
      description: Error detail with machine-readable codes and human-readable message.
      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: API key passed as a Bearer token

````