Skip to main content

Authentication

The Mogul Bridge API uses API keys to authenticate requests. You can view and manage your API keys in the Mogul Bridge Dashboard.

Test mode secret keys have the prefix pk_test_ and live mode secret keys have the prefix sk_live_.

Your API keys carry many privileges, so be sure to keep them secure. Don't share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.

Authentication to the API is performed with 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 with bearer auth, for example, for a cross-origin request, use -H "Authorization: Bearer pk_test_" instead of -u pk_test_..

You must make all API calls over HTTPS. Calls that you make over plain HTTP will fail. API requests without authentication will also fail.

Request API Credentials