Track HubSpot custom behavioral events via the Events API to capture product analytics

domain: developers.hubspot.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Define a custom behavioral event schema via POST to /events/v3/event-definitions with a name, label, and array of property definitions specifying name, type, and label for each tracked attribute
  2. Note the returned eventDefinitionId (fully qualified event name starting with pe_); use this name when sending event occurrences
  3. Send an event occurrence via POST to /events/v3/send with a JSON body specifying eventName (the fully qualified name), email or utk or objectId to associate the event with a contact, occurred_at timestamp, and a properties map of custom attribute values
  4. Confirm the event is received by checking the contact's activity timeline in HubSpot — custom behavioral events appear as custom timeline entries
  5. Use custom behavioral events as enrollment triggers or filters in workflows and lists by referencing the event definition and its properties in the HubSpot UI
  6. To query event occurrences programmatically, use the Analytics API or export via the reporting endpoints rather than attempting to read events back via the Events API (write-only)

Known gotchas

Related routes

Retrieve and process HubSpot custom behavioral event completions in bulk using the Events API v3, filtering by event type and date range
hubspot.com · 5 steps · unrated
Create HubSpot Timeline Event Types and post custom timeline events to CRM contact records to track external product activity
developers.hubspot.com · 6 steps · unrated
Register and use HubSpot Timeline Events API to create custom event types and write behavioral events on CRM contacts
developers.hubspot.com · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans