https://connect.laces.run/v1 and take real
payments. To build and test safely, see
Testing your integration.
What you get
One API key in the app is one API client, and it has three values:Create a key
Open Developers

Settings, Get help section, with the Developers tile

The Developers step of the Settings guide
Start a new key

Developers before any key exists
Name it

The Create API key form: name, permissions and the Read orders warning
Choose permissions
orders:read) is off by default. It lets the key read
every order in your organization including names, emails and phone
numbers. Leave it off unless your server genuinely needs it; webhooks and
checkout session reads tell you payment outcomes without it.Create events (events:write) is also off by default.
Turn it on only for a partner you trust to create events in your
organization. See Create events and registration domains.Enter your domains
- Allowed domains: websites that may use the publishable key, for
example
https://shop.example.com. - Return URL domains: websites a checkout may send people back to afterwards.

Domains are added one at a time and shown as chips
Create it and copy the secret
.env file:
The secret is shown once (secret value blurred here)

Your keys list

Key detail with Regenerate keys and Revoke key
Create events and registration domains
Theevents:write permission lets one key create, price and publish events
through the API (see Create and publish events). When
you turn it on, the app warns you: “This key can create and publish events in
your organization and send buyers to the registration domains you list. Only
turn it on for a partner you trust with that.”
Only an owner or admin can turn it on. A key that just gained the
permission needs a new token.
The key also has a third list, Registration domains: “Websites this key may
send buyers to for registration. Exact https domains only; link shorteners and
shared sites are refused.” An event this key creates can point at your own
registration site (registration_url) only if the site’s origin is in this
list.
- Same format as the other lists: exact
httpsorigins, no wildcards or paths, up to 20 entries. Unlike the other lists,http://localhostis not accepted here. - Laces refuses, even if listed:
laces.runand its subdomains, link shorteners such asbit.ly, and shared sites such as Google Sites, Linktree, WhatsApp, Facebook and GitHub.www.does not get around it. A refused entry is400 invalid_origin. - Removing a domain, or revoking the key, clears the
registration_urlof every event that key set from it, and the event goes back to Laces registration. Owners and admins are notified.
Settings for payments only
For collecting payments on your own site. Laces must first turn payments on for your organization; the app shows these settings only then. An owner or admin sets them on the key:https (no localhost), at most
2048 characters, with an origin in the key’s Return URL domains, else
400 invalid_return_url. shop_site_url can’t be a link shortener or a shared
host such as Google Sites or Linktree (400 invalid_source_url). They are
checked again each time they are used, and removing a domain clears the saved
URLs that use it. A payment’s own URL always wins over a default.
Allowed domains vs return URL domains
events:write; it is separate from both of these.
Rules for both:
- Exact origins only: scheme, host and an optional port. No wildcards, no
paths, no query strings.
https://shop.example.comis valid.https://*.example.comandhttps://example.com/eventsare not.
httpsonly, with one exception for local development (below).https://example.comandhttps://www.example.comare different origins. List both if you serve both.- Up to 20 entries per list.
Local development domains
You can addhttp://localhost:<port> or http://127.0.0.1:<port> to either
list, for example http://localhost:3000. The port is required, and no
other http address is accepted. These are exact entries like any other:
http://localhost:3000 does not allow http://localhost:5173.
Local domains work end to end with your live keys: your local page can call
the API with the publishable key, hosted checkout
returns the buyer to an http://localhost:<port> return URL listed in
Return URL domains, and the embedded checkout
modal opens and completes inside a page on a listed http://localhost:<port>
origin.
The app marks a key that lists one with “Local development domain: remove
before launch”. Remove them once your site is live.
Webhook endpoint URLs are different: they are always public https
addresses. See Webhooks.
Manage a key
Open the key from Developers → API keys to see its values, when it was last used, and its Key actions. You can edit the name, permissions and domains at any time. A permission you remove stops working on the next request, even for tokens already issued. A permission you add applies to tokens issued after the change, so fetch a new token to use it.Regenerate keys
Regenerate keys replaces both the secret and the publishable key in one step. Use it if a secret leaks, if you lose it, or as routine rotation.-
Tap Regenerate keys and read the confirmation. Tap Regenerate.

The Regenerate keys confirmation
- The app shows the new secret and the new publishable key once, with copy buttons and Copy all. Copy them now.
- Deploy the new secret to your servers. The old secret keeps working for 24 hours, so there is no downtime on the server side.
- Update your website with the new publishable key right away. The old publishable key stops working immediately.
Revoke
Revoke key permanently disables the key: its tokens stop working, its publishable key stops working, and it cannot be reactivated. Create a new key instead. Revocation takes effect immediately, including for access tokens already issued.Key formats
Every credential is uppercase and case-sensitive. Matching is exact, so a lowercased or edited key is rejected, never corrected. The random part usesA–Z and 2–9, without 0, O, 1 and I, so keys are unambiguous when
read aloud or typed by hand.
<32> means 32 characters from that alphabet. The trailing -X is a fixed
literal, not a placeholder.
A quick sanity check before you store a key:
https://connect.laces.run. Sent to any
other Laces host they are refused with 401 partner_credential_not_accepted.