---
ref: tool:intercom/track-event
name: Track an event
company: company:intercom
workflows: []
access: [api]
tags: [capability:track-events, category:support, has:api]
docs: https://developers.intercom.com/docs/references/rest-api/api.intercom.io/data-events/createdataevent
updated: 2026-09-27
---

# Track an event

Records a named event with optional metadata against a user or lead, where teammates can filter on it and build segments from it.

Note: Leads need their Intercom `id`, and an unknown user returns 404. Only the first 10 metadata keys are kept, and repeats of the same contact, event name and `created_at` are ignored, so send the real event time.

## Set up

Use the first option your agent supports.

### API (official)

- Base URL: https://api.intercom.io
- Endpoint: `POST /events`
- Auth: send the header `Authorization: Bearer $INTERCOM_API_KEY`
- Get a key: https://app.intercom.io/a/apps/_/developer-hub/app-packages
- Docs: https://developers.intercom.com/docs/references/rest-api/api.intercom.io

Before anything else, confirm access with the cheapest read-only call, like a list or a search. Never send or change anything to test access.

## Rules

- Ask the user before anything that sends messages, costs money, or changes data, and say how many records it touches. One approval covers a batch the user has seen.
- Never print API keys.
