create_event
Create a new event for selling tickets to an event.
Use this tool when a merchant wants to publish an event that sells tickets (conference, gala, workshop, class, etc.). An event has event details (at minimum a name; usually a start date/time and location) and one or more ticket groups, each containing one or more ticket types with a price (in the smallest currency unit, e.g. cents).
Examples:
Single free RSVP: one ticket group "General" with one $0 ticket "Admission".
Paid tiers: ticket types "Early Bird" 5000, "Standard" 7500, "VIP" 15000.
Capacity: set a ticket type quantity to cap how many can be sold.
Prices are integers in the smallest currency unit. Dates are ISO 8601.
For the page's design and customer-facing labels (including translations), set themeOverrides and hostedLayoutType; list_theme_properties lists what can be set. Set themeId (from list_themes) to use a theme.
After creation, return:
data.id: the event IDdata.name: the internal event namedata.hostedUrl: the live event URLdata.dashboardUrl: the dashboard edit URL
If the user is building or editing a website, call add_to_website next with pageId set to data.id and pageType: "event", and put the returned code in the site. Do not wait for the user to ask for this step.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tax | No | ||
| fees | No | ||
| name | Yes | Internal page name used in your dashboard and API responses. | |
| slug | No | Page URL slug. For events and forms the slug defaults to the slugified version of your `title`. For checkouts the slug defaults to the slugified version of your `productData.title`. | |
| title | No | ||
| fields | No | Custom checkout fields to create. When provided, at least one field must be an `email` element with `type` `email` and `required` `true`. When omitted, the page gets Name and Email address fields, plus a required billing Address on checkout and event pages. Forms get Name and Email address only. | |
| locale | No | ||
| themeId | No | The theme the page uses: one of your themes or a built-in one (see List themes). `themeOverrides` apply on top. Leave it out to use your store's default theme. | |
| imageIds | No | ||
| redirect | No | If enabled, redirects the customer to the specified URL before the page loads. | |
| testmode | No | Puts the page in test mode. While it is on, every purchase on this page is a test purchase: no money is taken, the buyer still receives everything the page delivers, and the records are created with `livemode: false`. Turn it off to take real payments again. | |
| description | No | ||
| funnelSteps | No | Ordered funnel configuration for this page. Supports intermediate checkout steps, one-click upsells, and confirmation behavior. | |
| googleIndex | No | Allow Google to index this page for search results. Defaults to `true`. | |
| notifyEmail | No | Email addresses to send notifications to. Supports comma separated emails. | |
| redirectUrl | No | URL to redirect to after payment. Applies if `afterPaymentAction` is `redirect`. | |
| eventDetails | No | ||
| ticketGroups | No | ||
| trackingCodes | No | Custom tracking scripts to include on the page. Supports HTML `<script>` tags. | |
| paymentMethods | No | ||
| paymentOptions | No | ||
| redirectPageId | No | ID of the page (checkout, event or form) to redirect to after payment. Applies when `afterPaymentAction` is `checkout`. | |
| themeOverrides | No | The page's design and labels, set on top of its theme and nested by theme property path: `tokens.colorPrimary` is sent as `{ "tokens": { "colorPrimary": { "light": "#1A73E8" } } }`. Keys you leave out keep their current value, and `null` resets a property, or everything under a key, to the theme default. Call `list_theme_properties` for the supported properties, their value formats and, where a property has a fixed one, its default. | |
| invoiceSettings | No | ||
| redirectUrlPath | No | Additional path parameters appended to the `redirectUrl`. Applies if `afterPaymentAction` is `redirect` and `redirectUrl` is set. [Learn more](https://checkoutpage.com/docs/articles/add-field-and-variant-data-to-redirect-url) | |
| hostedLayoutType | No | ||
| redirectUrlQuery | No | Query parameters for the `redirectUrl`. Applies if `afterPaymentAction` is `redirect` and `redirectUrl` is set. [Learn more](https://checkoutpage.com/docs/articles/add-field-and-variant-data-to-redirect-url) | |
| allowDynamicLabel | No | ||
| allowDynamicPrice | No | ||
| allowDynamicTitle | No | Allow page title to be overridden via URL query parameters. | |
| savePaymentMethod | No | ||
| afterPaymentAction | No | Behavior after checkout. `confirmation` shows the confirmation page. `checkout` redirects to `redirectPageId`. `redirect` sends the customer to `redirectUrl`. Defaults to `confirmation`. | |
| checkoutAbandonment | No | ||
| showCouponCodeField | No | ||
| sendEmailConfirmation | No | Send an email confirmation to the customer. Defaults to `true`. | |
| redirectUrlInsideEmbed | No | If the page is embedded, redirect the customer within the embed instead of redirecting the main browser window. Defaults to `false`. | |
| allowDynamicDescription | No | Allow page description to be overridden via URL query parameters. | |
| allowDynamicRedirectUrl | No | ||
| sendPaymentNotification | No | Send payment/submission notification emails to the store owner. | |
| showCouponCodeFieldType | No | ||
| closePopupOnClickOutside | No | Whether a popup embed closes when clicking outside the container. Defaults to `false`. | |
| confirmationEmailMessage | No | Custom confirmation email message. Accepts HTML or plain text. | |
| confirmationEmailSubject | No | Custom confirmation email subject. | |
| confirmationCheckoutTitle | No | Confirmation title. | |
| confirmationEmailShowLogo | No | Show store logo in confirmation email. | |
| showConfirmationEventName | No | ||
| customizeEmailConfirmation | No | Use a custom email confirmation template. If enabled, provide `confirmationEmailSubject` and `confirmationEmailMessage`. | |
| confirmationCheckoutMessage | No | Confirmation message. Accepts HTML or plaintext. | |
| showConfirmationEventAddOns | No | ||
| allowDynamicPreselectedPrice | No | ||
| showConfirmationEventTickets | No | ||
| customizeCheckoutConfirmation | No | If set to true `confirmationCheckoutMessage` and `confirmationCheckoutTitle` will be displayed on the confirmation page. Defaults to `false`. | |
| showConfirmationAddToCalendar | No | ||
| showConfirmationEventDateTime | No | ||
| showConfirmationEventLocation | No | ||
| confirmationEmailShowStoreName | No | Show store name in confirmation email. | |
| allowDynamicDiscountedFromPrice | No | ||
| showConfirmationEventMeetingLink | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |