Skip to main content

Get Event Details

GET/v2/project/{project_key}/event/{event_id}

Return the full details of a single event by its ID.

Path parameters

ParameterDescription
project_keyYour project's API key
event_idThe numeric event ID (from Create Event or List Events)

Example

curl "https://api-{region}.mida.so/v2/project/YOUR_PROJECT_KEY/event/9876" \
-H "Authorization: Bearer YOUR_GENERATED_API_KEY"

Success response

{
"success": true,
"event": {
"event_id": 9876,
"event_type": 2,
"event_text": "Pricing CTA Clicked",
"event_property": "{\"button_id\":\"hero-cta\",\"placement\":\"above-fold\"}",
"url": "https://example.com/pricing",
"event_path": "/pricing",
"status": 1,
"created_at": "2024-01-15T10:30:00.000Z"
}
}

Response fields

FieldTypeDescription
event.event_idintegerUnique event ID
event.event_typeintegerEvent type — 2 for custom tracked events
event.event_textstringThe event name
event.event_propertystring|nullJSON-encoded metadata
event.urlstringThe page URL associated with this event
event.statusinteger1 = active, 2 = deleted
event.created_atstringISO 8601 creation timestamp

Error responses

StatusMeaning
401Invalid or missing API key
404Event not found or belongs to a different project