Go Headless

Changelog

API Reference
Articles
Platform Overview
Authentication
Work with Wix APIs
SDK Setup and Usage
Wix MCP
AI APIs

App Management
OAuth 2
App Billing
App Instance
App Permissions
Embedded Scripts
BI Event
Editor Deep Link
Site Plugins

Business Solutions
eCommerce
Stores
Bookings
CMS
Events
Restaurants
Blog
Forum
Pricing Plans
Portfolio
Benefit Programs
Donations
Gift Cards
Coupons

Assets
Media
HTTP Functions
Rich Content
Pro Gallery
Introduction
Example Flows
Gallery Object
P
Create Gallery
G
Get Gallery
P
Update Gallery
D
Delete Gallery
G
List Galleries
P
Bulk Delete Gallery Items
P
Create Gallery Item
D
Delete Gallery Item
D
Delete Gallery Items
G
Get Gallery Item
G
List Gallery Items
P
Update Gallery Item
Gallery Created
Gallery Deleted
Gallery Item Created
Gallery Item Deleted
Gallery Item Updated
Gallery Updated

CRM
Members & Contacts
Forms
Community
Communication
Loyalty Program
CRM

Business Management
AI Site-Chat
Analytics
App Installation
Async Job
Automations
Branches
Calendar
Captcha
Cookie Consent Policy
Custom Embeds
Data Extension Schema
Dashboard
FAQ App
Functions
Get Paid
Headless
Locations
Marketing
Multilingual
Notifications
Payments
Site Search
Secrets
Site Properties
Site URLs
Tags

Account Level
About Account Level APIs
Sites
Resellers
Domains
B2B Site Management
User Management

Site
Viewer

Gallery Item Created


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Notes:
  • This method registers a callback function as an event handler.
  • When developing websites or building apps with Blocks, use a Velo backend event instead of this method.
  • When building apps not using Blocks, the way you call this method differs depending on the framework you are working in:
    • When using the CLI, run the generate command to add an event extension, and then call this method within the extension code.
    • When building a self-hosted app, subscribe your app to the relevant event, and then call this method on your server.

Triggered when a media item in a specified gallery is created.

Permissions
Read Galleries
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
handlerfunction

handler(event: GalleryItemCreatedEnvelope): void | Promise<void>

Did this help?