Skip to main content

Event Categories

The Event Categories API allows you to create, retrieve, update, and delete categories for organizing and classifying events. Categories help users discover and filter events based on their interests.

Authentication

All requests to the Event Categories 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/event-categories

Endpoints


Create Category

Creates a new event category.

HTTP Request

POST /api/v1/event-categories

Request Body

FieldTypeRequiredDescription
namestringYesThe name of the category (max 255 characters)
descriptionstringNoThe description of the category

Example Request Body

{
"name": "Technology",
"description": "Technology-related events and conferences"
}

Response

Returns the created EventCategory object.

Example Response

{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Technology",
"slug": "technology",
"description": "Technology-related events and conferences",
"createdAt": "2025-10-13T10:30:00.000Z",
"updatedAt": "2025-10-13T10:30:00.000Z"
}

Get Category

Retrieves a specific event category by its ID.

HTTP Request

GET /api/v1/event-categories/{id}

Path Parameters

ParameterTypeRequiredDescription
idstring (uuid)YesThe unique identifier of the category

Query Parameters

ParameterTypeRequiredDescription
withTrashedbooleanNoInclude trashed categories

Response

Returns the EventCategory object.

Example Response

{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Technology",
"slug": "technology",
"description": "Technology-related events and conferences",
"createdAt": "2025-10-13T10:30:00.000Z",
"updatedAt": "2025-10-13T10:30:00.000Z"
}

Update Category

Updates an existing event category.

HTTP Request

PUT /api/v1/event-categories/{id}

Path Parameters

ParameterTypeRequiredDescription
idstring (uuid)YesThe unique identifier of the category to update

Request Body

All fields are optional. Only the fields you want to update need to be included.

FieldTypeRequiredDescription
namestringNoThe name of the category (max 255 characters)
descriptionstringNoThe description of the category

Example Request Body

{
"name": "Tech & Innovation",
"description": "Technology and innovation-related events, conferences, and workshops"
}

Response

Returns the updated EventCategory object.

Example Response

{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Tech & Innovation",
"slug": "tech-innovation",
"description": "Technology and innovation-related events, conferences, and workshops",
"createdAt": "2025-10-13T10:30:00.000Z",
"updatedAt": "2025-10-13T14:00:00.000Z"
}

Search Categories

Returns a paginated list of event categories with optional filtering and sorting.

HTTP Request

GET /api/v1/event-categories

Query Parameters

ParameterTypeRequiredDescription
limitnumberNoMaximum number of items to return (default: 10, min: 1)
pagenumberNoPage number (starts at 1, default: 1, min: 1)
sortstringNoField name and direction to sort results by (default: "createdAt DESC", example: "createdAt DESC")
searchstringNoSearch term to filter categories by name
timeRangestringNoTime range filter for events: upcoming, past, or all
channelTypestringNoFilter events by publishing channel type: WEBSITE, MOBILE_APP, SOCIAL_MEDIA, EMAIL, OTHER
channelExternalIdstringNoFilter events by publishing channel external ID
withTrashedbooleanNoInclude soft-deleted categories in the results

Example Request

GET /api/v1/event-categories?limit=20&page=1&sort=name ASC&search=tech

Response

Returns a paginated list of EventCategory objects.

Example Response

{
"count": 3,
"total": 3,
"currentPage": 1,
"totalPages": 1,
"items": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Technology",
"slug": "technology",
"description": "Technology-related events and conferences",
"createdAt": "2025-10-13T10:30:00.000Z",
"updatedAt": "2025-10-13T10:30:00.000Z"
},
{
"id": "456e7890-e89b-12d3-a456-426614174001",
"name": "Tech Talks",
"slug": "tech-talks",
"description": "Technical presentations and discussions",
"createdAt": "2025-10-13T11:00:00.000Z",
"updatedAt": "2025-10-13T11:00:00.000Z"
},
{
"id": "789e0123-e89b-12d3-a456-426614174002",
"name": "EdTech",
"slug": "edtech",
"description": "Educational technology and learning innovations",
"createdAt": "2025-10-13T11:30:00.000Z",
"updatedAt": "2025-10-13T11:30:00.000Z"
}
]
}

Delete Category

Deletes an event category.

HTTP Request

DELETE /api/v1/event-categories/{id}

Path Parameters

ParameterTypeRequiredDescription
idstring (uuid)YesThe unique identifier of the category to delete

Query Parameters

ParameterTypeRequiredDescription
withTrashedbooleanNoInclude trashed categories

Response

Returns the deleted EventCategory object.

Example Response

{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Technology",
"slug": "technology",
"description": "Technology-related events and conferences",
"createdAt": "2025-10-13T10:30:00.000Z",
"updatedAt": "2025-10-13T10:30:00.000Z"
}

EventCategory Object

The EventCategory object represents a category used to organize events.

Properties

PropertyTypeDescription
idstring (uuid)The unique identifier of the category
namestringThe name of the category (max 255 characters)
slugstringThe slug for the category (URL-friendly identifier, max 255 characters)
descriptionstringThe description of the category
organizationobjectThe organization associated with the event category
createdAtstring (date-time)The date and time when the category was created
updatedAtstring (date-time)The date and time when the category was last updated
deletedAtstring (date-time)The deletion date of the category (if deleted)

Example

{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Technology",
"slug": "technology",
"description": "Technology-related events and conferences",
"createdAt": "2025-10-13T10:30:00.000Z",
"updatedAt": "2025-10-13T10:30:00.000Z"
}