ANSWER
- A 401 Unauthorized error can occur when API requests are sent to the wrong environment endpoint. For customers hosted in a private cloud environment, API requests must be sent to the dedicated private cloud endpoint rather than the standard shared cloud API endpoint.
ADDITIONAL DETAILS
- The issue may not be related to the API token, authentication headers, or permissions.
- Private cloud deployments use environment-specific API endpoints that differ from the endpoints documented for the shared cloud environment.
- Using the incorrect endpoint can result in authentication failures even when the request is otherwise configured correctly.
LIMITATIONS (if applicable)
- Public API endpoints are not compatible with all private cloud environments.
- Authentication errors may not clearly indicate that the endpoint is incorrect.
- API documentation may reference shared cloud endpoints that do not apply to private cloud deployments.