Ingest product events
Ingests a batch of product-usage events. The shape is Segment-compatible: the GainTrace Segment destination sends here with source set to segment and the Segment messageId as source_event_id. Events feed health, signals and activation.
Keys. Use a secret key (gt_live_, scope write:events) from your backend. Use a publishable key (gt_pub_, scope write:ingest) from a browser. Publishable keys need a browser Origin header and are pinned to their allowed origins. The endpoint answers CORS preflight.
Limits. 1 to 1000 events per request. Replays are safe: an event whose (source, source_event_id) was already stored is reported as duplicate. Events with source of sdk, warehouse or segment must carry a source_event_id.
Per-event results. The response has one entry in results for each event you sent, in the same order, so you can retry only what failed. Events that fail validation are listed in validation_errors and do not stop the rest of the batch. If none of the events are valid, the response is 422.
Plan limit. When the monthly event limit is reached the request fails with 402, unless pay-as-you-go is on. Overage is billed from the events actually stored, so duplicates and retries are not billed.
Scope: write:events or write:ingest