Back to roadmaps lemonsqueezy Course

Store Configuration and API Key Setup

Let us configure your Lemon Squeezy store and retrieve credentials for your backend API integrations.


1. Setting Up Your Store

  1. Sign up for a free developer account at lemonsqueezy.com.
  2. Follow the onboarding flow to name and create your virtual store (for example, My SaaS Store).
  3. You will start in Test Mode automatically. Keep test mode enabled during initial development.

2. Generating API Credentials

Navigate to the store settings panel in your dashboard to gather these credentials:

A. API Key

  • Go to Settings -> API.
  • Click Create API Key. Copy the token (starts with ey...).

B. Webhook Signing Secret

  • Go to Settings -> Webhooks.
  • When setting up your webhook URL, enter a custom signing secret (for example, a random string). This is used by your backend to verify that webhook requests are authentic.

3. Environment Variables Configuration

Add these configuration lines inside your local .env file:

# Lemon Squeezy credentials config
LEMONSQUEEZY_API_KEY="ey_your-api-key-here"
LEMONSQUEEZY_STORE_ID="12345" # Store ID found in the dashboard URL or settings
LEMONSQUEEZY_WEBHOOK_SECRET="your-custom-webhook-secret-string"
Published on Last updated: