Articles on: Integrations

Add Klaviyo API keys to Stoq to send back in stock alerts

Stoq allows you to connect your Klaviyo account to send transactional emails and notifications to customers. Follow these steps to complete the first step of setting up your integration - adding the API keys


Retrieve your Klaviyo API Keys


  1. Log in to your Klaviyo account at **https://www.klaviyo.com/ **
  2. Click on your name or initials in the bottom left corner of the screen
  3. In the pop-up menu, click on Settings
  4. In the Settings menu, click on Account
  5. In the Account settings page, click on API Keys in the sidebar menu
  6. Click Create Private API Key
  7. Give your API key a name like Stoq Integration - Full Access
  8. Select Full Access under Access Permissions to grant Stoq the necessary permissions to sync customer data and send emails


Note: Full Access keys have broad permissions and should only be used with trusted applications like Stoq. Be sure to keep your private API key secure and never share it publicly.


  1. Click "Create"
  2. You will see a "Private API Key" that starts with pk_ & a Public API Key/Side ID. Keep this page open, you will need both keys to set up the integration in Stoq.


For more information on retrieving your Klaviyo API credentials, refer to the Klaviyo API documentation.


Paste your new keys in Stoq

  1. Log in to your Shopify admin account and navigate to STOQ
  2. In STOQ, click on "Back in stock alerts" in the app dropdown menu
  3. In the "Back in stock alerts" sidebar, click on "Notifications"
  4. Click the "Customize Email" button to open the email editor window
  5. In the email editor window, click on the "Email Template" tab
  6. In the "Email Provider" dropdown, select "Klaviyo"
  7. Paste your Klaviyo Public API Key into the "Enter your Klaviyo public API key / site ID" field
  8. Paste your Klaviyo Private API Key into the "Enter your Klaviyo private API key" field
  9. Click "Save changes" to connect your Klaviyo account


Customize email


Klaviyo Integration Setup


That's it! Stoq will now use Klaviyo to send your transactional emails. You can customize the email templates and sender information in your Klaviyo account.


Troubleshooting


If you receive an error when trying to save your API keys in Stoq, double check that you copied the full key correctly from your Klaviyo account page. API keys are case-sensitive.

Updated on: 09/02/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!