canonical: https://jentic.com/apis/patientco.com/patientco

# Patientco Waystar API

Jentic publishes the only available OpenAPI specification for Waystar API, keeping it validated and agent-ready. The Waystar API (formerly Patientco) enables healthcare organizations to manage patient payments, statements, and payment plans programmatically. It provides 11 endpoints for creating and retrieving patient records, processing payments, generating billing statements, and configuring installment payment plans. The API uses Bearer token authentication and operates on the patientco.com domain.

## For AI agents

Manage healthcare patient payments, billing statements, and payment plans. Retrieve patient records, process payments, and configure installment schedules for medical billing.

## Scope

Does not handle clinical records, appointment scheduling, or insurance claims - use for patient-facing payment collection and billing only.

## Capabilities

- Create and retrieve patient records with demographic and contact information
- Process individual payments and track payment status by ID
- Generate billing statements tied to specific patient accounts
- Configure installment payment plans with custom terms and schedules
- Retrieve payment history and statement details for patient accounts
- Update existing patient records and payment plan configurations
- Look up individual statements and payments by unique identifier

## Use cases

### Patient Payment Processing

Process payments against outstanding patient balances using the Waystar API. The payments endpoint accepts payment amounts, methods, and patient references, returning confirmation with transaction identifiers. This enables automated payment collection from patient portals, kiosks, or agent-driven billing systems.

Example prompt: Create a payment of $150.00 for patient ID 'pat_12345' via POST /payments and verify the payment status is confirmed

### Billing Statement Management

Generate and retrieve patient billing statements that itemize charges, adjustments, and balances owed. Statements are linked to patient records and can be queried individually or in bulk. This supports automated statement delivery, balance verification, and patient communication workflows.

Example prompt: Retrieve the latest statement for patient 'pat_12345' via GET /statements and extract the total balance due

### Payment Plan Configuration

Set up installment payment plans that allow patients to pay outstanding balances over time. The payment-plans endpoint supports configuring plan terms including installment amounts, frequency, and duration. Plans are linked to patient records and can be retrieved or modified after creation.

Example prompt: Create a 6-month payment plan for patient 'pat_12345' with monthly installments of $50.00 via POST /payment-plans

### AI Agent Healthcare Billing Automation

AI agents integrate with the Waystar API through Jentic to automate patient billing workflows without managing Bearer token lifecycle directly. Agents search for billing operations like 'create a patient payment' and Jentic returns the operation schema with required parameters, handling credential injection at execution time.

Example prompt: Search Jentic for 'process a patient payment', load the operation schema for POST /payments, and execute with patient ID and amount parameters

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| POST | `/patients` | Create a new patient record |
| GET | `/patients/{patientId}` | Retrieve a patient by ID |
| POST | `/payments` | Process a payment |
| GET | `/payments/{paymentId}` | Get payment details |
| POST | `/statements` | Generate a billing statement |
| GET | `/statements/{statementId}` | Retrieve a statement by ID |
| POST | `/payment-plans` | Create a payment plan |
| GET | `/payment-plans/{planId}` | Get payment plan details |

## Key resources

- **Patients** — Create, retrieve, and update patient demographic and billing records
- **Payments** — Process payments and retrieve payment transaction details
- **Statements** — Generate and retrieve itemized billing statements
- **Payment Plans** — Configure and manage installment payment arrangements

## Why Jentic

- **Setup:** Wiring the Waystar API by hand means learning its bearer token auth, setting the api.patientco.com/v1 host, and building payment and statement error handling yourself. Through Jentic you install once, import the Waystar API from the API Directory, store the token once, and your agent calls it.
- **Permission scoping:** Waystar puts the patient id in the URL path (`/patients/{patientId}`), so a rule can pin your agent to reads on a named patient. You choose the operations it may call, so writes like posting payments, creating statements, or opening payment plans are not included unless you add them.
- **Credential handling:** Your Waystar bearer token is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'process a patient payment' or 'retrieve a billing statement', and Jentic returns the matching Waystar operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **drchrono API** — EHR and practice management platform with clinical data access
- **athenahealth API** — Healthcare platform with billing and clinical data in one API
- **Stripe API** — General payment processing with card, wallet, and bank support

## FAQ

### Why is there no official OpenAPI spec for Waystar API?

Waystar does not publish an OpenAPI specification for their patient payments API. Jentic generates and maintains this spec so that AI agents and developers can call Waystar API via structured tooling. It is validated against the live API and kept up to date. Get started with Jentic One, the self-hosted execution layer.

### What authentication does the Waystar API use?

The Waystar API uses Bearer token authentication. All requests require an Authorization header with a valid Bearer token. Through Jentic, tokens are stored encrypted in the credential vault and automatically injected into requests so agents never handle raw credentials.

### Can I set up recurring payment plans through this API?

Yes. The POST /payment-plans endpoint creates installment payment arrangements linked to a patient record. You specify the plan terms including total amount, number of installments, and frequency. Existing plans can be retrieved via GET `/payment-plans/{planId}` to check status and remaining balance.

### What patient data can I manage with the Waystar API?

The /patients endpoints allow creating and retrieving patient records that include demographic information, contact details, and billing references. Patients are identified by a unique patientId which links them to their payments, statements, and payment plans.

### How do I process a patient payment through Jentic?

Search Jentic for 'process a patient payment', load the operation schema for POST /payments, and execute with the patient ID, amount, and payment method parameters. Jentic injects the Bearer token automatically. Install with pip install jentic.

### Is the Waystar API the same as Patientco?

Yes. Waystar acquired Patientco and the API operates on the patientco.com domain. The API surface and functionality remain the same, providing patient payment management capabilities under the Waystar brand.

### Can I limit what my agent is allowed to do with the Waystar API?

Yes. Because your Jentic One instance is self-hosted, your own rules decide which Waystar operations and credentials the agent may use. Since the patient id sits in the URL path, such as GET `/patients/{patientId}`, a rule can pin the agent to reads on a named patient. You pick the operations it may call, so writes like POST /payments, POST /statements, and POST /payment-plans stay off unless you add them.
