U.S. Flag

An official website of the United States government

Blue Button 2.0 Sandbox
Blue Button 2.0 Sandbox
Menu

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: v2

Authorization Link

https://sandbox.bluebutton.cms.gov/v2/o/authorize/?response_type=code&client_id=9FTkjlaFygjcy4KAqxRZoDHUCK4MHCptUSOIoZUa&redirect_uri=https%3A%2F%2Fsandbox.bluebutton.cms.gov%2Ftestclient%2Fcallback&state=JFE0XVhmUVpdZSMqTWNqOn55SGR5WSUhWUhdM08wZko%3D&code_challenge=2BeZFJjlA-toegrqjP4WdUFl3fFv-3Cp37RPK5S2TNw%3D&code_challenge_method=S256

You'll need sample beneficiary credentials to log in

The first user is BBUser00000 with password PW00000! and these sample users continue all the way to BBUser29999 with password PW29999!
Note: the ! at the end of the password is required