Authentication

Client keys

Every Leanplum app you create will have its own set of API keys (found in App Settings > Keys & Settings). You'll use the clientKey to authenticate your API requests. Each key has different permissions. Below is the list of keys and the use for each key. Each API method will list which clientKey to use in that method's description.

clientKeyclientKey Use
Productiontrack sessions, states, set user or device attributes, etc.
Developmentimport CSV data, delete users, set variables, etc.
Data Exportexport user data, messaging and a/b test reports, etc.
Content Read-onlyget message and a/b test information, etc.

🚧

Use secure key handling practices 🔐

You should take all possible measures to keep your Leanplum API keys safe and secure — always send your Keys and any other secure data in the request body when making post requests. Follow these recommendations for more security best practices.