> ## Documentation Index
> Fetch the complete documentation index at: https://developers.vibrant-wellness.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List patients

> Returns the patients on your account, whether or not they have ever ordered. Scope comes entirely from your token. Pass `patientId` to fetch specific patients instead — one id or a comma-separated list.

Patients have the same shape here as everywhere else in the API, so a record you read can be sent straight back to `PUT /patients` with the parts you changed. A field with no value is `null` — never an empty string or a missing key — and `address` itself is `null` when the patient has none.

Returns the patients on your account — everyone, whether or not they have ever ordered. Scope comes
entirely from your token, so you only ever see your own. Page with `page` and `perPage`, and order
with `sortBy` / `sortOrder` (see [Pagination](https://developers.vibrant-wellness.com/platform/pagination.md)).

## Fetching specific patients

Pass `patientId` to fetch patients you already know, one or **up to 100 at a time**:

```bash theme={null}
GET /patients?patientId=750123
GET /patients?patientId=750123,750124,750125
```

Don't issue one request per patient — a comma-separated list resolves a batch in one call.

The response keeps the same envelope, plus a `notFound` array listing the ids that matched nothing:

```json theme={null}
{
  "patients": [ { "patientId": 750123, "…": "…" } ],
  "count": 1,
  "notFound": [750125]
}
```

An unknown id is **not** an error — the request still returns `200`. The order of `patients` isn't
guaranteed to match the order you asked for, so match on `patientId`.

## The shape is the same everywhere

A patient here has exactly the fields that [Create](https://developers.vibrant-wellness.com/api-reference/patients/create.md) and
[Update](https://developers.vibrant-wellness.com/api-reference/patients/update.md) take, so you can read a record, change one value, and send
it straight back. A field with no value comes back as `null` — never an empty string or a missing
key — and `address` itself is `null` when the patient has none.


## OpenAPI

````yaml GET /patients
openapi: 3.1.0
info:
  title: Vibrant Wellness Portal API
  version: 2026-07-01-draft
  description: >-
    Order lab tests and retrieve results programmatically. Authenticate once
    with OAuth2 client credentials, browse the catalog, quote and
    eligibility-check an order, create patients, place orders, and pull results
    with their report status and issues.


    This reference documents the target external contract (v1).
  contact:
    name: Vibrant Wellness Developer Support
    email: portal-api@vibrant-wellness.com
    url: https://developers.vibrant-wellness.com
  license:
    name: Proprietary
servers:
  - url: https://api.vibrant-america.com/v1
    description: Production
  - url: https://api-sandbox.vibrant-america.com/v1
    description: Staging (sandbox)
security:
  - oauth2: []
tags:
  - name: Catalog
    description: Browse orderable tests and panels.
  - name: Pricing
    description: Get an authoritative price and eligibility check before ordering.
  - name: Patients
    description: Create patients.
  - name: Orders
    description: Place lab orders.
  - name: Reports
    description: Retrieve results, report status, and issues.
paths:
  /patients:
    get:
      tags:
        - Patients
      summary: List patients
      description: >-
        Returns the patients on your account, whether or not they have ever
        ordered. Scope comes entirely from your token. Pass `patientId` to fetch
        specific patients instead — one id or a comma-separated list.


        Patients have the same shape here as everywhere else in the API, so a
        record you read can be sent straight back to `PUT /patients` with the
        parts you changed. A field with no value is `null` — never an empty
        string or a missing key — and `address` itself is `null` when the
        patient has none.
      operationId: listPatients
      parameters:
        - name: patientId
          in: query
          required: false
          schema:
            type: string
          description: >-
            Fetch specific patients. One id, or up to 100 comma-separated
            (`?patientId=123,456,789`) — one request per patient is unnecessary.
            Ids that match nothing come back in `notFound` rather than as an
            error.
        - name: page
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            default: 1
          description: 1-based page number.
        - name: perPage
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
          description: Page size (1–100; values above 100 are clamped to 100).
        - name: sortBy
          in: query
          required: false
          schema:
            type: string
            enum:
              - createdAt
              - patientName
              - patientId
            default: createdAt
          description: Sort field.
        - name: sortOrder
          in: query
          required: false
          schema:
            type: string
            enum:
              - asc
              - desc
            default: desc
          description: Sort direction.
      responses:
        '200':
          description: One page of patients, with the total count.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PatientList'
              example:
                patients:
                  - patientId: 750123
                    patientFirstName: Jane
                    patientMiddleName: null
                    patientLastName: Doe
                    patientGender: Female
                    patientDateOfBirth: '1990-05-21'
                    patientEmail: jane.doe@example.com
                    patientPhoneNumber: '4085550100'
                    guardianEmail: null
                    patientHeight: '65'
                    patientWeight: '150'
                    address:
                      street: 1 Main St
                      apt: ''
                      city: San Jose
                      state: CA
                      zipCode: '95112'
                      country: US
                count: 342
                page: 1
                perPage: 20
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  schemas:
    PatientList:
      type: object
      properties:
        patients:
          type: array
          items:
            $ref: '#/components/schemas/PatientSummary'
        count:
          type: integer
          description: Total patients matching the request, across all pages.
          example: 342
        page:
          type: integer
          description: Echoed back. Absent when fetching by `patientId`.
          example: 1
        perPage:
          type: integer
          description: Echoed back. Absent when fetching by `patientId`.
          example: 20
        notFound:
          type: array
          items:
            type: integer
          description: >-
            Ids from `patientId` that matched no patient. Present only when
            fetching by id; an unknown id is not an error.
          example: []
    PatientSummary:
      type: object
      properties:
        patientId:
          type: integer
          example: 750123
        patientFirstName:
          type: string
          example: Jane
        patientMiddleName:
          type: string
          nullable: true
        patientLastName:
          type: string
          example: Doe
        patientGender:
          type: string
          enum:
            - Female
            - Male
          description: Sex assigned at birth.
        patientDateOfBirth:
          type: string
          format: date
          example: '1990-05-21'
        patientEmail:
          type: string
          example: jane.doe@example.com
        patientPhoneNumber:
          type: string
          example: '4085550100'
        guardianEmail:
          type: string
          nullable: true
        patientHeight:
          type: string
          example: '65'
        patientWeight:
          type: string
          example: '150'
        address:
          $ref: '#/components/schemas/Address'
    Error:
      type: object
      description: >-
        🚧 Working in progress — this envelope is the contract; not yet returned
        by every endpoint.
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Stable machine-readable error code.
            message:
              type: string
              description: Human-readable explanation.
            requestId:
              type: string
              description: >-
                Identifier for this request. Include it when contacting support.
                Also returned on every response as the X-Request-Id header.
              example: req_01JQ8ZC5X9K2MN
            details:
              type: array
              items:
                type: object
                additionalProperties: true
              description: Optional structured context.
          required:
            - code
            - message
            - requestId
    Address:
      type: object
      required:
        - street
        - city
        - state
        - zipCode
        - country
      properties:
        street:
          type: string
          example: 1 Main St
        apt:
          type: string
          description: Apartment, suite or unit.
          example: 5B
        city:
          type: string
          example: San Jose
        state:
          type: string
          example: CA
        zipCode:
          type: string
          example: '95112'
        country:
          type: string
          example: US
  responses:
    BadRequest:
      description: The request was invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: invalid_request
              message: One or more testCodes were not recognized.
              requestId: req_01JQ8ZC5X9K2MN
              details:
                - unknownCodes:
                    - FOO_BAR
    Unauthorized:
      description: Not authenticated. See Authentication.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: unauthorized
              message: Not authenticated.
              requestId: req_01JQ8ZC5X9K2MN
    InternalError:
      description: >-
        Something went wrong on our side. Safe to retry (idempotent endpoints:
        reuse the same placerId).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: internal_error
              message: Unexpected error.
              requestId: req_01JQ8ZC5X9K2MN
  securitySchemes:
    oauth2:
      type: oauth2
      description: >-
        OAuth2 client credentials. Generate a client ID and client secret in the
        Portal, exchange them for an access token, then send `Authorization:
        Bearer <access_token>`. Request the `result` and `report` scopes to read
        results.
      flows:
        clientCredentials:
          tokenUrl: https://api.vibrant-america.com/v1/oauth2/token
          scopes:
            result: Read finalized lab results
            report: Read report status and issues

````

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