Skip to main content
Newcomer
May 1, 2025
Question

Getting error when obtaining the access token: "invalid_user_siteid"

  • May 1, 2025
  • 1 reply
  • 235 views

I’m getting this error when obtaining the access token through the /oauth/token endpoint:

{"error": "invalid_grant", "error_description": "invalid_user_siteid"}

I couldn’t find any info in the Troubleshooting Common Errors. What does this error mean and how do we address this?

 

1 reply

JohnSantos
Guru
Guru
May 1, 2025

@integrations.subble 

The "invalid_grant" error with the description "invalid_user_siteid" typically occurs when the user account you’re trying to authenticate with does not belong to the same DocuSign environment (site or data center) that your integration is targeting.


Confirm that you're sending the /oauth/token request to the correct base URL:

 

The URL they land on indicates the correct environment:

account-d.docusign.com → demo

account.docusign.com → production (NA1)

account-eu.docusign.com → EU

 

Welcome to the DocuSign Community! Your feedback is highly valued. If you find my response helpful, please give it a "Like" and consider marking it as the "Best Answer" to assist others with similar issues.