By default, all API requests must be made over HTTPS. Additionally, you must Get Your API Key and include it in the request to authenticate your API requests. Alternatively, you can use Basic Authentication with your admin credentials by passing the Base64 encoded username:password in an Authorization header field:
Authorization: Basic amJPbLxpbw9UaTpXb3JrKjIwMDA=
You cannot use basic authentication when you Get Your API Key.

Related Documentation