Events
The Events API allows you to create, retrieve, update, and delete events. Events are the main entity in the iEvents system and can include occurrences, categories, publishing channels, and notifications.
Authentication
All requests to the Events API must be authenticated using the ONLIVE.SITE authentication scheme. Please refer to the Authentication Guide for detailed instructions.
Base URL
https://openapi.onlive.site/api/v1/events
Endpoints
Create Event
Creates a new event with the provided information.
HTTP Request
POST /api/v1/events
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | The name of the event (max 255 characters) |
type | string | No | The type of the event: PHYSICAL or VIRTUAL |
shortDescription | string | No | The short description of the event in plain text |
description | string | No | The description of the event |
image | string | No | The image URL for the event |
locationName | string | No | The name of the location (max 255 characters) |
locationAddress | string | No | The address of the location |
locationLink | string | No | The link to the location |
externalLink | string | No | An external link related to the event |
templateId | string (uuid) | No | The template identifier to use for this event |
extraFields | object | No | Additional fields for the event in JSON format |
categoryIds | array of strings (uuid) | No | Array of category IDs to associate with this event |
occurrences | array of objects | No | Array of event occurrences to create with the event |
publishingChannels | array of objects | No | Array of publishing channels where the event will be published |
notifications | array of objects | No | Array of notifications to create for the event |
Occurrence Object (CreateEventOccurrenceDto)
| Field | Type | Required | Description |
|---|---|---|---|
startDate | string (date-time) | Yes | The start date and time of the event occurrence |
endDate | string (date-time) | No | The end date and time of the event occurrence |
capacity | number (min: 0) | Yes | The capacity of the event occurrence |
Publishing Channel Object
| Field | Type | Required | Description |
|---|---|---|---|
name | string | No | Name of the publishing channel |
channelType | string | No | Type of channel: WIDGET, WEBSITE, or SOCIAL |
externalId | string | No | External id provided by the channel |
publishDate | string (date-time) | No | Publish date for the channel |
Notification Object
| Field | Type | Required | Description |
|---|---|---|---|
timing | string | No | Notification timing: BEFORE or AFTER (default: BEFORE) |
timeUnit | string | No | Time unit: MINUTES, HOURS, or DAYS |
timeValue | number | No | Time value for notification timing (integer) |
channel | string | No | Notification channel: EMAIL or SMS |
notificationType | string | No | Notification type to use for notification |
Example Request Body
{
"name": "Annual Tech Conference 2025",
"description": "Join us for the biggest tech conference of the year featuring keynote speakers, workshops, and networking opportunities.",
"image": "https://example.com/images/conference-2025.jpg",
"templateId": "456e7890-e89b-12d3-a456-426614174001",
"extraFields": {
"title": "Conference 2025",
"description": "Annual tech conference"
},
"categoryIds": [
"123e4567-e89b-12d3-a456-426614174004",
"456e7890-e89b-12d3-a456-426614174005"
],
"occurrences": [
{
"startDate": "2025-12-25T10:00:00.000Z",
"endDate": "2025-12-25T18:00:00.000Z",
"capacity": 100
}
],
"publishingChannels": [
{
"name": "Widget",
"channelType": "WIDGET",
"externalId": "ext-123",
"publishDate": "2025-12-25T10:00:00.000Z"
}
],
"notifications": [
{
"timing": "BEFORE",
"timeUnit": "MINUTES",
"timeValue": 30,
"channel": "EMAIL",
"notificationType": "EVENT_REMINDER"
}
]
}
Response
Returns the created Event object.
Example Response
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Annual Tech Conference 2025",
"slug": "annual-tech-conference-2025",
"description": "Join us for the biggest tech conference of the year featuring keynote speakers, workshops, and networking opportunities.",
"image": "https://example.com/images/conference-2025.jpg",
"extraFields": {
"title": "Conference 2025",
"description": "Annual tech conference"
},
"occurrences": [
{
"id": "789e0123-e89b-12d3-a456-426614174006",
"startDate": "2025-12-25T10:00:00.000Z",
"endDate": "2025-12-25T18:00:00.000Z"
}
],
"categories": [
{
"id": "123e4567-e89b-12d3-a456-426614174004",
"name": "Technology"
}
],
"template": {
"id": "456e7890-e89b-12d3-a456-426614174001",
"name": "Conference Template"
},
"eventPublishingChannels": [
{
"id": "890e1234-e89b-12d3-a456-426614174007",
"name": "Widget",
"channelType": "SLACK",
"externalId": "ext-123",
"publishDate": "2025-12-25T10:00:00.000Z"
}
],
"notifications": [
{
"id": "901e2345-e89b-12d3-a456-426614174008",
"timing": "BEFORE",
"timeUnit": "MINUTES",
"timeValue": 30,
"channel": "EMAIL",
"notificationType": "EVENT_REMINDER"
}
],
"createdAt": "2025-10-12T10:30:00.000Z",
"updatedAt": "2025-10-12T10:30:00.000Z"
}
Get Event
Retrieves a specific event by its ID.
HTTP Request
GET /api/v1/events/{id}