Secret and publishable keys
Secret keys run checkouts from your server. Publishable keys only read checkout status from the browser.
Headless APIs
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.
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.
Your Checkout
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.
{
"plan": "3-month",
"state": "TX",
"profile": { ... },
"answers": { ... },
"payment": {
"provider": "your-provider",
"reference": "pay_0001",
"amountCents": 34900,
"collectedAt": "2026-11-03T15:03:00Z"
}
}What You Can Sell
Headless checkouts cover the product lines your account can sell, with the same licensed clinical and pharmacy network behind every order.

Sandbox
Create sandbox keys and build against a separate sandbox environment. Sandbox checkouts create test orders, move no money, and are never invoiced.
{
"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": "..."
}Go Live
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.

What’s included
Secret keys run checkouts from your server. Publishable keys only read checkout status from the browser.
Get order.created, membership.created, membership.renewed, membership.past_due, membership.cancelled, message.received, and lead events.
Owed amounts are invoiced on a regular cycle. You can see every charge through the API.
If an invoice goes unpaid past your account limit, new headless sales pause until it is paid.
Renew or cancel Care Services memberships from your own app.
Use a regular API key to read orders, leads, and payouts alongside your headless checkout.
Launch plan
Book a meeting to walk through your use case.
Accept the Headless API agreement in your portal settings.
Create sandbox keys and build your checkout.
Request a production review.
Create live keys and start selling.
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
You are. You collect payment with your own payment provider and handle refunds and chargebacks. LegUpRx never processes headless payments or sees card data.
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.
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.
No. Headless APIs are not available for agency-managed client accounts. Standard partner accounts can apply.
Elective medication programs (including TRT for accounts with TRT access), Care Services memberships, and DNA testing.
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.
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.
Review the adjacent parts of the LegUpRx model that support launch, conversion, and expansion.
Book a meeting with our team to walk through your integration, or read the API docs to start building.