All tools

Track an event

Records one action a user took, such as Signed Up, with its properties and routes it to the source's destinations.

View on GitHub
Updated Sep 27, 2026Available asAPI

Description

Send `event`, `userId` or `anonymousId`, and optional `properties`; a request can be up to 32 KB. Segment deduplicates on `messageId`, so give every event a unique one under 100 characters. `SEGMENT_API_KEY` holds the base64 of the source's write key followed by a colon.

track-event.md

Track an event

Records one action a user took, such as Signed Up, with its properties and routes it to the source's destinations.

Send event, userId or anonymousId, and optional properties; a request can be up to 32 KB. Segment deduplicates on messageId, so give every event a unique one under 100 characters. SEGMENT_API_KEY holds the base64 of the source's write key followed by a colon.

Set up

Use the first option your agent supports.

API (official)

Before doing anything else, make one read-only call to confirm access.

Rules

  • Ask the user before anything that sends messages, costs money, or changes data.
  • Never print API keys.

Built from these files in the repository

The layout and the rules come from lib/catalog/render-markdown.ts, the set-up wording from lib/catalog/render-access.ts.

Ways in

RouteSourceCallRequiredDocs
APIOfficialPOST /v1/trackAPI key in $SEGMENT_API_KEYDocs

Workflows using Track an event

No workflows yet
No published workflow uses Track an event yet.