Events API
The Events API lets you create, manage, and query events including registrations, attendee check-in, ticketing, and virtual meeting integrations. All endpoints require a Bearer token — see API Authentication.
Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/v1/events | List all events (paginated) |
| POST | /api/v1/events | Create a new event |
| GET | /api/v1/events/{id} | Get a single event |
| PUT | /api/v1/events/{id} | Update an event |
| DELETE | /api/v1/events/{id} | Cancel/delete an event |
| GET | /api/v1/events/{id}/registrations | List registrations for an event |
| POST | /api/v1/events/{id}/register | Register a member for an event |
| DELETE | /api/v1/events/{id}/registrations/{reg_id} | Cancel a registration |
| POST | /api/v1/events/{id}/check-in | Check in attendee via QR code or ID |
| GET | /api/v1/events/{id}/tickets | List ticket types for an event |
| POST | /api/v1/events/{id}/tickets | Create a ticket type |
Event Object Schema
| Field | Type | Description |
|---|---|---|
id | string | Unique event ID (read-only) |
title | string | Required. Event name |
description | string | Rich-text description (HTML allowed) |
type | string | in-person, virtual, or hybrid |
status | string | draft, published, cancelled, completed |
starts_at | datetime | Required. ISO 8601 start datetime |
ends_at | datetime | Required. ISO 8601 end datetime |
timezone | string | IANA timezone (e.g. Asia/Hong_Kong) |
venue_name | string | Physical venue name (for in-person/hybrid) |
venue_address | string | Full venue address |
virtual_url | string | Zoom/Teams meeting URL (for virtual/hybrid) |
capacity | integer | Maximum attendees (null = unlimited) |
registration_deadline | datetime | Last date/time for registrations |
is_paid | boolean | Whether tickets require payment |
cover_image_url | string | URL of event banner image (read-only) |
registrations_count | integer | Current registration count (read-only) |
Creating an Event
bash — create event
curl -X POST https://yourdomain.ams.hkus1.s4s.host/api/v1/events \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{ "title": "Annual Leadership Summit 2026", "description": "Our flagship annual conference...", "type": "hybrid", "starts_at": "2026-09-15T09:00:00Z", "ends_at": "2026-09-17T17:00:00Z", "timezone": "Asia/Hong_Kong", "venue_name": "Hong Kong Convention Centre", "venue_address": "1 Expo Drive, Wan Chai, Hong Kong", "virtual_url": "https://zoom.us/j/123456789", "capacity": 500, "registration_deadline": "2026-09-10T23:59:59Z", "status": "published", "is_paid": true }'
Managing Registrations
Register a member for an event and optionally specify a ticket type:
bash — register member
curl -X POST https://yourdomain.ams.hkus1.s4s.host/api/v1/events/evt_01HXYZ/register \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{ "member_id": "mem_01HXYZ", "ticket_type_id": "tkt_vip", "quantity": 1, "dietary_requirements": "vegetarian", "send_confirmation": true }'
Check-In via QR Code
Each registration generates a unique QR code. At the event entrance, scan the QR code to check in the attendee. The QR code value is the registration ID (reg_XXXXX).
bash — check in attendee
curl -X POST https://yourdomain.ams.hkus1.s4s.host/api/v1/events/evt_01HXYZ/check-in \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{ "registration_id": "reg_01HABC", "checked_in_by": "staff_01HDEF" }' # Response { "success": true, "member_name": "Sarah Ahmed", "ticket_type": "VIP", "checked_in_at": "2026-09-15T08:47:23Z" }
Event Types
- in-person — Physical venue only. Venue name and address are required.
- virtual — Online only. A
virtual_url(Zoom, Teams, etc.) is required. Can integrate with Zoom integration to auto-create meetings. - hybrid — Both in-person and virtual attendance options. Requires both venue details and a virtual URL.
Ticketing API
For paid events, create multiple ticket types (e.g. Early Bird, Standard, VIP) with different prices and capacities:
bash — create ticket type
curl -X POST https://yourdomain.ams.hkus1.s4s.host/api/v1/events/evt_01HXYZ/tickets \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{ "name": "Early Bird", "price": 500, "currency": "HKD", "capacity": 100, "sale_starts_at": "2026-06-01T00:00:00Z", "sale_ends_at": "2026-07-31T23:59:59Z", "member_only": true }'
Webhooks for Event Actions
Subscribe to event-related webhook events to receive real-time notifications in your systems:
event.created— Fired when a new event is createdevent.updated— Fired when event details changeevent.cancelled— Fired when an event is cancelledregistration.created— Fired when a member registersregistration.cancelled— Fired when a registration is cancelledattendee.checked_in— Fired on successful check-in
See the Webhooks documentation for setup instructions and payload format.