Sample API Call
Below is a sample call for an application to allow a beneficiary to log in with their Medicare.gov account credentials and authorize access to their data.
API version: 3
Authorization Link
https://sandbox.bluebutton.cms.gov/v3/o/authorize/?response_type=code&client_id=9FTkjlaFygjcy4KAqxRZoDHUCK4MHCptUSOIoZUa&redirect_uri=https%3A%2F%2Fsandbox.bluebutton.cms.gov%2Ftestclient%2Fcallback&scope=profile+patient%2FCoverage.rs+patient%2FPatient.rs+patient%2FExplanationOfBenefit.rs&state=Ml52T3NyUlM_Uy9rLGpiTX1rT1pTbVZjTSgudEZtOCg%3D&code_challenge=PW5z-imMR4jDIzT4gXdH2rE9maSSu5z5FYMdq6x2-fY%3D&code_challenge_method=S256