Before working with the Events API, a site needs to install the Wix Events app and create at least 1 event.
You can use the Events API to create a custom RSVP form, with the RSVP APIs (SDK | Velo), and to offer tickets, with the Tickets APIs (SDK | Velo), for events.
To use the Wix Events API, import wixEventsFrontend
from the wix-events-frontend
module:
Note: The frontend Events APIs aren't functional when previewing a site. View a published version of a site to see their complete functionality.