Skip to content

API keys

lumieo has two kinds of keys. Use the right one in the right place, and a leaked key can do little harm.

Publishable key Secret key
Looks like pk_live_…, pk_test_… sk_live_…
Used by The widget loader on your pages Your server, calling the REST API
Safe in a browser? Yes. It’s public by design. No. Keep it on your server.
Can do Load a market’s published widgets and record plays What its permissions allow
Where Settings › Publishable keys Settings › API keys

Each market has two, made for you when the market is created:

  • Live (pk_live_) works only on the market’s allowed domains, and its plays count toward your plan. Use it on your real shop.
  • Test (pk_test_) also works on localhost, can load draft widgets with version=draft, and its plays never count. Use it while you build.

A publishable key can’t read or change anything in your account, and it only works from your own domains, so it’s fine in your page’s HTML.

Rotating. Choose Rotate next to a key. You get a new key at once, and the old one keeps working for 7 days, so you can update your site without a gap.

Create one under Settings › API keys with Create key:

  • Name it after what uses it, such as ERP stock sync, so you know what breaks if you revoke it.
  • Market: All markets, or one market only. A key for one market can’t touch the others.
  • Permissions: tick only what the integration needs. A key can never hold more than you have yourself.
  • Expiry (API only): expiresInDays, from 1 to 365.

The key is shown once. Copy it into your server’s secret store straight away. The list then shows each key’s name and when it was last used.

Common permission sets:

Integration Permissions
Push product changes product::write
Report orders and refunds order::write
Read results into your BI tool analytics::read
Manage screens from your systems screen::list, screen::update

Revoking. Choose Revoke. The key stops working at once. To replace a key without downtime, create the new one, deploy it, then revoke the old one.