Headless API

Headless API for Telehealth Clinics

Powers everything from custom patient flows to checkout and fulfillment. Build your own telehealth experience with our complete backend infrastructure.

HEADLESS SDK

Full control over your experience

Use Turbopills as the backend and ship your own UI. Our SDK streamlines workflows by connecting your systems for building truly any digital health experience.

Instant Setup

npm install and start building in minutes

Type-Safe

Full TypeScript support with autocomplete

checkout.ts
typescript
1import { Turbopills } from "@turbopills/sdk";
2Β 
3const tp = new Turbopills(process.env.API_KEY);
4Β 
5// Create a checkout session
6const session = await tp.checkout.create({
7 patient_id: "pat_abc123",
8 products: ["prod_semaglutide_025"],
9 success_url: "https://yoursite.com/success",
10});
11Β 
12// Redirect patient to session.url
GRAPHQL API

Powerful, flexible queries

Our GraphQL API gives you the flexibility to request exactly the data you need. Full introspection, real-time subscriptions, and comprehensive documentation.

GraphQL Playground
Connected
query GetPatients($first: Int!) {
  patients(first: $first) {
    edges {
      node {
        id
        email
        firstName
        lastName
        dateOfBirth
        prescriptions {
          medication
          dosage
          status
        }
      }
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
Response200 OK β€’ 45ms
{
  "data": {
    "patients": {
      "edges": [
        {
          "node": {
            "id": "pat_abc123",
            "email": "john@example.com",
            "firstName": "John",
            "lastName": "Doe",
            "dateOfBirth": "1985-03-15",
            "prescriptions": [
              {
                "medication": "Semaglutide",
                "dosage": "0.25mg",
                "status": "ACTIVE"
              }
            ]
          }
        }
      ],
      "pageInfo": {
        "hasNextPage": true,
        "endCursor": "cursor_xyz"
      }
    }
  }
}
REAL-TIME WEBHOOKS

React instantly to events

Get instant notifications when intake forms are completed, orders are paid, Rx refills requested, or shipments updated. No polling required β€” integrate these events into your app or workflow.

Real-Time

Instant data sync, no polling required

Automated

Trigger actions on any event type

order.created
json
1{
2 "id": "evt_1abc123",
3 "type": "order.created",
4 "data": {
5 "order_id": "ord_xyz789",
6 "patient": {
7 "id": "pat_abc123",
8 "email": "patient@email.com"
9 },
10 "status": "paid",
11 "intake_completed": true,
12 "items": [
13 { "name": "Semaglutide 0.25mg", "qty": 1, "price": 29900 }
14 ],
15 "created_at": "2026-01-12T10:30:00Z"
16 }
17}
TURBOPILLS UI

Build beautiful intake flows

A comprehensive React component library designed specifically for telehealth. Create stunning patient experiences with pre-built, accessible components.

Turbopills UI
Coming Soon
React Component Library

A complete component library designed for telehealth intake forms and patient flows. Built with accessibility, customization, and developer experience in mind.

Text InputAccessible form inputs
SelectDropdown selections
CheckboxMulti-select options
ToggleBoolean switches
Date PickerDate selection
File UploadDocument uploads
Multi-StepForm wizards
CardContent containers
Example: Patient Intake Form

Apps & Pre-built Integrations

Leading integrations that enhance your platform. Connect with trusted partners to optimize your workflows.

Healthie logo
Healthie
Epic logo
Epic
Oracle Health logo
Oracle Health
athenahealth logo
athenahealth
Segment logo
Segment
Google Analytics logo
Google Analytics
GTM logo
GTM
Google Ads logo
Google Ads
Meta Ads logo
Meta Ads
Shopify logo
Shopify
Framer logo
Framer
Webflow logo
Webflow
Intercom logo
Intercom
Zendesk logo
Zendesk

How the API Powers Your Telehealth Flow

From patient onboarding to medication delivery β€” see how our API handles the complete telehealth lifecycle.

Onboarding

Patient completes intake via your custom UI

Payment

API processes checkout and charges

Review

Provider reviews and approves

Prescription

E-prescription sent to pharmacy

Delivery

Medication shipped with tracking

Built for Your Team

Whether you're a developer building custom experiences or an operator managing clinic workflows β€” we've got you covered.

For Developers

Fast Setup

npm install and start building in minutes

TypeScript Support

Type-safe SDK with autocomplete

GraphQL API

Flexible queries with introspection

For Clinic Operators

Customizable Flows

Tailor workflows to fit your clinic's needs

Instant Alerts

Real-time notifications on key events

Seamless Integrations

Connect to your EHR, CRM, or pharmacy

Ready to elevate your telehealth platform?

Experience the power of our Headless API. Start building today or talk to our team about your specific needs.