/kp-callback.html which imports your records.The KP Patient Access API — Explanation of Benefits & Associated Resources is the secure, consent-based CMS payer/claims API. Unlike the open Formulary API, it returns your own records:
Clinical detail (lab values, diagnoses, medication orders) comes from Epic — complementary. This API gives the claims/cost view + prescription-fill history.
Auth: SMART on FHIR — OAuth 2.0 Authorization Code + PKCE; you log into KP and consent. Endpoints auto-discovered from {fhirBaseUrl}/.well-known/smart-configuration.
Powerful combo: pull your pharmacy claims here → check each drug against the Formulary API for tier/copay/cheaper covered alternatives.
KP_CLIENT_ID_SANDBOX (and KP_CLIENT_SECRET if any).https://beyondmychart.com/kp-callback.html kp-config.js (the sandbox region entry — currently a placeholder).openid fhirUser offline_access patient/Patient.read patient/ExplanationOfBenefit.read patient/Coverage.read (match what the API grants).