What you can do
The v1 launch surface covers these resources:- Profiles - list Profiles, retrieve one Profile, read subscription status, and perform scoped write operations.
- Templates - list, read, create, update, duplicate, archive, and unarchive email Templates.
- Assets - list image asset metadata, create asset records, request upload sessions, finalize uploads, update metadata, and delete assets.
- Brand Kit - list and manage brand kits, start extraction jobs, read extraction progress, and update brand defaults.
- Email sending - call
emails.sendto send one expected email, oremails.batchSendto create many independent expected emails, then retrieve each durable EmailSend status. - Events - call
events.trackto record one identified backend business event and trigger any matching active Journeys.
Segments, direct Journey management, Broadcasts, anonymous web routes, and the
WriteKey Ingest API are not part of the v1 SDK/MCP launch surface documented
here.
Core concepts
| SegmentFlow.ai | What it is |
|---|---|
| Profile | An identified contact owned by your Organization. |
| Template | A reusable email body with merge fields and purpose metadata. |
| Asset | Image metadata and upload state for media used inside Templates and Brand Kit. |
| Brand Kit | Logos, colors, and sender profile defaults applied to outgoing email. |
| EmailSend | One expected email to one Profile from a saved Email Template. |
| UserEvent | One tracked event, optionally used to trigger active Journeys. |
emails.send creates one EmailSend; emails.batchSend creates many independent EmailSend records without turning the work into a Broadcast or Newsletter Issue.
Use Events when your backend wants to report a fact and let Journey configuration decide what happens next. In the SDK, this job is events.track; the durable event record is a UserEvent.
Use Which API should I use? when you are choosing between one email, batch email, event-triggered Journeys, direct Journey trigger, Broadcasts, and Newsletter Issues.
Quickstart
The shortest path from zero to a working request:Sending email also requires a verified sending domain (SPF + DKIM).
Read-only API calls such as Profiles, Templates, Assets, and Brand Kit reads
work without one. See Sending domain for the DNS setup
before you create your first EmailSend.
Mint an API key
In the dashboard, open Settings → API Keys, create a key with the scopes you need, and copy the value. Use the scope table in Authentication to choose the narrowest set.
Common use cases
- Replace email from another provider. Point existing order, account, receipt, reset, and invite events at
POST /emails. UseIdempotency-Keyto dedupe webhook and job retries. - Trigger Journeys from backend events. Point backend facts at
POST /events. Unknown event names are accepted and return zero Journey matches until a Journey listens for them. - Sync Profile context to another system. Use the Profiles endpoints with
profiles:readfor CRM, support, enrichment, or BI workflows that need contact data. - Manage reusable email content. Use Templates, Assets, and Brand Kit endpoints to let internal tools or an MCP host prepare content without sharing a dashboard session.
- Drive approved workflows from an AI host. Run the self-hosted MCP Server with an API Key limited to the resources the host needs. The MCP Server wraps the same external routes and does not add a new auth model.
Base URL
/api/v1/, such as /api/v1/profiles, /api/v1/templates, /api/v1/assets, /api/v1/brand-kit, /api/v1/emails, and /api/v1/events.
Authentication
Every request authenticates with an API Key sent in thex-api-key header. See Authentication for the key minting flow, scopes, and idempotency.
SDKs
A typed TypeScript client is generated from the same OpenAPI spec that powers this documentation:openapi-generator or Kubb.
Versioning
The unified API is versioned in the URL (/api/v1/...). Breaking changes ship under a new prefix; additive changes (new fields, new endpoints, new optional query params) ship into the existing version without a version bump.
Next steps
Sending domain
Verify SPF, DKIM, and DMARC so SegmentFlow.ai can send on your domain.
Which API?
Choose between email sending, event tracking, Journeys, Broadcasts, and
Newsletter Issues.
Emails
Send one expected email to one Profile from your backend.
Events
Track one backend business event and trigger matching Journeys.
Authentication
Mint a key and pick the narrowest launch scopes for your integration.
Errors
Status codes, the error envelope, and stable
errorCode values to switch
on.API Reference
Every endpoint, request shape, and response shape — with an interactive
playground.

