Skip to main content

Event Types API

Discover and manage the event types tracked in your Organizational Unit. Event types represent the different actions leads can take, such as page_view, email_open, or form_submit.

GET /event-types

List all visible event type names for the active Organizational Unit. Hidden event types are excluded from this response.

Request

No query parameters required.

Response

200 OK

["page_view", "signup", "email_open", "demo_request"]

Returns a JSON array of event type name strings.

Example

curl -X GET "https://api.leadvibe.com/event-types" \
-H "Authorization: Bearer <token>"

Common Errors

StatusMeaningSolution
401UnauthorizedCheck authentication credentials

GET /event-types/{eventType}/properties

List the distinct metadata property keys that have been observed for a specific event type within the active OU. Useful for building dynamic filter UIs or understanding what data is being captured.

Request

ParameterTypeRequiredDescription
eventTypestringYesEvent type name (path parameter)

Response

200 OK

{
"event_type": "page_view",
"properties": ["path", "utm_source", "campaign", "referrer"]
}

Response Fields

FieldTypeDescription
event_typestringThe event type queried
propertiesarrayList of distinct metadata property keys observed

Example

curl -X GET "https://api.leadvibe.com/event-types/page_view/properties" \
-H "Authorization: Bearer <token>"

Common Errors

StatusMeaningSolution
401UnauthorizedCheck authentication credentials
404Not FoundEvent type does not exist in this OU

Event Type Settings

These endpoints manage event type visibility and deletion within your Organizational Unit.

GET /settings/ou/event-types

List all event types with visibility status, event counts, and deletion eligibility for the active OU.

Response

200 OK

[
{
"name": "page_view",
"hidden": false,
"ou_event_count": 14520,
"protected": true,
"deletable": false
},
{
"name": "test_event",
"hidden": true,
"ou_event_count": 3,
"protected": false,
"deletable": true
}
]

Response Fields

FieldTypeDescription
namestringEvent type name
hiddenbooleanWhether this event type is hidden from lists and dropdowns
ou_event_countintegerNumber of events of this type in the active OU
protectedbooleanWhether this event type is used by scoring rules or triggers
deletablebooleanWhether all events of this type can be deleted

Example

curl -X GET "https://api.leadvibe.com/settings/ou/event-types" \
-H "Authorization: Bearer <token>"

PUT /settings/ou/event-types/{eventType}

Show or hide an event type in the active OU. Hiding an event type removes it from dropdowns and lists but preserves all data.

Request

ParameterTypeRequiredDescription
eventTypestringYesEvent type name (path parameter)

Request Body

FieldTypeRequiredDescription
hiddenbooleanYesSet to true to hide, false to show
{
"hidden": true
}

Response

204 No Content

Example

curl -X PUT "https://api.leadvibe.com/settings/ou/event-types/test_event" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"hidden": true}'

GET /settings/ou/event-types/{eventType}/dry-run-delete

Preview the impact of deleting all events of a given type. Use this before performing the actual deletion to understand what will be affected.

Request

ParameterTypeRequiredDescription
eventTypestringYesEvent type name (path parameter)

Response

200 OK

{
"events_count": 142,
"event_scores_count": 89
}

Response Fields

FieldTypeDescription
events_countintegerNumber of events that would be deleted
event_scores_countintegerNumber of associated score records that would be affected

Example

curl -X GET "https://api.leadvibe.com/settings/ou/event-types/test_event/dry-run-delete" \
-H "Authorization: Bearer <token>"

DELETE /settings/ou/event-types/{eventType}/events

Delete all events of a specific event type in the active OU. This action is irreversible.

Request

ParameterTypeRequiredDescription
eventTypestringYesEvent type name (path parameter)

Response

200 OK

Returns a summary of the deletion.

Example

curl -X DELETE "https://api.leadvibe.com/settings/ou/event-types/test_event/events" \
-H "Authorization: Bearer <token>"

Common Errors

StatusMeaningSolution
401UnauthorizedCheck authentication credentials

Notes

  • Event types are OU-scoped to the active Organizational Unit
  • Hiding an event type is reversible and preserves all data -- use it to declutter dropdowns
  • Deleting events is irreversible and removes event data, but does not delete leads or accounts
  • Protected event types (used by scoring rules or triggers) cannot be deleted until those rules are removed
  • Use the dry-run endpoint before deleting to understand the impact