Publishable keys and Browser API
Use publishable keys in public organizer websites.
Create a publishable key in WODira
Section titled “Create a publishable key in WODira”Use publishable keys for frontend code. They can be exposed in the browser because WODira validates the Origin and limits these keys to browser endpoints.
-
In WODira, go to Organization profile → API.
-
In New key, select Publishable key (frontend).
-
Add a recognizable name, for example
official website production. -
In Allowed origins, add one domain per line:
https://organizer.comhttps://www.organizer.com -
For local development, you can use
http://localhost:4200or the port of your local app. Do not usehttp://in production. -
Optionally set an expiration date.
-
Click Create key and copy the
wpk_live_...key immediately.
Store it in your frontend public configuration, for example build-time environment variables. It does not grant access to backend endpoints or private organization data.
Security checks
Section titled “Security checks”- The key starts with
wpk_live_.... - The key is not revoked or expired.
- The
Originheader is required. - The origin must be in
allowedOrigins. successUrlandcancelUrlmust belong to an allowed origin.- Only public, published events and categories are exposed.
Endpoints
Section titled “Endpoints”| Method | Path | SDK method |
|---|---|---|
POST | /events/search | searchEvents |
GET | /events/:eventId | getEvent |
GET | /events/:eventId/pricing-cards | getPricingCards |
POST | /checkout/registration/summary | getRegistrationSummary |
POST | /checkout/registration/session | createRegistrationCheckoutSession |