API keys
Create a private key for server code and find your account's public key for the browser.
About 1 minute to read
Two kinds of key
- Private key
- For server code. Starts with pk_ and carries the scopes chosen when it was created. Keep it secret.
- Public key
- Your account's six-character id for browser calls and the on-site script. Safe to put in a web page.
Create a private key
- Go to Settings then API keys and create a private key.
- Name it after what will use it, and choose read or write access for each kind of data it needs. Give it no more than that.
- Copy the key when it is shown and store it somewhere safe.
Use it
Send the key in the Authorization header as Klaviyo-API-Key pk_..., with a revision header. The API follows Klaviyo's API, so existing code works after you change the base URL to https://email.growthdept.ai. The developer docs walk through a first call.
Related articles
- Connect Shopify
Install the Growth Dept Email app, or use the Shopify connection Growth Dept already runs for you, and check the first sync.
- Invite your team
Add people to your account and give each one the role that fits.
Something wrong or missing? Email hello@growthdept.ai.