← Back to all docs
surescripts

Surescripts API

Surescripts is a nationwide health information network used by providers, pharmacies, PBMs, and health plans to route prescriptions, retrieve medication histories, check formularies and costs, and process prior authorizations. With an unofficial API, you could send and cancel e-prescriptions, run re

By Alex KlarfeldJanuary 25, 2026
Surescripts API

What is Surescripts?

Surescripts provides the e-prescribing and clinical interoperability rails that connect prescribers, pharmacies, PBMs, and health plans across the United States. Through standardized messaging and services, Surescripts enables prescribers to transmit prescriptions electronically, access medication histories, check patient-specific coverage and costs in real time, and complete electronic prior authorizations.

Core product areas include:

  • E-Prescribing (NewRx, RxChange, CancelRx, RxFill notifications)
  • Real-Time Prescription Benefit (patient-specific formulary, copay, alternatives)
  • Medication History (dispense records from pharmacies and PBMs)
  • Electronic Prior Authorization (ePA for specialty and traditional medications)
  • Provider and Pharmacy Directory services

Common data entities:

  • Patients (demographics, identifiers, coverage)
  • Prescribers (NPI, DEA, practice locations)
  • Pharmacies (NCPDP ID, location, services)
  • Prescriptions (drug, SIG, quantity, refills, DAW/substitution)
  • Medication History entries (dispense dates, NDC/RxNorm, quantity, days supply)
  • Benefit/Formulary results (copays, restrictions, alternatives)
  • Prior Authorizations (status, questions, attachments, payer/PBM)
  • Messages/Transactions (NCPDP SCRIPT types and delivery statuses)

The Surescripts Integration Challenge

Organizations rely on Surescripts daily, but turning portal- and network-based workflows into automated pipelines is hard:

  • Standards complexity: NCPDP SCRIPT versions, RTPB nuances, payer- and PBM-specific formulary rules, and evolving ePA question sets
  • Strong enterprise security: SSO/MFA and network controls complicate headless automation
  • Mixed delivery channels: Some events are real-time (e.g., NewRx), others are asynchronous (e.g., RxFill, ePA updates) or delivered via exports
  • Compliance and auditability: CancelRx and RxChange require precise audit trails, and PHI access must align to licensure, role, and consent
  • Entitlements and certification: Access depends on organizational licensing and the specific Surescripts services you’re entitled to use

How Supergood Creates Surescripts APIs

Supergood reverse-engineers authenticated browser flows, standards-based messaging, and batch interfaces to deliver a resilient API endpoint layer.

  • Handles username/password, SSO/OAuth, and MFA (SMS, email, TOTP) securely
  • Maintains session continuity with automated refresh and change detection
  • Normalizes NCPDP SCRIPT, medication history, RTPB, and ePA objects into consistent JSON
  • Aligns with customer entitlements and licensing constraints to ensure compliant access
  • Bridges asynchronous events and batch artifacts with signed URL retrieval and delivery

Getting Started

  • Schedule Integration Assessment

Book a 30-minute session to confirm your Surescripts service mix, licensing, and authentication model.

  • Supergood Builds and Validates Your API

We deliver a hardened Surescripts adapter tailored to your workflows and entitlements.

  • Deploy with Monitoring

Go live with continuous monitoring and automatic adjustments as Surescripts evolves.

API Endpoints

Authentication

POST/sessions

Establish a session using credentials. Supergood manages MFA (SMS, email, TOTP) and SSO/OAuth when enabled. Returns a short-lived auth token maintained by the platform.

Medication History

GET/patients/{patientId}/medication-history

Retrieve dispensed medications for a patient from connected pharmacies/PBMs. Use this to reconcile medication lists and drive adherence workflows.

E-Prescriptions

POST/e-prescriptions

Create and transmit a NewRx message to the selected pharmacy. Supports DAW/substitution flags, notes, and reference IDs for EHR cross-linking.

Real-Time Prescription Benefit

POST/benefits/rtpb

Request patient-specific coverage, copay, and alternatives for a proposed medication and pharmacy. Use this to present cost and coverage at order entry.

Prior Authorizations

POST/prior-authorizations

Create an ePA request referencing a proposed prescription. Include diagnosis codes and optional attachments.

Prior Authorizations

GET/prior-authorizations

List ePA requests with filters for status, patient, and payer.

Use Cases

EHR-to-Pharmacy E-Prescribing

- Push NewRx from your EHR into the patient’s preferred pharmacy - Manage CancelRx and RxChange with clear audit trails - Maintain consistent patient demographics and prescriber credentials

Benefit, Eligibility, and Cost Transparency

- Run RTPB to display patient-specific copays and restrictions at order entry - Suggest covered alternatives with lower out-of-pocket costs - Reduce rework and claim denials tied to step therapy or prior auth requirements

Prior Authorization Automation

- Submit ePA requests directly and track statuses - Pre-fill clinical questions from the chart; attach labs or notes - Notify staff when approvals arrive to release prescriptions promptly

Medication History and Adherence

- Pull medication dispense history to verify adherence and reconcile lists - Use RxFill events to drive outreach for non-adherence or failed fills - Support care plans and billing rules linked to medication compliance

Audit and Compliance

- Export complete message logs for NewRx, CancelRx, and RxChange - Preserve evidence of coverage checks and ePA decisions - Maintain machine-readable audit trails aligned to organizational policies

Technical Specifications

Authentication

Username/password with MFA (SMS, email, TOTP) and SSO/OAuth where enabled; supports service accounts or customer-managed credentials

Response format

JSON with consistent resource schemas and pagination

Rate limits

Tuned for enterprise throughput while honoring licensing and usage controls

Session management

Automatic reauth and cookie/session rotation with health checks

Data freshness

Near real-time retrieval of eRx, RTPB, ePA, and medication history artifacts

Security

Encrypted transport, scoped tokens, and audit logging; respects Surescripts entitlements and compliance requirements

Webhooks

Optional asynchronous delivery for RxFill updates, ePA status changes, and pharmacy acknowledgments

Latency

Sub-second responses for list/detail queries under normal load

Throughput

Designed for high-volume e-prescribing and prior auth pipelines

Reliability

Retry logic, backoff, and idempotency keys minimize duplicate actions

Adaptation

Continuous monitoring for UI/API changes with rapid adapter updates

Frequently asked questions

Supergood supports workflows across commonly used Surescripts offerings, subject to your licensing and entitlements. We scope coverage (e.g., NewRx, CancelRx, RxFill, RTPB, Medication History, ePA) during integration assessment.

We support username/password + MFA (SMS, email, TOTP) and can operate behind SSO/OAuth when enabled. For asynchronous flows, we provide webhooks, signed URL retrieval, and reliable polling to consolidate statuses and artifacts.

Yes. You can submit ePA requests referencing proposed prescriptions, attach clinical documentation, and receive payer questions and decisions programmatically.

Ready to get a real API?