Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

401 Unauthorized - Invalid Token

237 views
Skip to first unread message

Edisnel C. C.

unread,
Feb 28, 2025, 3:01:17 PMFeb 28
to Beneficiary Claims Data API (BCDA) Community
Hello good afternoon, I hope you are doing well

Today in the middle of a download,  it was interrupted by an Invalid token error

In a 1 hour interval, we try the same credentials to authenticate against the BCDA API. Sometimes we got the token, other times we get this error when doing the post request to https://api.bcda.cms.gov/auth/token

{
    "issue": [
        {
            "code": "exception",
            "diagnostics": "Invalid Token",
            "severity": "error"
        }
    ],
    "resourceType": "OperationOutcome"
}

After rotating the credentials, we have the same pattern.  Could you help us in finding the issue?

Thank you very much

Andrew Copeland

unread,
Mar 10, 2025, 3:05:57 PMMar 10
to Beneficiary Claims Data API (BCDA) Community
Hello!

We have had the same issue on our jobs that hit the BCDA API.  Our retries eventually recovered some of the 401 errors, but wonder if there is something else.

We download data for multiple ACO's.

Thank you!

jacob.b...@gmail.com

unread,
Mar 10, 2025, 3:56:25 PMMar 10
to Beneficiary Claims Data API (BCDA) Community
+1 to this ticket. Seeing the same server-side degradation/issue in the last 7 days, and still unresolved. (Also possibly related, PACA Claim endpoints have been not throwing any errors but have been returning 0 resources for many days in a row now.)

@ BCDA Team - is there a fix in process for these server-side issues?

Standing by, let me know if anything else we can do to assist resolution.

Jake

Andy McLaughlin

unread,
Mar 10, 2025, 5:09:34 PMMar 10
to Beneficiary Claims Data API (BCDA) Community
Another +1

Somaiya Shakil

unread,
Mar 10, 2025, 5:37:02 PMMar 10
to Andy McLaughlin, Beneficiary Claims Data API (BCDA) Community

Experiencing the same issue for ACO D0315.

--
You received this message because you are subscribed to the Google Groups "Beneficiary Claims Data API (BCDA) Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bc-api+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/bc-api/0dd99e37-4616-41d6-b413-378dc79cc26en%40googlegroups.com.

 

The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please reply to the sender (only) and then delete this message from your inbox as well as any copies. Thank you.


The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please reply to the sender (only) and then delete this message from your inbox as well as any copies. Thank you.

Secured by Paubox - HITRUST certified

Beneficiary Claims Data API (BCDA) Community

unread,
Mar 10, 2025, 6:30:58 PMMar 10
to Beneficiary Claims Data API (BCDA) Community

Thank you all for reaching out! 


We are working to identify the cause of these intermittent authentication failures. We appreciate your patience as we resolve the issue.

To support our investigation, please reply here or to bc...@cms.hhs.gov with: 

  1. How often you are receiving this token error (e.g., about half of requests).
  2. What method you are using to make these API requests (e.g., Postman, curl). 
  3. The 5 character Entity ID for your organization(s). For example, ACOs in the Shared Savings Program have Entity IDs which begin with the letter 'A' followed by four numbers, like "A9999".

Please be sure to censor Personally Identifiable Information (PII) and other sensitive information in your responses.


The partially adjudicated claims issue appears to be an unrelated issue with upstream data availability beginning March 4; the issue should be resolved as of around 5:30pm Eastern today, but please let us know if you still do not see any Claim resources.


Thank you, 


The BCDA Team

Wellvana Wellvana

unread,
Mar 10, 2025, 6:46:03 PMMar 10
to Beneficiary Claims Data API (BCDA) Community
I am seeing this issue intermittently for a few days now. 

I executed:
      curl -d "" -X POST "https://api.bcda.cms.gov/auth/token" --user real_client_key:real_client_secret -H "accept: application/json"

5 times in a row 2 of them returned a real auth token and 3 returned 401 errors

Anil Bobade

unread,
Mar 11, 2025, 9:20:18 AMMar 11
to Beneficiary Claims Data API (BCDA) Community
+1 to this issue, We also faced this issue over the weekend.

Schwindt, Adam

unread,
Mar 11, 2025, 9:20:30 AMMar 11
to Beneficiary Claims Data API (BCDA) Community
Every single time.

A2973

Python HTTP Requests.






This e-mail and any attachments may contain information which is confidential, proprietary, privileged or otherwise protected by law. The information is solely intended for the named addressee (or a person responsible for delivering it to the addressee). If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete it from your computer.

Somaiya Shakil

unread,
Mar 11, 2025, 10:15:01 AMMar 11
to Schwindt, Adam, Beneficiary Claims Data API (BCDA) Community

Using curl through SAS and ACO ID is D0315.

 

The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please reply to the sender (only) and then delete this message from your inbox as well as any copies. Thank you.


The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please reply to the sender (only) and then delete this message from your inbox as well as any copies. Thank you.

Beneficiary Claims Data API (BCDA) Community

unread,
Mar 12, 2025, 9:36:46 AMMar 12
to Beneficiary Claims Data API (BCDA) Community

Hi all, 

 

Thank you for sharing the extra error information with us! The BCDA team has identified a high volume of simultaneous requests from two IP addresses as a major contributing factor to the sudden increase in 401 errors. As a reminder, we recommend following an exponential backoff approach when making automated requests to BCDA. 

We are continuing to troubleshoot the root cause of the intermittent authentication failures and apologize for any inconvenience they have caused. Please let us know if the issue persists.

 

Thank you, 

 

The BCDA Team


Reply all
Reply to author
Forward
0 new messages