events:write permission, your server can create an event in your
organization, add paid ticket types, and publish it, without opening the Laces
app. You can also point the event at your own registration site.
Turn it on
events:write is off by default and is never available to a publishable
key. An owner or admin turns it on for one API key in the Laces app (see
Getting your API keys). A
key that just gained the scope needs a new token: fetch one from the
token endpoint. See Scopes.
The write routes accept a bearer token only. A publishable key gets
403 credential_not_permitted.
The flow
1
Create the draft
POST /events with an Idempotency-Key
header. The event is created as a draft: it cannot be bought yet.201 response carries the new event_id, its short_code,
status: "draft" and ticket_types: [].2
Add ticket types
POST /events/{eventId}/ticket-types,
once per ticket, again with an Idempotency-Key. Tickets are paid only
(see Paid tickets only).3
Publish
POST /events/{eventId}/publish opens
registration. It needs no body and no Idempotency-Key: publishing an
event that is already open is a 200 that changes nothing.409 nothing_to_sell means the event has no ticket type to sell yet.event_id from step 1. Orders are
refused with 403 payments_disabled until your organization is cleared to take
payments; publishing does not check that, and the event response carries
payments_enabled so you can.
Which events you can change
A key can add ticket types to, publish and update only events it created. Any other event, including one created in the app or by another key, answers404 not_found. Regenerating a key’s secret keeps its ownership.
Selling is different: any active key in the organization with orders:write or
checkout_sessions:write can sell any of its events, as before.
Dates and time zones
timezoneis required and must be an IANA zone name such asAfrica/KampalaorEurope/London. Abbreviations (EAT) and bare offsets (+03:00) are refused with400 invalid_timezone. There is no default.starts_atandends_atare ISO 8601 strings. A number (epoch time) is refused.- With an offset or
Z(2027-03-27T07:00:00+03:00,2027-03-27T04:00:00Z) the value is that exact instant. - Without an offset (
2027-03-27T07:00:00) the value is wall-clock time intimezone, correct across daylight-saving changes. A wall-clock time that does not exist or occurs twice on a clock-change night resolves the way the Laces app does; send an offset if you need to be exact.
- With an offset or
starts_atmay be at most 5 minutes in the past and at most 3 years ahead (400 invalid_starts_at).ends_atmay not be beforestarts_atand may be at most 31 days after it (400 invalid_ends_at).- Timestamps in responses are ISO 8601 in UTC.
starts_at unless the organizer changes it in the app.
The event’s currency is your organization’s currency; you cannot set it.
Paid tickets only
price_minor is a whole number of minor units of the organization’s currency,
above zero.
price_minor: 0is400 free_ticket_not_supported. Create free events in the Laces app.- A price below the minimum Laces can collect is
422 price_below_minimum, witherror_details.minimum_price_minoranderror_details.currency. - Laces sets
visibilityto public, shows remaining places, and adds no kit. You cannot set those from the API. - An event can hold at most 20 ticket types, counting any the organizer
added in the app (
409 ticket_type_limit_reached).
Idempotency and retries
POST /events and POST /events/{eventId}/ticket-types require an
Idempotency-Key header: 1 to 255 visible ASCII characters (a UUID is ideal).
Missing is 400 idempotency_key_required; anything else is
400 invalid_idempotency_key.
- Keys are scoped to your API client and to the route, so the same string on create and on ticket types never collides.
- Same key and same body again:
200, “Already created (idempotent replay)”, and the stored response. Nothing is created twice. This holds even when the first request used up the last draft or ticket-type place: the retry gets the stored result, notdraft_limit_reachedorticket_type_limit_reached. - If the event was written but Laces failed to build the response, the retry with the same key also replays the stored event. It is never created a second time.
- A new key at a limit still gets
409 draft_limit_reachedor409 ticket_type_limit_reached. - Same key with a different body:
422 idempotency_key_reuse. On ticket types theeventIdis part of the body, so the same key for a different event is also422. - Same key while the first call is running:
409 idempotency_in_progress. Retry shortly with the same key. - A request that fails validation (
400) does not use up its key: fix the body and send the same key again.
Limits
Field limits:
name 1 to 200 characters; venue up to 300 (blank counts as
not sent); description up to 10,000; waiver_text up to 20,000 (any text
turns the waiver on); partner_reference up to 128; ticket name 1 to 120;
ticket description up to 2,000.
Bodies are strict
Every field is a top-level string, number ornull. No nested objects or
arrays.
- A key Laces does not accept is
400 unknown_field. - A value of the wrong type is
400 validation_failed. Nothing is coerced:"price_minor": "5000"is refused.
error_details.field. null clears
registration_url; for any other optional field, leave it out instead of
sending null.
Cover images
cover_url is an image link, not an upload.
- Laces does not copy, proxy or host your image. Visitors’ browsers load it from your server, so it must keep working.
- Use a stable
httpsURL you control, with no credentials in it. About 1600 x 900, landscape, as JPEG, PNG or WebP. - A new image needs a new URL. Laces derives the event page’s colours from the image once per URL; changing the file behind the same URL does not refresh them.
- If the link redirects, takes more than 3 seconds to answer, is over 5 MB or over 40 megapixels, or is not JPEG, PNG or WebP, the image can still display in a browser, but the event gets no colour theme and uses the standard Laces accent.
- Link shorteners and shared hosts are refused with
400 invalid_cover_url(the same shorteners and shared sites listed under registration domains). A Laces storage link is accepted. - Social previews and share graphics for an API-created event use the Laces stock cover, not your image.
Registration domains
By default buyers register on laces.run. You can send them to your own site instead, for events you create through the API.- An owner or admin lists your site’s origin under Registration domains
on the key in the Laces app, for example
https://tickets.example.com. - You send
registration_urlonPOST /events, or later withPATCH /events/{eventId}.
registration_url must be https and its origin (scheme, host and
port) must be exactly one of the key’s registration domains, or the answer is
400 invalid_registration_url. The default port matches (:443 is the same as
none); any other port must be listed with that port. A path, query and fragment
are kept as you send them. PATCH with { "registration_url": null } returns
the event to Laces registration.
Always refused, even if listed: Laces hosts (laces.run and every
subdomain, docs.laces.run, Laces storage hosts), URL shorteners such as
bit.ly, and shared sites where the path rather than the host names the owner
(for example Google Sites and Forms, Linktree, WhatsApp and Telegram links,
Facebook, Instagram, X, GitHub). A leading www. does not get around it. The
check runs again every time you set a URL.
What changes on laces.run for an event with a registration_url:
- The event page shows
Register on {host}instead of Laces checkout, with “You’ll leave laces.run to register and pay.” - The event leaves Laces discovery (the events grid, listings and sitemap). It stays on your organization’s page, and the link and short code keep working.
- Anonymous Laces checkout for it is refused with
409 registration_external, whoseerror_details.registration_urlis your URL. - Owners and admins get a notification when a URL is set, changed or cleared
by a
PATCHon the event, and when it is cleared automatically. Sending aregistration_urlwhen you create the event sends no notification. The organizer can switch the event back to Laces registration in the app at any time. If an owner removes the origin from your key or revokes the key, the URLs it set are cleared automatically.
This is routing, not security. The
409 registration_external refusal
stops an anonymous buyer from competing with your site. It does not stop any
other active key in the organization from selling the event through
orders or
checkout sessions, and a
publishable key can still start a checkout session. Do not rely on it to keep
buyers off Laces.Reading your own events
GET /events/{eventId} also returns your key’s
own draft events, when the token holds both events:read and
events:write. GET /events never lists
drafts. Every event carries registration_url, registration_mode
(laces or external) and created_via_api.
Errors
The new error codes carry their detail inerror_details, not details. See
Errors.