Before working with the Events frontend API, you need to install the Wix Events app and create at least one event.
You can use the Wix Event API to create a custom RSVP form and to offer tickets for your events.
To use the Wix Events API, import * as wixSiteEvents
from the @wix/site-events
module:
Note: To work with the Wix Events frontend API, you need to publish your site.