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

# Introduction

> Create groups, submit census data, generate quotes, and track enrollments with the Partner API.

The Partner API lets platforms create employer groups, submit census records, generate indicative quotes, create enrollments, and read aggregate account status. Integrations send employer and eligibility data; Prescience handles rating, underwriting, onboarding, funding operations, claims administration, and member care outside the API.

<Note>
  **Minimum write flow.** `POST /groups`, `PUT /groups/{id}/census`, `POST /groups/{id}/quotes`, `POST /groups/{id}/enrollments`. Webhooks, account reads, and single-member census sync are additive.
</Note>

## How the integration works

Five steps, end to end:

```mermaid theme={null}
sequenceDiagram
    autonumber
    participant HR as Your platform
    participant PR as Prescience API
    participant EM as Employer admin

    HR->>PR: POST /groups + PUT /census
    PR-->>HR: Quote (synchronous, deterministic)
    Note over HR,PR: Indicative pending underwriting

    HR->>EM: Plan selection UI<br/>(GET /plans + quote pricing)
    EM->>HR: Selects Prescience Diamond

    HR->>PR: POST /enrollments
    PR-->>HR: 201 + enrollment.created webhook
    Note over PR,EM: Prescience onboards the employer:<br/>call, KYB, plan setup, sandbox → prod

    PR-->>HR: group.state_changed (sandbox → prod)
    HR->>PR: GET /account + GET /members
    PR-->>HR: Funding, premium-equivalent totals, spend, savings<br/>(aggregate, de-identified)
```

1. **Quote.** Push an employer group and its census. The quote response includes total cost, PEPM, tier breakdown, and prior-plan comparison fields.
2. **List.** Use `GET /plans` for static plan metadata and the quote response for group-specific pricing.
3. **Enroll.** The employer accepts a quote; you create an enrollment. By default Prescience provisions the employer signatory with portal access and runs onboarding, KYB, banking, and plan setup in the Prescience employer portal. You poll the enrollment or listen to webhooks for state changes. Embedded onboarding is separate from the core flow and is enabled per integration.
4. **Show.** Render account status from `GET /account` and `GET /members`. Account data is aggregate and de-identified.
5. **Sync.** Forward new hires, terminations, and COBRA events you already track. Signed webhooks keep you current the other way.

## Core resources

<CardGroup cols={2}>
  <Card title="Groups" icon="building-2" href="/guides/census">
    Employer-level records, current coverage metadata, and lifecycle state.
  </Card>

  <Card title="Census" icon="users" href="/guides/census">
    Employee and dependent eligibility data used for quote generation and enrollment.
  </Card>

  <Card title="Quotes" icon="calculator" href="/guides/quotes">
    Deterministic quote records with totals, tier breakdowns, assumptions, and expiry.
  </Card>

  <Card title="Enrollments" icon="clipboard-check" href="/guides/enrollment">
    Accepted quotes, onboarding state, employer portal provisioning, and activation tracking.
  </Card>
</CardGroup>

## Start building

<CardGroup cols={2}>
  <Card title="Quickstart" icon="zap" href="/quickstart">
    Run the core flow with copy-pasteable requests.
  </Card>

  <Card title="Authentication" icon="key" href="/authentication">
    Bearer keys, test and live environments, and key safety.
  </Card>

  <Card title="Guides" icon="book-open" href="/guides/census">
    Census, quotes, plan metadata, enrollment, account data, and webhooks.
  </Card>

  <Card title="API Reference" icon="code" href="/api-reference/introduction">
    Every endpoint, schema, and error code.
  </Card>
</CardGroup>

Running payroll on Check? The census API maps directly onto Check's Employee and Company objects; see [Check-powered platforms](/guides/check-powered-platforms) for the field-by-field mapping.

<Info>
  Quotes are indicative pending underwriting confirmation, and a BAA plus data processing agreement is executed before live mode is enabled. Details in [Compliance](/resources/compliance).
</Info>
