Authenticate your account while using the API by including your API key in the request. You can manage your API keys from settings. Your API keys hold many privileges, so be sure to keep them secure. Don't share them in publicly accessible areas such as GitHub, client-side code and etc.

Authentication to the API is performed via HTTP Basic Auth. Provide your API key as the basic auth username value. You don't need to provide a password.

If you need to authenticate via bearer auth (e.g., for a cross-origin request), use -H "Authorization: Bearer sk_test_BQokikJOvBiI2HlWgH4olfQ2" instead of -u sk_test_BQokikJOvBiI2HlWgH4olfQ2:.

All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail.