> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Introduction

## Article: Introduction

## Article Link: https://dev.wix.com/docs/api-reference/business-solutions/events/event-management/events-v3/introduction.md

## Article Content:

# About the Events V3 API

With the Events API you can create and manage events on a site. This API can be used to create sites for events like concerts, sport camps, city tours, weddings, and more. 

The Events API allows you to:  

- [Create](https://dev.wix.com/docs/rest/business-solutions/events/events-v3/create-event.md) an event by defining some properties, such as location, date and time, and registration type. 
- [Clone](https://dev.wix.com/docs/rest/business-solutions/events/events-v3/clone-event.md) an existing event while changing some details or none.
- [Update](https://dev.wix.com/docs/rest/business-solutions/events/events-v3/update-event.md) an event with the latest information about the event.
- [Publish a draft event](https://dev.wix.com/docs/rest/business-solutions/events/events-v3/publish-draft-event.md) if you initially created an event as a draft.
- [Retrieve](https://dev.wix.com/docs/rest/business-solutions/events/events-v3/get-event.md) or [query](https://dev.wix.com/docs/rest/business-solutions/events/events-v3/query-events.md) events.
- Bulk [delete](https://dev.wix.com/docs/rest/business-solutions/events/events-v3/bulk-delete-events-by-filter.md) or [cancel](https://dev.wix.com/docs/rest/business-solutions/events/events-v3/bulk-cancel-events-by-filter.md) events by a filter. Save time and effort when managing event by removing or canceling multiple events at once based on specific filters.

## Before you begin

It's important to note the following before starting to code:

- A site must have [Wix Events & Tickets](https://www.wix.com/app-market/web-solution/events) installed.
- When an event is created as a ticketed event, it can't be updated to an RSVP event and vice versa.
- When there is 1 day left until the event, an automated reminder notification is sent to the guests.


## Event registration types

These registration types define what type of event customers are registering for:

- **Ticketing**: Customers register by buying tickets.  
    You can create and sell tickets, set currency, and handle taxes. For more information, see the [Ticket Definitions API](https://dev.wix.com/docs/rest/business-solutions/events/ticket-definitions-v3/introduction.md).  
- **RSVP**: Customers register by responding with an RSVP without buying tickets. Invitees can RSVP whether they're going to an event.  
    If the guest limit is reached, you can open a waitlist. Additionally, a user can set whether guests can see the other guests attending the event.
- **External**: Customers register by either buying tickets or RSVPing on an external platform.  
    You can display events on a Wix site while enabling ticket sales or RSVP management through an external platform.
- **No registration**: Customers don't register. This is for displaying events only.

## Event scheduling and recurrence

When defining an event, the event must have a date and time. The event can be either single or recurring:

- **Single event**: Happens once and can last multiple days, like a 3-day conference.
- **Recurring event**: A series of events that repeat, like a workshop that happens once a week. Once you publish the recurring event, you can manage the dates for each individual separately. 

## Event locations

The event can happen in:

- **Physical location**: The event happens in a specific venue or physical space, like a conference hall or concert venue.
- **Online**: The event happens online through a video conference.


## Defining event registration:

- All events initially have a `registration.type` of either `RSVP` or `TICKETING`, which is the same as the `registration.initialType` property. This `type` can't be updated. 
- To manage event registration externally using another platform, provide an external event registration URL in the `registration.external.url` field. After doing this, the registration type becomes `EXTERNAL`, and directs guests to the specified external URL for registration. The existing guest list, originally managed by the Events API, still exists but no longer is maintained by the API. Make sure to manage the guest list from the external platform.
- To indicate that guests don't need to register for the event, you can set the `registration.registrationDisabled` property to `true`. After doing this, the `registration.type` value becomes `NONE`.

## Use cases

- [Cancel a concert tour and refund money to customers](https://dev.wix.com/docs/rest/business-solutions/events/events-v3/sample-use-cases-and-flows.md)
- [Send reminders to guests before the event](https://dev.wix.com/docs/rest/business-solutions/events/events-v3/sample-use-cases-and-flows.md)

## Terminology

- **Event**: A gathering that an individual or a business holds for a group of people.
- **RSVP**: A response from the guest indicating whether they plan to attend the event.
- **Registration**: The process by which individuals sign up to attend an event.  
- **Attendee**: An individual who plans to, or has registered to, participate in an event.    
- **Category**: A classification assigned to events based on their purpose or theme.
- **Organizer**: The person or entity responsible for planning and hosting the event.
- **TBD**: Event locations and dates can be "to be determined" yet the event can still be created and offered.

## SDK Setup
  `@wix/events`

To use the API, install the `@wix/events` package.

#### Install the package

Follow the installation instructions for your development environment.

| Development environment | Installation method |
|--|--|
| Wix sites (editor or IDE) | Use the [package manager](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/packages/work-with-npm-packages-in-the-editor.md). |
| Wix sites (local IDE) | Run `wix install @wix/events` using the [Wix CLI](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/packages/work-with-npm-packages-with-the-wix-cli.md).|
| Blocks apps | Use the same installation method as Wix sites. |
| CLI and self-hosted apps | Run `npm install @wix/events` or `yarn add @wix/events`. |
| Headless sites and apps | Run `npm install @wix/events` or `yarn add @wix/events`. |

#### Import the package

To import the package in your code:

```js
import { wixEventsV2 } from '@wix/events'
```

#### Import types

Types for this API are accessed through the `wixEventsV2` namespace you already imported above, as `wixEventsV2.<TypeName>`, using any type name shown in these docs.
  