Skip to main content
The GainTrace API lets you read your workspace’s customer data and push product-usage events, metric events, and signals into GainTrace. Ingested events flow into health scores, signals, and activation.

Base URL

Every request is authenticated with a Bearer API key and scoped to a single workspace. Requests and responses are JSON.

What you can do

  • Accounts — list your workspace’s accounts with health, ARR, plan, and owner.
  • Signals — read open signals, or record your own against an account.
  • Product events — push Segment-style usage events that feed health, signals, and activation.
  • Metric events — push typed, idempotent events into the metrics engine.
See the API reference tab for every endpoint, request, and response.

Response format

List endpoints return a data array and a meta object:
Errors use a structured envelope with a machine-readable code, a safe message, and a doc_url:
Branch on error.code, not on the message. See Errors for the full list of codes.

Conventions

  • Pagination: limit (default 50, max 100) and offset on list endpoints.
  • Errors: every failure returns error.code, error.message, and error.doc_url. Codes are stable and map one-to-one to an HTTP status. See Errors.
  • Idempotency: event ingest dedupes on an id you provide (source_event_id or externalId), so retries are safe.
Server-key API access (gt_live_ keys) is enabled per workspace. If you get 403 API v1 is not enabled for this workspace, enable it in your workspace settings or contact support.

Quickstart

Make your first request and send your first event.

Authentication

API key types, scopes, and error codes.
Last modified on July 7, 2026