Events are the core resource in TktPlz. There are four event types —Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Sumitbose5/tktplz/llms.txt
Use this file to discover all available pages before exploring further.
Seating (assigned seats in a hall/screen), Online (virtual events with an access link), Open (ground or festival events with zones), and Registration (hackathons and competitions with form-based registration). Each type is created through its own endpoint with type-specific fields.
Read endpoints
GET /api/event/get-all-events
Returns all events withverificationStatus = "approved" and isCompleted = false. Seating events are enriched with hall city and state. Each event includes the organiser’s name via a left join.
GET /api/event/get-event/:eventId
Fetches a single event by its UUID. ForSeating events, the associated hall and screen objects are included. Pass an optional userId query parameter to receive an isLiked boolean.
UUID of the event.
UUID of the authenticated user. When provided, the response includes
isLiked.GET /api/event/get-events/:organiserId
Returns all events for a specific organiser. Seating events are enriched with hallcity, state, and areaName.
UUID of the organiser.
GET /api/event/get-events-type/:subtype
Returns all approved, incomplete events filtered bysub_type (e.g. movie, concert, hackathon).
The
sub_type value to filter by.GET /api/event/ticket-details/:eventId
Returns the ticket pricing configuration for an event. If a flat price is set,price is a single object from ticket_prices. If categorized pricing is used, categories is an array.
UUID of the event.
GET /api/event/get-price-details/:eventId
Returns full pricing details alongside the event record. Triesticket_prices first; falls back to ticket_categories.
UUID of the event.
GET /api/event/get-booked-seats/:eventId
Returns seat IDs that haveCONFIRMED tickets for a Seating event.
UUID of the Seating event.
Create endpoints
Create endpoints are restricted to organiser accounts. Include the
tktplz_cookie cookie from an organiser session.POST /api/event/create/Seating
Creates a seating event tied to a specific hall and screen. The system checks for time-slot conflicts on the selected screen (with a 1-hour buffer between events).Name of the event.
UUID of the organiser creating the event.
Must be
"Seating".Sub-category, e.g.
"movie", "concert".UUID of the hall.
UUID of the screen within the hall.
ISO 8601 datetime string for the event start.
ISO 8601 datetime string for the event end.
Whether the event requires payment.
"flat" or "categorized". Required when isPaid is true.Price per seat when
pricingOption is "flat".Array of
{ type, numberOfTickets, price } objects when pricingOption is "categorized".One of
"until_sold", "before_start", or "custom_time".Minutes before event start to close booking. Required when
bookingCutoffType is "before_start".ISO 8601 datetime string. Required when
bookingCutoffType is "custom_time".Event description.
Genre, e.g.
"action", "drama".Language of the event. Defaults to
"Hindi".Rating code:
"U", "UA", or "A".Minimum age required.
Whether tickets can be cancelled for a refund.
POST /api/event/create/Online
Creates an online event with a platform link.Name of the event.
UUID of the organiser.
Must be
"Online".Sub-category, e.g.
"webinar", "workshop".ISO 8601 datetime for event start.
ISO 8601 datetime for event end.
Maximum number of attendees.
Platform name, e.g.
"Zoom", "Google Meet"."true" or "false" (string, not boolean for this endpoint)."flat" or "categorized".Flat ticket price.
Array of
{ type, numberOfTickets, price }."until_sold", "before_start", or "custom_time".POST /api/event/create/Open
Creates an open-ground event (concerts, festivals) with optional zones.Name of the event.
UUID of the organiser.
Must be
"Open".Sub-category, e.g.
"concert", "festival".Venue name or address.
City name.
State name.
Area or neighbourhood.
ISO 8601 datetime.
ISO 8601 datetime.
Capacity.
Whether tickets are paid.
"flat" or "categorized".Array of
{ type, numberOfTickets, price }."until_sold", "before_start", or "custom_time".POST /api/event/create/Registration
Creates a registration-based event (hackathons, college fests) with a dynamic form schema stored in MongoDB.Name of the event.
UUID of the organiser.
Must be
"Registration".Sub-category, e.g.
"hackathon", "fest"."solo" or "team".Minimum team size (for team events).
Maximum team size (for team events).
Array of form field definitions. Each object has
name, type, required, and optional options.Text describing eligibility requirements.
ISO 8601 datetime.
ISO 8601 datetime.
Capacity.
Whether registration is paid.
"flat" or "categorized".Flat registration fee.
"until_sold", "before_start", or "custom_time".Update endpoints
POST /api/event/upload-poster
Uploads a poster image to Cloudinary. Send asmultipart/form-data with a field named poster. Returns the full Cloudinary result object.
POST /api/event/update-details
Updates editable fields on an event. Fields such asid, hallID, screenID, verificationStatus, isPaid, and posterUrl are excluded from updates.
UUID of the event to update.
Object containing the fields to update. Date fields (
scheduleStart, scheduleEnd, bookingCutoffTimestamp, bookingCloseTime) must be ISO 8601 strings.Delete endpoint
POST /api/event/delete-event
Deletes an event. ForSeating events, the associated screen is freed (booked timestamps cleared, status set to "available"). For Registration events, the MongoDB form schema is also deleted.
UUID of the event to delete.
