Headless APIs

A headless telehealth API for your own site or app

The headless APIs let you build your own intake and checkout. You collect payment with your own payment provider as the merchant of record, and LegUpRx invoices you for what each order owes. Independent licensed clinicians and pharmacies still handle the regulated work.

  • Teams with their own site, app, or member software.
  • Businesses that want to use their own payment provider.
  • Developers who want full control of intake and checkout design.

For teams that want full control of checkout

Headless is for businesses and developers that already run their own site, app, or payment stack and want telehealth inside it instead of sending customers to a hosted checkout.

  • You are the merchant of record with your own payment provider.
  • Sandbox environment for building and testing before you go live.
  • Live keys after a signed agreement and a production review.
Read the API documentation

Your Checkout

Your checkout, your payment provider

List products and questionnaires, create a checkout, collect payment with your own provider, then submit the order with your payment reference. LegUpRx never processes headless payments or sees card data.

  • You are the merchant of record and handle refunds and chargebacks.
  • Submit each order with a reference to the payment you collected.
  • LegUpRx invoices you for what each order owes.
Read the API docs
POST/api/v1/headless/checkouts/{id}/submit
{
  "plan": "3-month",
  "state": "TX",
  "profile": { ... },
  "answers": { ... },
  "payment": {
    "provider": "your-provider",
    "reference": "pay_0001",
    "amountCents": 34900,
    "collectedAt": "2026-11-03T15:03:00Z"
  }
}
Your Payment Reference

What You Can Sell

Elective programs, care memberships, and DNA testing

Headless checkouts cover the product lines your account can sell, with the same licensed clinical and pharmacy network behind every order.

  • Elective medication programs, including TRT for accounts with TRT access.
  • Care Services memberships: urgent care, primary care, behavioral health, dermatology, veterinary care, and family plans.
  • Care membership renewals and cancellations through the API.
  • DNA testing carts with multiple tests in one order.
Care services checkout with membership options

Sandbox

Build and test in the sandbox first

Create sandbox keys and build against a separate sandbox environment. Sandbox checkouts create test orders, move no money, and are never invoiced.

  • Separate sandbox host and test keys.
  • Simulate order status changes, patient messages, and membership renewals.
  • Test webhooks before you go live.
POSTsandbox.member.leguprx.com/api/v1/headless/checkouts/elective
{
  "productId": "9b1d2c3e-...",
  "plan": "3-month",
  "state": "TX",
  "email": "test.patient@example.com",
  "schemaVersion": "<schemaVersion>",
  "consents": { ... }
}

// response
{
  "id": "chk_...",
  "status": "open",
  "pricing": { "patientPriceCents": 34900, "owed": { ... } },
  "expiresAt": "..."
}
No Money Moves

Go Live

Go live with a production review

When your integration is ready, accept the Headless API agreement and request a production review. After approval, you create live keys and start selling within your account’s daily limits.

  • Tell us your use case, checkout flow, site, and technical contact.
  • Live keys are created after approval.
  • Daily checkout limits are set per account and can be raised.
Book a Meeting
Telehealth intake running inside a partner app

What’s included

What your business will get

Secret and publishable keys

Secret keys run checkouts from your server. Publishable keys only read checkout status from the browser.

Webhooks

Get order.created, membership.created, membership.renewed, membership.past_due, membership.cancelled, message.received, and lead events.

Invoicing of owed charges

Owed amounts are invoiced on a regular cycle. You can see every charge through the API.

Unpaid invoice protection

If an invoice goes unpaid past your account limit, new headless sales pause until it is paid.

Membership endpoints

Renew or cancel Care Services memberships from your own app.

Regular API too

Use a regular API key to read orders, leads, and payouts alongside your headless checkout.

Launch plan

How rollout typically works

  1. Book a meeting to walk through your use case.

  2. Accept the Headless API agreement in your portal settings.

  3. Create sandbox keys and build your checkout.

  4. Request a production review.

  5. Create live keys and start selling.

Pricing and growth notes

  • You collect payment from patients with your own provider.
  • LegUpRx invoices the amounts each order owes.
  • Sandbox orders are never invoiced.
  • Available on approval after a signed agreement and production review.

Headless telehealth without becoming the provider

Headless gives you full control of the customer experience while independent licensed clinicians and pharmacies handle the regulated work. If you only need to sync events with your CRM or member software, the telehealth integrations page covers the regular API and webhooks.

Endpoints, request formats, and webhook payloads are documented in the API documentation.

FAQ

Common questions

Who is the merchant of record?

You are. You collect payment with your own payment provider and handle refunds and chargebacks. LegUpRx never processes headless payments or sees card data.

How am I billed?

LegUpRx invoices you for what each order owes, such as when an elective order is approved, a DNA order is submitted, or a care membership period starts. Invoices are collected on a regular cycle set for your account.

Is there a sandbox?

Yes. You can create sandbox keys and build against a separate sandbox environment. Sandbox orders are test orders, move no money, and are never invoiced.

Can agency client accounts use headless APIs?

No. Headless APIs are not available for agency-managed client accounts. Standard partner accounts can apply.

Which products can I sell headlessly?

Elective medication programs (including TRT for accounts with TRT access), Care Services memberships, and DNA testing.

What happens if an invoice goes unpaid?

When the unpaid balance reaches your account limit, new headless sales pause until the invoice is paid. Renewals pause after a short grace period. Sandbox is never paused.

How is this different from the regular API?

The regular API works with LegUpRx-hosted checkouts and lets you read leads, orders, memberships, and payouts and receive webhooks. Headless adds your own checkout and payment provider on top.

Explore more of the platform

Review the adjacent parts of the LegUpRx model that support launch, conversion, and expansion.

Ready to get started?

Book a meeting with our team to walk through your integration, or read the API docs to start building.