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

# Get patient by ID



## OpenAPI

````yaml /openapi/ext-api-v1.json get /patients/{patientId}
openapi: 3.0.0
info:
  title: Healos External API
  version: 1.0.0
  description: >-
    External API for managing patients, documents, and appointments, listing
    providers, and for pulling clinical notes (with transcript and patient
    context).
servers:
  - url: https://api.healos.ai/ext-api/v1
    description: Production
  - url: http://localhost:8787/ext-api/v1
    description: Local development
security:
  - ApiKeyAuth: []
paths:
  /patients/{patientId}:
    get:
      tags:
        - Patients
      summary: Get patient by ID
      parameters:
        - schema:
            type: string
            description: Patient ID
            example: '481926357104938271'
          required: true
          name: patientId
          in: path
      responses:
        '200':
          description: Patient details
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/PatientDetail'
                required:
                  - data
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Insufficient scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Patient not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RateLimitError'
components:
  schemas:
    PatientDetail:
      type: object
      properties:
        id:
          type: string
          description: Unique patient identifier
          example: '481926357104938271'
        name:
          type: string
          description: Patient name
          example: Maria Santos
        first_name:
          type: string
          nullable: true
          description: Patient first name
          example: Maria
        last_name:
          type: string
          nullable: true
          description: Patient last name
          example: Santos
        date_of_birth:
          type: string
          nullable: true
          description: Date of birth (YYYY-MM-DD)
          example: '1990-03-15'
        gender:
          type: string
          nullable: true
          description: Patient gender
          example: female
        phone:
          type: string
          nullable: true
          description: Patient phone number
          example: '+14155550123'
        email:
          type: string
          nullable: true
          description: Patient email
          example: maria@example.com
        address:
          nullable: true
          description: Structured address JSON, if recorded
        mrn:
          type: string
          nullable: true
          description: Medical record number
          example: MRN-12345
        created_at:
          type: string
          description: Creation timestamp (ISO 8601)
          example: '2026-03-15T09:30:00.000Z'
        pronouns:
          type: string
          nullable: true
          description: Pronouns
          example: she/her
        notes:
          type: string
          nullable: true
          description: Clinical notes or context about this patient
          example: >-
            History of generalized anxiety disorder. Currently on sertraline
            50mg.
        consent:
          type: boolean
          description: Whether the patient has consented to treatment documentation
          example: true
        external_id:
          type: string
          nullable: true
          description: Caller-supplied external identifier (immutable once set)
          example: PARTNER-12345
        provider_id:
          type: string
          nullable: true
          description: >-
            Internal id of the provider this patient is assigned to (see GET
            /providers).
          example: aaaaaaa1-0000-0000-0000-000000000001
      required:
        - id
        - name
        - first_name
        - last_name
        - date_of_birth
        - gender
        - phone
        - email
        - mrn
        - created_at
        - pronouns
        - notes
        - consent
        - external_id
        - provider_id
    Error:
      type: object
      properties:
        error:
          type: string
      required:
        - error
    RateLimitError:
      type: object
      properties:
        error:
          type: string
          example: Rate limit exceeded. Please retry after the window resets.
      required:
        - error
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key obtained from /api/v1/ext-api-keys

````