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

# List patients

> Patients the key's clinician can see, newest first. Filter by search text, MRN or your external id. Scope `patients:read`.



## OpenAPI

````yaml /api-reference/openapi.json get /patients
openapi: 3.1.0
info:
  title: RxNote API
  version: 1.0.0
  description: >-
    The RxNote app's patient → visit → note flow for your own software: create a
    patient, create a visit with a recording or a transcript, and get back the
    transcript and a structured clinical note.
servers:
  - url: https://rxnote.ai/api/v1
    description: Production
  - url: https://dev.rxnote.ai/api/v1
    description: Sandbox (test keys)
  - url: http://localhost:3000/api/v1
    description: Local development
security: []
paths:
  /patients:
    get:
      tags:
        - Patients
      summary: List patients
      description: >-
        Patients the key's clinician can see, newest first. Filter by search
        text, MRN or your external id. Scope `patients:read`.
      operationId: listPatients
      parameters:
        - schema:
            type: string
            maxLength: 200
            description: Matches name, phone, email and MRN.
          required: false
          name: search
          in: query
        - schema:
            type: string
            maxLength: 100
          required: false
          name: medical_record_number
          in: query
        - schema:
            type: string
            maxLength: 255
          required: false
          name: external_id
          in: query
        - schema:
            type: integer
            minimum: 1
            default: 1
          required: false
          name: page
          in: query
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 50
          required: false
          name: limit
          in: query
      responses:
        '200':
          description: A page of patients.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PatientList'
        '401':
          description: Missing, invalid, revoked or expired API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: The key lacks the scope, or the API is not enabled for the account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate or concurrency limit reached; see `Retry-After`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - apiKey: []
components:
  schemas:
    PatientList:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Patient'
        pagination:
          $ref: '#/components/schemas/Pagination'
      required:
        - data
        - pagination
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: VALIDATION_FAILED
            message:
              type: string
            request_id:
              type: string
              example: req_Q2w9Lx7Hc4Vb8Np1Zs3Kt6
          required:
            - code
            - message
            - request_id
      required:
        - error
    Patient:
      type: object
      properties:
        id:
          type: integer
          example: 4821
        name:
          type: string
        age:
          type:
            - integer
            - 'null'
        sex:
          type:
            - string
            - 'null'
        date_of_birth:
          type:
            - string
            - 'null'
        phone:
          type:
            - string
            - 'null'
        email:
          type:
            - string
            - 'null'
        medical_record_number:
          type:
            - string
            - 'null'
        external_id:
          type:
            - string
            - 'null'
        created_at:
          type: string
          format: date-time
      required:
        - id
        - name
        - age
        - sex
        - date_of_birth
        - phone
        - email
        - medical_record_number
        - external_id
        - created_at
    Pagination:
      type: object
      properties:
        page:
          type: integer
        limit:
          type: integer
        total:
          type: integer
        has_more:
          type: boolean
      required:
        - page
        - limit
        - total
        - has_more
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >-
        Your API key, created in RxNote under Settings → API: `Authorization:
        Bearer rxn_live_…`.

````

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