API Keys Setup Guide

Step-by-step instructions for generating the credentials needed to connect your store to ProfitLeaksAI.

S
Shopify API Access Token
Admin API token for read-only order access
info

You need to create a Custom app in your Shopify store with read access to orders and products. The access token is only shown once — copy it immediately.

  1. Log in to your Shopify Admin

    Go to your store at yourstore.myshopify.com/admin

  2. Navigate to Settings → Apps and sales channels

    Click the gear icon (Settings) in the bottom-left, then select "Apps and sales channels"

  3. Click "Develop apps"

    Then click "Allow custom app development" if prompted, then "Create an app"

  4. Name your app and configure Admin API scopes

    Give it a name (e.g., "ProfitLeaksAI"). Under "Configuration", click "Configure Admin API scopes" and enable:

    • check read_orders
    • check read_products
    • check read_inventory (optional)
  5. Click "Save" then "Install app"

    Confirm the installation in the popup

  6. Copy the Admin API access token

    Click "Reveal token once". Copy the shpat_... token immediately — it won't be shown again.

  7. Paste into ProfitLeaksAI

    In the Shopify connection modal, enter your yourstore.myshopify.com URL and paste the token.

add_link Connect Shopify now
WC
WooCommerce REST API Keys
Consumer Key and Consumer Secret
info

WooCommerce uses a REST API key pair (Consumer Key + Consumer Secret). You'll create a key with Read-only access — no write permissions needed.

  1. Log in to your WordPress Admin

    Go to yourstore.com/wp-admin

  2. Go to WooCommerce → Settings

  3. Click the "Advanced" tab, then "REST API"

  4. Click "Add key"

  5. Fill in the key details

    • Description: ProfitLeaksAI
    • User: Select your admin user
    • Permissions: Read
  6. Click "Generate API key"

    Copy both the Consumer key (ck_...) and Consumer secret (cs_...). They are only shown once.

  7. Paste into ProfitLeaksAI

    In the WooCommerce modal, enter your store URL (e.g., https://yourstore.com), Consumer Key, and Consumer Secret.

add_link Connect WooCommerce now
KL
Klaviyo Private API Key
For importing email and SMS revenue events
info

Klaviyo uses a Private API Key for server-to-server integrations. Create a key with minimal scopes — ProfitLeaksAI only needs read access to events and metrics.

  1. Log in to Klaviyo

    Go to klaviyo.com and sign in to your account

  2. Go to Account → Settings

    Click your profile icon in the top-right, then "Account"

  3. Click the "API Keys" tab

  4. Click "Create Private API Key"

    Give it a name like "ProfitLeaksAI". For scopes, select "Read-only" or at minimum enable Metrics (Read) and Events (Read).

  5. Copy the API key

    The key starts with pk_.... Copy it immediately.

  6. Paste into ProfitLeaksAI

    In the Klaviyo connection modal, paste the Private API Key.

add_link Connect Klaviyo now