Keys / Lemon Squeezy

LEMONSQUEEZY_API_KEY

The API key your server calls the Lemon Squeezy API with. Lemon Squeezy stops processing transactions on March 31, 2027.

Expires
1 year
API
none; dashboard only

Get it

Create one on app.lemonsqueezy.com/settings/api. The steps aren't recorded yet.

Set it

LEMONSQUEEZY_API_KEY=...

The official JavaScript SDK doesn't read it; your app passes it to lemonSqueezySetup({ apiKey }). Or keep it out of .env with keypin: keypin run -- npm run dev

Replace it

  1. Under Settings > API, create a new key in the same mode, live or test.
  2. Deploy it everywhere that reads LEMONSQUEEZY_API_KEY before the old key's year is up.
  3. Check that requests succeed with the new key, then remove the old one under Settings > API.

Set rotate_every on the key in keypin.toml and a rotated date on its vault item, and keypin status shows when it's due.

Sources, checked 2026-11-16