{"openapi":"3.1.0","info":{"title":"STAGENTICX Autonomous Event & Masterclass REST API","version":"1.0.0","description":"Official Programmatic REST API & Autonomous Agent Interface for STAGENTICX (oxtoox.com). Enables AI agents, LLMs, and n8n workflows to create, manage, inspect, and publish online webinars, physical summits, and high-converting masterclasses with zero manual data entry.","contact":{"name":"STAGENTICX Developer Platform","url":"https://www.stagenticx.com/docs/api","email":"api@stagenticx.com"}},"servers":[{"url":"https://www.stagenticx.com","description":"Current Environment Origin"}],"security":[{"BearerAuth":[]},{"ApiKeyAuth":[]},{"XApiKeyAuth":[]}],"paths":{"/api/v1/events":{"get":{"summary":"List Workspace Events","description":"Retrieves published, scheduled, and draft events belonging to the authenticated workspace.","operationId":"listEvents","parameters":[{"name":"limit","in":"query","description":"Maximum number of events to return (1-100, default: 20)","schema":{"type":"integer","default":20}},{"name":"status","in":"query","description":"Filter events by lifecycle status (draft, scheduled, live, ended)","schema":{"type":"string","enum":["draft","scheduled","live","ended"]}}],"responses":{"200":{"description":"List of events retrieved successfully"},"401":{"description":"Missing or invalid API key"},"429":{"description":"Rate limit exceeded (60 req/min)"}}},"post":{"summary":"Create Event (Unified)","description":"Autonomous event creation endpoint. Supports creating both online webinars and offline physical summits. Pass `status: \"draft\"` to create an un-published draft, or `status: \"scheduled\"` to publish immediately.","operationId":"createEvent","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["title"],"properties":{"title":{"type":"string","minLength":3,"maxLength":250,"description":"Event title"},"description":{"type":"string","maxLength":5000,"description":"Long-form event description"},"eventType":{"type":"string","enum":["online","offline"],"default":"online"},"templateStyle":{"type":"string","enum":["standard","advanced_masterclass","executive_consulting","developer_keynote","global_summit","boardroom_executive","offline_summit"],"default":"standard"},"colorTheme":{"type":"string","enum":["warm_gold","electric_cyan","oatmeal_indigo","midnight_mint","charcoal_orange","warm_newspaper","slate_newspaper"],"default":"warm_gold"},"status":{"type":"string","enum":["draft","scheduled"],"default":"scheduled","description":"Set to \"draft\" to create an un-published event without sending alerts or arming live cadences. Set to \"scheduled\" to publish immediately."},"date":{"type":"string","example":"2026-11-20"},"time":{"type":"string","example":"14:00"},"startTime":{"type":"string","example":"2026-11-20T14:00:00Z"},"durationMinutes":{"type":"integer","default":60},"timezone":{"type":"string","default":"UTC"},"hostName":{"type":"string","example":"Dr. Jane Smith"},"hostBrand":{"type":"string","example":"Autonomous AI Labs"},"broadcastUrl":{"type":"string","example":"https://meet.google.com/abc-defg-hij","description":"Meeting link (Google Meet, Zoom, Teams, YouTube Live)"},"replayUrl":{"type":"string","format":"uri","example":"https://www.youtube.com/watch?v=abcdef","description":"Post-event on-demand recording or replay URL."},"googleMeetUrl":{"type":"string","format":"uri","example":"https://meet.google.com/abc-defg-hij","description":"Google Meet meeting URL. Automatically sets videoProvider to google_meet."},"zoomUrl":{"type":"string","format":"uri","example":"https://zoom.us/j/9876543210","description":"Zoom meeting link. Automatically sets videoProvider to zoom."},"meetingUrl":{"type":"string","format":"uri","example":"https://meet.google.com/abc-defg-hij","description":"Meeting link alias for broadcastUrl."},"videoProvider":{"type":"string","enum":["google_meet","zoom","youtube","teams","custom"],"description":"Conferencing provider. Auto-detected from URL if omitted."},"capacity":{"type":"integer","example":100,"description":"Maximum attendee capacity / seat cap for this event (e.g. 100 seats). Enforces seat reservation limits."},"totalSeats":{"type":"integer","example":100,"description":"Alias for capacity. Displays remaining seat urgency and enforces registration caps."},"bannerImageUrl":{"type":"string","format":"uri","example":"https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=1600","description":"Hero banner or cover image URL rendered prominently on the event landing page."},"coverImageUrl":{"type":"string","format":"uri","example":"https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=1600","description":"Alias for bannerImageUrl."},"ticketType":{"type":"string","enum":["free","paid"],"default":"free","description":"Ticketing model: free or paid"},"ticketPrice":{"type":"integer","default":0,"description":"Price in cents ($10.00 = 1000). Set to 0 for free events."},"ticketPriceDollars":{"type":"number","example":10,"description":"User-friendly ticket price in dollars (e.g. 10 for $10 USD). Automatically converted to integer cents."},"price":{"type":"number","example":10,"description":"Alias for ticketPriceDollars (e.g. 10)."},"currency":{"type":"string","example":"usd","default":"usd","description":"ISO currency code (e.g. \"usd\", \"inr\", \"eur\", \"gbp\")."},"pricingDisplay":{"type":"object","description":"Pricing badges, social proof urgency, and seat countdowns","properties":{"totalSeats":{"type":"integer","example":100,"description":"Total seats capacity"},"claimedSeats":{"type":"integer","example":42,"description":"Claimed seats counter"},"salePrice":{"type":"string","example":"$10","description":"Formatted sale price display"},"strikePrice":{"type":"string","example":"$99","description":"Formatted strike/original price"},"urgencyText":{"type":"string","example":"🔥 Only 18 seats remaining"},"discountBadge":{"type":"string","example":"90% OFF"}}},"speakerBio":{"type":"string","description":"Bio of primary speaker"},"speakerPhotoUrl":{"type":"string","format":"uri","description":"Avatar image URL of primary speaker"},"speakerDetails":{"type":"object","description":"Structured presenter profile","properties":{"name":{"type":"string"},"role":{"type":"string"},"company":{"type":"string"},"bio":{"type":"string"},"avatarUrl":{"type":"string"}}},"speakers":{"type":"array","description":"Multiple speakers and panel members","items":{"type":"object","properties":{"name":{"type":"string"},"role":{"type":"string"},"company":{"type":"string"},"bio":{"type":"string"},"avatarUrl":{"type":"string"}}}},"takeaways":{"type":"array","description":"Key learning takeaways","items":{"type":"string"}},"faqs":{"type":"array","description":"Frequently asked questions","items":{"type":"object","required":["question","answer"],"properties":{"question":{"type":"string"},"answer":{"type":"string"}}}},"whoIsNotFor":{"type":"array","description":"Disqualification criteria","items":{"type":"string"}},"timedAgenda":{"type":"array","description":"Session breakdown schedule","items":{"type":"object","properties":{"time":{"type":"string"},"duration":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"}}}},"targetAudienceCards":{"type":"array","description":"Target audience highlight cards","items":{"type":"object","properties":{"icon":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"}}}},"codeSnippet":{"type":"object","description":"Code terminal window snippet for developer keynotes","properties":{"filename":{"type":"string"},"command":{"type":"string"},"code":{"type":"string"},"language":{"type":"string"}}},"techStack":{"type":"array","description":"Featured technology pills","items":{"type":"string"}},"architectureBlueprint":{"type":"object","description":"Architecture diagram steps","properties":{"title":{"type":"string"},"subtitle":{"type":"string"},"steps":{"type":"array","items":{"type":"object"}}}},"beforeAfterComparison":{"type":"object","description":"Before vs after transformation comparison table","properties":{"before":{"type":"array","items":{"type":"string"}},"after":{"type":"array","items":{"type":"string"}}}},"sponsors":{"type":"array","description":"Sponsor logos","items":{"type":"object"}},"summitSessions":{"type":"array","description":"Multi-track summit agenda","items":{"type":"object"}},"summitTracks":{"type":"array","description":"Summit tracks","items":{"type":"string"}},"summitTiers":{"type":"array","description":"Pass tier packages","items":{"type":"object"}},"customFooterText":{"type":"string","description":"Custom footer disclaimer"},"discoverEnabled":{"type":"boolean","description":"Whether to list this event on Stagenticx Discover public marketplace (default: true)","default":true},"category":{"type":"string","description":"Discover marketplace category (e.g. Technology, Business, Education, Workshops, Conferences)","example":"Technology"},"mediaBlocks":{"type":"object","description":"Custom JSONB extension block"},"venue":{"type":"object","description":"Physical venue attributes (for offline events)","properties":{"venueName":{"type":"string"},"streetAddress":{"type":"string"},"city":{"type":"string"},"doorsOpenTime":{"type":"string"},"checkInDesk":{"type":"string"},"googleMapsUrl":{"type":"string"}}}}}}}},"responses":{"201":{"description":"Event created successfully"},"400":{"description":"Validation error"},"401":{"description":"Unauthorized"},"409":{"description":"Slug collision conflict"},"429":{"description":"Rate limit exceeded"}}}},"/api/v1/events/online":{"post":{"summary":"Create Minimalist Online Webinar","description":"Specialized high-speed endpoint for creating virtual webinars.","operationId":"createOnlineEvent","responses":{"201":{"description":"Webinar created successfully"}}}},"/api/v1/events/offline":{"post":{"summary":"Create Physical In-Person Summit","description":"Specialized endpoint for creating physical in-person events with venue maps and printable QR passes.","operationId":"createOfflineEvent","responses":{"201":{"description":"Summit created successfully"}}}},"/api/v1/events/{id}":{"get":{"summary":"Inspect Event Details","description":"Retrieves complete metadata, draft status, and public URLs for a specific event.","operationId":"getEventById","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Event details"},"404":{"description":"Event not found"}}},"patch":{"summary":"Update Event / Publish Draft","description":"Updates event attributes incrementally. To publish an un-published draft, pass `{\"status\": \"scheduled\"}`.","operationId":"updateEvent","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","description":"Updated title"},"description":{"type":"string","description":"Updated description"},"status":{"type":"string","enum":["draft","scheduled","live","ended"],"description":"Publish from draft to scheduled or update lifecycle"},"date":{"type":"string","example":"2026-11-20","description":"Event date in YYYY-MM-DD"},"time":{"type":"string","example":"14:00","description":"Event time in HH:mm 24h format"},"startTime":{"type":"string","description":"ISO-8601 start timestamp"},"scheduledStartTime":{"type":"string","description":"ISO-8601 scheduled start timestamp"},"durationMinutes":{"type":"integer","description":"Duration in minutes"},"timezone":{"type":"string","example":"Asia/Kolkata","description":"IANA timezone identifier"},"broadcastUrl":{"type":"string","example":"https://meet.google.com/abc-defg-hij"},"replayUrl":{"type":"string","format":"uri","example":"https://www.youtube.com/watch?v=abcdef","description":"Post-event recording or replay URL"},"googleMeetUrl":{"type":"string","example":"https://meet.google.com/abc-defg-hij"},"zoomUrl":{"type":"string","example":"https://zoom.us/j/9876543210"},"meetingUrl":{"type":"string","example":"https://meet.google.com/abc-defg-hij"},"videoProvider":{"type":"string","enum":["google_meet","zoom","youtube","teams","custom"]},"videoTrailerUrl":{"type":"string","format":"uri","description":"Trailer video URL"},"capacity":{"type":"integer","example":100,"description":"Maximum seat capacity"},"totalSeats":{"type":"integer","example":100,"description":"Alias for capacity"},"bannerImageUrl":{"type":"string","format":"uri"},"coverImageUrl":{"type":"string","format":"uri"},"colorTheme":{"type":"string","description":"Color theme palette"},"templateStyle":{"type":"string","description":"Visual landing page archetype"},"ticketType":{"type":"string","enum":["free","paid"],"description":"Switch between free and paid ticketing tiers"},"ticketPrice":{"type":"integer","example":1000,"description":"Price in integer cents ($10.00 = 1000). Set to 0 for free events."},"ticketPriceDollars":{"type":"number","example":10,"description":"User-friendly ticket price in dollars (e.g. 10 for $10 USD). Automatically converted to integer cents."},"price":{"type":"number","example":10,"description":"Alias for ticketPriceDollars (e.g. 10)."},"currency":{"type":"string","example":"usd","description":"ISO currency code (e.g. \"usd\", \"inr\", \"eur\", \"gbp\")."},"pricingDisplay":{"type":"object","description":"Pricing display, sale badges, and urgency text","properties":{"totalSeats":{"type":"integer"},"claimedSeats":{"type":"integer"},"salePrice":{"type":"string","example":"$10"},"strikePrice":{"type":"string","example":"$99"},"urgencyText":{"type":"string","example":"🔥 Only 18 seats remaining"},"discountBadge":{"type":"string","example":"90% OFF"}}},"hostName":{"type":"string","description":"Primary host/speaker name"},"hostBrand":{"type":"string","description":"Host organization or brand"},"speakerBio":{"type":"string","description":"Speaker biography"},"speakerPhotoUrl":{"type":"string","format":"uri","description":"Speaker avatar image URL"},"speakerDetails":{"type":"object","properties":{"name":{"type":"string"},"role":{"type":"string"},"company":{"type":"string"},"bio":{"type":"string"},"avatarUrl":{"type":"string"}}},"speakers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"role":{"type":"string"},"company":{"type":"string"},"bio":{"type":"string"},"avatarUrl":{"type":"string"}}}},"takeaways":{"type":"array","items":{"type":"string"},"description":"Key takeaways and curriculum bullet points"},"faqs":{"type":"array","items":{"type":"object","required":["question","answer"],"properties":{"question":{"type":"string"},"answer":{"type":"string"}}}},"whoIsNotFor":{"type":"array","items":{"type":"string"},"description":"Target audience exclusion criteria"},"timedAgenda":{"type":"array","items":{"type":"object","properties":{"time":{"type":"string"},"duration":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"}}}},"targetAudienceCards":{"type":"array","items":{"type":"object","properties":{"icon":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"}}}},"venue":{"type":"object","description":"Physical venue attributes for in-person summits","properties":{"venueName":{"type":"string"},"streetAddress":{"type":"string"},"city":{"type":"string"},"doorsOpenTime":{"type":"string"},"checkInDesk":{"type":"string"},"googleMapsUrl":{"type":"string"},"parkingTransitNotes":{"type":"string"},"helpdeskContact":{"type":"string"}}},"codeSnippet":{"type":"object","description":"Terminal code window snippet"},"techStack":{"type":"array","items":{"type":"string"}},"architectureBlueprint":{"type":"object"},"beforeAfterComparison":{"type":"object"},"sponsors":{"type":"array","items":{"type":"object"}},"summitSessions":{"type":"array","items":{"type":"object"}},"summitTracks":{"type":"array","items":{"type":"string"}},"summitTiers":{"type":"array","items":{"type":"object"}},"customFooterText":{"type":"string"},"discoverEnabled":{"type":"boolean","description":"Update discoverability listing on Stagenticx Discover"},"category":{"type":"string","description":"Update Discover category"},"mediaBlocks":{"type":"object","description":"Arbitrary JSONB extension data"}}}}}},"responses":{"200":{"description":"Event updated/published successfully"},"404":{"description":"Event not found"}}},"delete":{"summary":"Delete Event","description":"Cancels cadence timers and permanently deletes the event.","operationId":"deleteEvent","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Event deleted successfully"},"404":{"description":"Event not found"}}}},"/api/v1/events/{id}/whatsapp/campaigns":{"get":{"summary":"List WhatsApp Campaigns","description":"Retrieves all broadcast campaigns and delivery progress for an event.","operationId":"listWhatsAppCampaigns","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of campaigns retrieved successfully"}}},"post":{"summary":"Create WhatsApp Announcement / Reminder","description":"Creates, resolves eligible opted-in recipients from registrations, and enqueues individual 1-to-1 WhatsApp messages to the durable outbox queue.","operationId":"createWhatsAppCampaign","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["title","type","messageBody"],"properties":{"title":{"type":"string","description":"Internal campaign title"},"type":{"type":"string","enum":["instant_announcement","scheduled_reminder","post_event_followup","schedule_change"]},"audienceFilter":{"type":"string","enum":["all_eligible","confirmed_payment_only","specific_ticket_types","date_range"],"default":"all_eligible"},"messageBody":{"type":"string","description":"Personalized message body supporting {{first_name}}, {{event_title}}, {{join_link}}, etc."},"scheduledFor":{"type":"string","format":"date-time","description":"Optional future ISO datetime for scheduled release"}}}}}},"responses":{"201":{"description":"Campaign created and queued for delivery"},"400":{"description":"Validation error"}}}},"/api/v1/events/{id}/whatsapp/analytics":{"get":{"summary":"Get WhatsApp Delivery Analytics","description":"Returns real-time aggregated delivery rates, read receipts, opt-outs, and recent delivery failures.","operationId":"getWhatsAppAnalytics","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Delivery analytics summary retrieved"}}}},"/api/v1/discover/events":{"get":{"summary":"Query Public Discover Events","description":"Queries public, active, discoverable events with search, category tabs, format toggle, date presets, and deterministic pagination.","operationId":"getDiscoverEvents","security":[],"parameters":[{"name":"q","in":"query","schema":{"type":"string"},"description":"Search term for title, description, or host"},{"name":"category","in":"query","schema":{"type":"string"},"description":"Category filter (e.g. Technology, Business, Education)"},{"name":"format","in":"query","schema":{"type":"string","enum":["all","online","offline"]},"description":"Event format"},{"name":"date_preset","in":"query","schema":{"type":"string","enum":["all","today","tomorrow","this_week","this_weekend","this_month"]},"description":"Date preset filter"},{"name":"city","in":"query","schema":{"type":"string"},"description":"City filter for in-person events"},{"name":"sort","in":"query","schema":{"type":"string","enum":["recommended","soonest","recently_published"]},"description":"Sort heuristic"},{"name":"page","in":"query","schema":{"type":"integer","default":1},"description":"Page number"},{"name":"page_size","in":"query","schema":{"type":"integer","default":12},"description":"Items per page (max 50)"},{"name":"tz","in":"query","schema":{"type":"string"},"description":"Visitor local IANA timezone for day boundary calculation"}],"responses":{"200":{"description":"Paginated list of discoverable events"}}}},"/api/v1/discover/events/{slug}":{"get":{"summary":"Discover Event Detail & Redirect","description":"Retrieves public discovery metadata for an event or redirects (307) browser requests to the canonical landing page.","operationId":"getDiscoverEventBySlug","security":[],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Structured discovery metadata"},"307":{"description":"Redirect to canonical event landing page"},"404":{"description":"Event not found or not discoverable"}}}},"/api/v1/discover/categories":{"get":{"summary":"List Discover Categories","description":"Returns available event categories with aggregated counts of active upcoming events.","operationId":"getDiscoverCategories","security":[],"responses":{"200":{"description":"List of categories with counts"}}}},"/api/v1/creator/events/{id}/discovery-settings":{"get":{"summary":"Get Event Discovery Settings","description":"Inspects live discoverability status, eligibility rules, and category classification for an event.","operationId":"getCreatorDiscoverySettings","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Current discovery settings and eligibility flags"},"401":{"description":"Unauthorized"},"404":{"description":"Event not found"}}},"put":{"summary":"Update Event Discovery Settings","description":"Updates discoverability opt-in/opt-out and category classification.","operationId":"updateCreatorDiscoverySettings","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"discoverEnabled":{"type":"boolean","description":"Enable or disable public listing on Stagenticx Discover"},"category":{"type":"string","description":"Primary event category"}}}}}},"responses":{"200":{"description":"Discovery settings updated"},"401":{"description":"Unauthorized"},"404":{"description":"Event not found"}}}},"/api/v1/discover/click":{"post":{"summary":"Record Discovery Outbound Click","description":"Records privacy-safe outbound click telemetry from Stagenticx Discover cards.","operationId":"recordDiscoverClick","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["webinarId"],"properties":{"webinarId":{"type":"string"},"workspaceId":{"type":"string"},"placement":{"type":"string","default":"card_cta"},"source":{"type":"string","default":"discover"},"referrer":{"type":"string"}}}}}},"responses":{"200":{"description":"Click recorded"}}}}},"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Key (stx_live_...)","description":"Workspace Live API Key generated in STAGENTICX Planner Key Studio (/settings/api)"},"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization","description":"Bearer token or bare API key passed in Authorization header"},"XApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key passed in x-api-key header"}}}}