Available Endpoints
Mutations
Create Event
Create a new event with tickets
Update Event
Modify existing event details
Cancel Event
Cancel an event and clear waiting lists
Queries
Search Events
Search events by name, description, or location
Get Events
Retrieve all active events
Get Event by ID
Fetch a specific event by ID
Get Event Availability
Check ticket availability for an event
Event Object Structure
All event endpoints work with the following event object schema:Unique identifier for the event
Name of the event
Detailed description of the event
Physical location where the event takes place
Event date and time stored as Unix timestamp in milliseconds
Price per ticket in dollars (minimum: 0)
Total number of tickets available for the event (minimum: 1)
ID of the user who created the event (event organizer)
Reference to the stored event image
Whether the event has been cancelled
Key Concepts
Event States
Events can be in one of the following states:- Active: Normal operating state, accepts ticket purchases
- Cancelled: Event has been cancelled (
is_cancelled: true), no longer visible in listings - Past: Event date has passed but event is still in the system
Ticket Availability
Ticket availability is calculated as:purchasedCount: Tickets with status “valid” or “used”activeOffers: Waiting list entries with status “offered” and non-expired offers
Validation Rules
Common Use Cases
Creating an Event
Searching for Events
Checking Availability
Error Handling
All mutations can throw the following errors:- “Event not found”: The specified event ID doesn’t exist
- “Event is no longer active”: Attempting to modify a cancelled event
- Validation errors: When input parameters don’t meet requirements
Related APIs
- Waiting List API - Join queues and manage ticket offers
- Tickets API - Purchase and manage tickets
- Storage API - Upload and manage event images