Retrieve a Medicare beneficiary's Part A, B, and D claims history using the CMS Blue Button 2.0 FHIR API

domain: bluebutton.cms.gov · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Register a developer account and application in the Blue Button 2.0 sandbox
  2. Implement OAuth 2.0 authorization code flow so a beneficiary can grant your app access to their claims data
  3. Use the v2 FHIR R4 endpoints, based on the CARIN Consumer Directed Payer Data Exchange implementation guide, to query ExplanationOfBenefit, Coverage, and Patient resources
  4. Test end-to-end flows against synthetic sandbox data before requesting production access
  5. Follow the production access user guide to move from sandbox to live beneficiary data
  6. Use the provided Node/Python SDKs to manage OAuth token refresh

Known gotchas

Related routes

Query the CMS Blue Button 2.0 FHIR API to retrieve a Medicare beneficiary's ExplanationOfBenefit resources and extract claims history
bluebutton.cms.gov · 6 steps · unrated
Access CMS Blue Button 2.0 API to retrieve Medicare claims data for a beneficiary
fhir · 6 steps · unrated
Retrieve Medicare claims data via CMS Blue Button 2.0 using authorization code OAuth flow
bluebutton.cms.gov · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans