Docs Getting Started Introduction

Documentation

Learn how to integrate Segmentr into your stack and start building audience segments from your event data.

Overview

Segmentr is a real-time audience segmentation platform. Connect your event sources, define segments with conditions, and consume membership via API, webhooks, or MCP. This documentation will guide you through the process.

Note

Segmentr is currently in public beta. Features are subject to refinement based on developer feedback.

Quickstart

Get up and running with Segmentr in less than 5 minutes. First, install the SDK for your preferred language.

Terminal
$ npm install segmentr

Ingesting your first event

Once you have the SDK installed, you can start sending events. Here is a complete example in Node.js:

index.js
import { Segmentr } from 'segmentr';

const segmentr = new Segmentr(process.env.SEGMENTR_API_KEY);

await segmentr.events.track({
  userId: 'user_42',
  event: 'payment.failed',
  properties: {
    amount: 29.99,
    plan: 'pro',
  },
});
Warning

Always use your server-side API key for backend integrations. Never expose your API key in client-side code.