Cannot use the API, it throws 401/403/404 errors

Following the HTTP standards, you should know that:

  • 401 Unauthorized response code means that you are not authenticated (in simpler terms "not logged in").
  • 403 Forbidden response code means that you are not authorized to access your designated resource.
  • 404 Not Found response code means that the resource you are looking for does not exist.

Having that in mind during the usage of our API you might encounter these in multiple scenarios.

Reason for receiving "401" errors

The reason for getting 401 Unauthorized errors is simply because you did not provide or provided a wrong Bearer Authorization header (reference the Getting Access section for additional details).

One of the common mistakes might be using the Bearer token issued for the Sandbox environment within the Production API and vice versa.

Reason for receiving "403" errors

As our API is following the OAuth 2.0 protocol, one of the most common reasons for receiving a 403 Forbidden is that the issued access_token has expired and needs refreshing using the refresh_token (reference the Getting Access section for additional details).

Reason for receiving "404" errors

Make sure to use the right GraphQL endpoint:

https://api-sandbox.eneba.com/graphql/
Copyright 2024 Eneba. All Rights Reserved. JSC “Helis play”, Gyneju St. 4-333, Vilnius, the Republic of Lithuania