The ChartMogul API uses HTTP Basic Authentication.

ChartMogul allows you to create multiple API keys, and we strongly encourage you to use a separate key for each external application or service you connect to ChartMogul. With every request made to the ChartMogul API, you must provide your API Key as basic auth credentials. Learn more about creating and managing API Keys.

Find your API Keys by navigating to Profile > View Profile and scrolling down to API Keys.

Click NEW API KEY to create a new key.

API Keys tableAPI Keys table

API Keys table


Updates to developer libraries

Starting October 29 2021, we are updating our developer libraries to support enhanced API Access Management. Please use the same API Key for both Account Token and Secret Key.

For example if your API Key is 717098869e029c50690d80913728eb89 then set API Token to 717098869e029c50690d80913728eb89 and Secret Key to 717098869e029c50690d80913728eb89

Once you have your API Key, you can quickly verify it by sending us an authentication ping. Use your API Key for both the Account Token and Secret Key. You will receive a satisfying pong! in response if your credentials are correct.

curl -X GET "" \
     -u YOUR_API_KEY:
ChartMogul.account_token = '<Account key goes here>'
ChartMogul.secret_key = '<Secret key goes here>'
const ChartMogul = require('chartmogul-node');
const config = new ChartMogul.Config(process.env.CHARTMOGUL_ACCOUNT_TOKEN, process.env.CHARTMOGUL_SECRET_KEY);
            .then(res => console.log(res))
            .catch(err => console.error(err))
import cm ""

api := cm.API{
    AccountToken: os.Getenv("CHARTMOGUL_ACCOUNT_TOKEN"),
    AccessKey:    os.Getenv("CHARTMOGUL_SECRET_KEY"),
ok, err := api.Ping()
if err != nil {
    fmt.Printf("This didn't work out: %v", err)
} else {
import chartmogul

config = chartmogul.Config('token', 'secret')
{ data: 'pong!' }