> ## 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.

# Vibrant Wellness Portal API

> Order lab tests and retrieve results programmatically.

The Portal API lets your application browse the Vibrant Wellness test catalog, price and
eligibility-check an order, create patients, place lab orders, and pull finalized results — the same
capabilities a clinician has in the Portal, available programmatically.

## What you can do

The API has **six endpoints**:

> [card] [Catalog](https://developers.vibrant-wellness.com/api-reference/catalog/list-products.md)
>
> List orderable tests and panels, each keyed by a stable product `code`.

> [card] [Quote](https://developers.vibrant-wellness.com/api-reference/pricing/quote.md)
>
> Get the authoritative price and check the patient's eligibility before ordering.

> [card] [Patient](https://developers.vibrant-wellness.com/api-reference/patients/create.md)
>
> Create, list, and update the patients your orders are for.

> [card] [Provider](https://developers.vibrant-wellness.com/api-reference/providers/create.md)
>
> Register providers under your clinic so they order under their own NPI. *(Planned)*

> [card] [Order](https://developers.vibrant-wellness.com/api-reference/orders/place.md)
>
> Submit an order using the codes you quoted — and cancel it before lab receipt.

> [card] [Report](https://developers.vibrant-wellness.com/api-reference/reports/get.md)
>
> Retrieve the result, with its status and issues.

## The core flow

Every integration follows the same path. Products are identified by a stable `code` from the catalog,
which you carry all the way through to the order. The order returns an `accessionId`, which you use
to fetch the report.

```mermaid theme={null}
flowchart LR
  A[List catalog] --> B[Quote + eligibility]
  B --> C[Create patient]
  C --> D[Place order]
  D --> E[Get report]
  A -. product code .-> D
  D -. accessionId .-> E
```

**1. List the catalog**

`GET /catalog/products` — find the `code`s you want to order.

**2. Quote**

`POST /quote` — send the `code`s + `patientId`; get the real price and an eligibility result.

**3. Create the patient**

`POST /patients` — if the patient doesn't exist yet.

**4. Place the order**

`POST /orders` — order the same `code`s; receive an `orderId` and `accessionId`.

**5. Get the report**

`GET /report/fhir/{id}` — returns the result as soon as a report is ready; track the report `status`.

## Scope & limits (v1)

> [!NOTE]
>
> * **Currency:** `usd` only.
> * **Pricing:** the quote guarantees the best-deal bundle price; shipping, tax, and markup are not yet
>   included in the total (roadmap).
> * **Results:** a FHIR R4 `DiagnosticReport` with the PDF as a link, carrying the report status and
>   issues. Read the `status` for readiness; [webhooks](https://developers.vibrant-wellness.com/concepts/webhooks.md), enabled per account,
>   notify you when an order or its reports change.

## Next steps

> [card] [Authentication](https://developers.vibrant-wellness.com/authentication.md)
>
> Authenticate with OAuth2 client credentials.

> [card] [Quickstart](https://developers.vibrant-wellness.com/quickstart.md)
>
> Place your first order end to end.

> [card] [API reference](https://developers.vibrant-wellness.com/api-reference/introduction.md)
>
> Every endpoint, field, and example.


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