Custom events
Version date: 26 January 2026
To authorize, you need to add the header
"Authorization: Bearer ..."(get your API KEY in your personal account on "Personal" tab).
Endpoints
Create a custom event
POST https://core.push.express/api/b/v2/events
Description: Creates a new custom event.
Request:
Body params:
name, required, string. Name of event.code, required, string. The event code. It is needed to send the event to the PushExpress service. Must contain only alphanumeric characters and underscores.
Response:
201: New event created
id, int. ID of newly created event.
List all custom events
GET https://core.push.express/api/b/v2/events
Description: Returns a list of all custom events for the authenticated user.
Request:
Response:
200: Success
id, int. Event ID.name, string. Name of event.code, string. Event code.status, int. Event status (0 = inactive, 1 = active).type, string. Event type ("CUSTOM", "SYSTEM").Pagination:
Now supports one type of pagination:
Page-based pagination - for UI with numbered pages (limited to 10K records).
Page-based
Request
Query parameters:
page, int, optional. Page number.per_page, int, optional. The number of entries per page.
pagination, object. Pagination metadata.pagination.page, int. Current page number.pagination.per_page, int. Records per page.pagination.total_pages, int. Total number of pages.pagination.total_count, int. Total matching records.
Limit: Max offset = 10,000 records. UI with numbered pages [1] [2] [3]. Small/medium datasets.
Get a custom event
GET https://core.push.express/api/b/v2/events/{id}
Description: Returns details of a specific custom event.
Request:
URL params:
id, required, int. Event ID.
Response:
200: Success
id, int. Event ID.name, string. Name of event.code, string. Event code.status, int. Event status (0 = inactive, 1 = active).type, string. Event type.404: Event not found
Update a custom event
PUT https://core.push.express/api/b/v2/events/{id}
Description: Updates an existing custom event. Only name and code can be updated.
Request:
URL params:
id, required, int. Event ID.
Body params:
name, required, string. New name of event.code, required, string. New event code. Must contain only alphanumeric characters and underscores.
Response:
200: Event updated
404: Event not found
400: Invalid data or code already exists
Delete a custom event
DELETE https://core.push.express/api/b/v2/events/{id}
Description: Deletes a custom event permanently.
Request:
URL params:
id, required, int. Event ID.
Response:
204: Event deleted successfully (no content)
404: Event not found
Activate a custom event
POST https://core.push.express/api/b/v2/events/{id}/activate
Description: Activates a custom event (sets status to 1).
Request:
URL params:
id, required, int. Event ID.
Response:
204: Event activated successfully (no content)
404: Event not found
Deactivate a custom event
POST https://core.push.express/api/b/v2/events/{id}/deactivate
Description: Deactivates a custom event (sets status to 0).
Request:
URL params:
id, required, int. Event ID.
Response:
204: Event deactivated successfully (no content)
404: Event not found
Last updated