Skip to main content

List Events

GET/v2/project/{project_key}/events

Return all custom events for the selected project. Only active, non-internal events are returned — mirrors the Events dashboard view.

Query parameters

ParameterTypeDefaultDescription
limitinteger50Max results to return. Maximum 500.
offsetinteger0Number of records to skip (for pagination).
event_textstring(all)Exact match filter on event name.
start_datestring(all time)Filter events on or after this date. Format: YYYY-MM-DD.
end_datestring(all time)Filter events on or before this date. Format: YYYY-MM-DD.

What this endpoint returns

This endpoint applies the same filters as the Events dashboard:

  • Only events with event_type = 2 (custom tracked events)
  • Only active rows (status = 1)
  • Excludes rows with visitor_id = 0
  • Excludes internal events prefixed with !
  • Excludes derived goal events prefixed with goal_

Example

curl "https://api-{region}.mida.so/v2/project/YOUR_PROJECT_KEY/events?limit=50&offset=0" \
-H "Authorization: Bearer YOUR_GENERATED_API_KEY"

Example: filter by date range

curl "https://api-{region}.mida.so/v2/project/YOUR_PROJECT_KEY/events?start_date=2024-01-01&end_date=2024-01-31" \
-H "Authorization: Bearer YOUR_GENERATED_API_KEY"

Success response

{
"success": true,
"company_id": 1001,
"count": 2,
"events": [
{
"event_id": 9876,
"event_text": "Pricing CTA Clicked",
"event_property": "{\"button_id\":\"hero-cta\"}",
"created_at": "2024-01-15T10:30:00.000Z"
},
{
"event_id": 9877,
"event_text": "Signup Started",
"event_property": null,
"created_at": "2024-01-15T10:35:00.000Z"
}
]
}

Response fields

FieldTypeDescription
eventsarrayList of event objects
events[].event_idintegerUnique event ID — use this in other event endpoints
events[].event_textstringThe event name
events[].event_propertystring|nullJSON-encoded metadata attached to the event
events[].created_atstringISO 8601 creation timestamp
countintegerTotal number of events returned

Error responses

StatusMeaning
401Invalid or missing API key
Next step

Use the event_id from this list to call Get Event Details, Update Event, or Delete Event.