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

# List patients for the authenticated tenant



## OpenAPI

````yaml /openapi/marmar-cds.openapi.yaml get /v1/patients
openapi: 3.1.0
info:
  title: Marmar Clinical Decision Support Reference
  version: 0.1.0
  description: >
    API for integrating Marmar's medication safety assessments into clinical
    workflows. Tenants can synchronize patient records, request assessments, and
    receive webhook notifications when assessments are completed.
servers:
  - url: https://cds.marmar.life
    description: Production
  - url: http://localhost:3000
    description: Local development
security: []
tags:
  - name: Patients
  - name: Assessments
  - name: Tenants
  - name: Webhooks
  - name: FHIR
paths:
  /v1/patients:
    get:
      tags:
        - Patients
      summary: List patients for the authenticated tenant
      operationId: listPatients
      responses:
        '200':
          description: Patient roster for the tenant
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PatientListResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    PatientListResponse:
      type: object
      properties:
        patients:
          type: array
          items:
            $ref: '#/components/schemas/PatientSummary'
      required:
        - patients
    ErrorResponse:
      type: object
      properties:
        message:
          type: string
      required:
        - message
    PatientSummary:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/Identifier'
        externalId:
          type: string
          nullable: true
        demographics:
          $ref: '#/components/schemas/PatientDemographics'
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - id
        - demographics
        - createdAt
        - updatedAt
    Identifier:
      type: string
      format: uuid
    PatientDemographics:
      type: object
      properties:
        firstName:
          type: string
          nullable: true
          example: null
        lastName:
          type: string
          nullable: true
          example: null
        phone:
          type: string
          nullable: true
          example: null
        dateOfBirth:
          type: string
          format: date
          nullable: true
          example: null
        sex:
          $ref: '#/components/schemas/Sex'
        genderIdentity:
          type: string
          nullable: true
          example: null
        weightKg:
          type: number
          format: float
          nullable: true
          example: null
        heightCm:
          type: number
          format: float
          nullable: true
          example: null
        ethnicity:
          type: string
          nullable: true
          example: null
    Sex:
      type: string
      enum:
        - MALE
        - FEMALE
        - OTHER
      nullable: true
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key obtained from the Tenant Dashboard. Use as Authorization: Bearer
        YOUR_API_KEY

````