Skip to main content

Effective 10 September 2024, API Documentation can be found on our Equinix Product Documentation site.
The content on this page will not be updated after 1 Oct 2024 and will be inaccessible after 31st Dec 2024.


401: Unauthorized

The 401 (Unauthorized) status code indicates that the authentication credentials received are not authorized. The user may repeat the request with a new or replaced Authorization header field.

Code401
DescriptionAuthentication Error.
Generic CauseUnauthorized authentication token.
Quick FixVerify whether an authentication token is obtained and ensure to provide this with each request.

There are different types of Authentication errors and this section provides sample scenarios of authentication errors as well as tips on how to identify them.

401: Invalid access token. Please pass a valid access token

Code401
DescriptionInvalid access token. Please pass a valid access token
Generic CauseInvalid authorization token.
Quick FixCheck that the Authorization token is correct.
ERROR SCENARIO EXAMPLE
ERROR CODE: "401"
MESSAGE: "Invalid access token. Please pass a valid access token"
 

Verify the Authorization token, and ensure that the correct token was passed.

Rename the Authorization value from "Bearer qwErtY8zyW1abcdefGHIZZZZ" to "Bearer qwErtY8zyW1abcdefGHI".

curl -X
GET "https://api.equinix.com/v1/assets/11581251"
-H "Content-type: application/json"
-H "Authorization: Bearer qwErtY8zyW1abcdefGHIZZZZ"