Skip to main content
1

Get an API key

In GainTrace, go to Settings → API Keys, create a key, and grant the scopes you need (for example read:companies, write:events). Copy the key — it’s shown once.
2

Read your companies

Call the companies endpoint with your key as a Bearer token.
Response
3

Send a product event

Push a usage event so it flows into health, signals, and activation. Identify the account with account_id (its external id or UUID).
Response
Ingest is idempotent on the id you provide (source_event_id for /events, externalId for /metric-events), so retries never double-count.

Next steps

Authentication

Key types, scopes, and error codes.

API reference

Open the API reference tab for every endpoint, request, and response.
Last modified on July 6, 2026