Resolving 401 Unauthorized error with BoldSign API
When a user tries to access the BoldSign API endpoint using a generated API key, they may encounter a “401 Unauthorized” error.
Cause
The error often occurs when there is a mismatch between the user’s registered data center and the data center endpoint to which the API requests are being sent. For instance, if a user is registered in the European data center but sends requests to the US data center, they will encounter this issue.
Solution
Update API Endpoint URL: If you are registered in the European data center, ensure that your API requests are directed to the correct endpoint.
Update the URL in your API requests to https://api-eu.boldsign.com/v1.
Refer to documentation
For detailed information and specific guidance, refer to BoldSign’s API documentation, particularly the section on Versioning - API Documentation - BoldSign.
Additional steps
- Verify that the API key you are using is valid, has not been removed, and has not expired.
- Check that the OAuth access token has not expired; its usual expiration timeline is one hour.
- If the issue persists after making these changes, contact BoldSign’s support team for further assistance.