Skip to main content
POST
Count Events

Authorizations

api_key
string
header
required

Body

application/json

Event window, filters and grouping

startDate
string<date-time> | null

Start date for event time range (ISO 8601 format). Defaults to 14 days ago if not provided; the response's dataWindow echoes what was used.

endDate
string<date-time> | null

End date for event time range. Defaults to the time of the request, so events stamped in the future (a lost deal's placeholder close date, for example) are left out; pass an explicit later endDate to include them. The response's dataWindow echoes what was used.

filters
object

Filters to INCLUDE events: event type/category, company, contact, sentiment, call purpose, outcome, deal amount, library entity oIds (offerings, personas, segments, tags, use cases, competitors, alternatives, buying triggers, core features, objections, proof points, references), motion types, customer scope, and CRM deal context (opportunityIds, opportunityStatuses, dealMotions, dealTypes, dealStages, pipelinePhases, crmPipelines, minStalledDays). Deal filters AND on the same linked deal; values within one filter are OR'd.

exclude
object

Filters to EXCLUDE events matching these criteria (same shape as the entity/outcome match filters)

excludeTags
string[]

Exclude events matching any library entity that carries these reporting tag oIds. Use list_tag_groups to resolve tag oIds. Multiple tags are OR'd.

includePreviousPeriod
boolean
default:false

Also compute the same thing for the period of equal length immediately before the window, returned under previous with its own dataWindow — for 'up or down vs the prior period'. The window's end defaults to now when endDate is omitted.

Response

Count Events

_metadata
object
required
dataWindow
object
required

The time span these numbers cover. Compare numbers from two tools only when their dataWindow kind and dates match.

totalEvents
integer
required

Events matching the filters — the same number as list_events' total.

byChannel
object
required

totalEvents split by channel. Each count is taken inside the same filters, so with eventTypes restricted to calls every other channel reads 0.

uniqueCompanies
integer
required

Distinct companies the matching events are associated with.

uniquePeople
integer
required

Distinct EXTERNAL people (resolved contacts) on the matching events. Participants with no contact record are not counted.

uniqueDeals
integer
required

Distinct CRM deals the matching events are linked to.

previous
object | null
required

The same counts for the equal-length period just before the window; null unless includePreviousPeriod was set.