Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

Twilio Segment

by Twilio

Collect user events once, send them everywhere.

Business apps with APIsUp · live status

WebsitePricingGitHub

1. Price

“Team plans includes a 14-day free trial, so you can test paid features before you commit.”

Free tier: Free: $0/month, 1,000 visitors/mo, 2 sources. As reported on the official pricing page, checked Oct 10, 2026.

twilio.com/en-us/products/connections/pricing

Checked against the maker's official pages, pricing on Oct 10, 2026. Tap a verdict to see its source.How we checkedReport an error

What Twilio Segment does

Twilio Segment is an online service that collects what people do in your site or app, such as sign-ups and purchases, through one piece of tracking code. It then passes those events on to the other tools you use, like analytics, email or a data warehouse. You add or switch tools in Segment's dashboard instead of adding new tracking code for each one.

  • Twilio Segment is one of 33 APIs in the Business apps with APIs category on AgentGid.
  • Its cheapest paid plan ($120 a month) is the 30th cheapest of the 32 here with a monthly plan.
  • It is one of 23 that can be started for free.
  • 16 of them ship an official MCP server; Twilio Segment does not.
  • Its official SDK is the 1st most downloaded in the category (5.4M a week).

What people build with it

One tracking code for many tools

Record sign-ups, page views and purchases on your website once, and send them to analytics, email and ad tools you switch on in the dashboard.

Purchases recorded on the server

Send payments and other important events from your server, where ad blockers cannot stop them and the numbers stay reliable.

All events in your data warehouse

Keep a full copy of every event in your own warehouse, so you can run your own reports on it later.

Know when an email was opened

Count email opens and similar events in places where no code can run, using a tiny tracking image.

Delete a user's data on request

When a customer asks to be forgotten, remove and block their data across all your sources with one request.

Same customer across web and app

Recognize that the visitor on your website and the user in your mobile app are the same person, so they count once.

Twilio Segment popularity

4.3M
SDK downloads a week
+52.8% on the 4-week average
6
public agent repos use its SDK
480
GitHub stars, segmentio/analytics-next
SDK downloads per weeknpm @segment/analytics-node, pypi segment-analytics-python 4,298,278

SDK downloads from npm and PyPI, weekly. Numbers as of Nov 17, 2026.

Pricing

Free tier

Free: $0/month, 1,000 visitors/mo, 2 sources

Cheapest plan

$120 a month

Usage price

Team: starts at $120/month incl. 10,000 visitors/mo; extra 1,000 MTUs +$12 (10K–25K), +$11 (25K–100K), +$10 (100K+)

Plans

Billed by monthly tracked users (MTUs). Team includes a 14-day free trial; Business/CDP plans use custom pricing.

What one action costs

ActionPrice
10,000 monthly tracked users (Team plan)$120
1,000 extra monthly tracked users between 10K and 25K (Team)$12
1,000 extra monthly tracked users above 100K (Team)$10
Price history
  • A year of the pricing page in the Internet Archive (12 months): the lowest monthly figure went from $120 (2025-10) to $120 (2026-09).

As reported on the official pricing page, checked Oct 10, 2026. Prices change: confirm before you buy. twilio.com/en-us/products/connections/pricing

Limits

Free

1,000 visitors (monthly tracked users) a month and 2 sources

Team

10,000 monthly tracked users included, unlimited sources

All plans

About 1,000 requests a second per workspace on the HTTP API; more may be queued or rejected with 429

All plans

32 KB per request and per event; 500 KB and up to 2,500 events per batch request

Plans with a throughput limit

A set number of API calls per paid MTU a month (for example 250)

From the official docs. twilio.com/en-us/products/connections/pricing

Status and incidents

Right now
Up

All Systems Operational

Last 30 days

3 incidents, 1 of them major

From the official status page, checked Nov 26, 2026. status.segment.com

Key and access

How it signs in

Source write key, in the request body (writeKey), as the Basic auth user name with an empty password, or an OAuth bearer token plus the write key

Environment variable
none read automatically; the libraries take writeKey in code (keep it in your own variable, for example SEGMENT_WRITE_KEY)
Safe in browser code
Yes
Card at sign-up

No

Steps only a person can do

  • Create a Segment workspace (free) and add a source for the website or server; copy its write key. Put the write key in the site config, or in .env as SEGMENT_WRITE_KEY for server code.
  • Turn on the destinations (analytics, email, warehouse) in the Segment app and connect their accounts. No code change; the same track and identify calls reach the new tools.
  • Add a cookie consent banner if your visitors need one; Segment's own consent tool is Business-only. Load Segment only after the visitor has agreed, where the law requires it.

Commercial use and your data

Segment is a paid online service with a free plan, and you may use it in your own products. You must give your visitors proper notice and get the consents the law requires before you collect their data.

In a paid app
With conditions

Allowed inside your own app or product; you must give notice and have the consents needed to collect your users' data, and may not resell the service by itself.

“you will not transfer, resell, or make available to third parties our services, except to your end users as part of the software applications you develop or products and services you offer” source

inside-app-bundle
Yes

The browser and Node.js packages are MIT licensed; the website write key may ship in the page.

“"license":"MIT"” source

client-work
With conditions

Fine for client sites; the account owner stays responsible under the terms, so set up the workspace in the client's name.

“If you reassign your account to a third-party reseller, you are still responsible for your obligations under these Terms.” source

Keeps your data

Raw event history is kept 180 days on Free, 365 days on Team and 3 years on Business.

“Free | 180 days | Not applicable | 60 days | 180 days | Not applicable” source

Where data is stored

Data goes to Oregon (US) by default; Business plans can use the Dublin region.

“For Business plans with access to Regional Segment, you can use the host configuration parameter to send data to the desired region” source

Errors to handle

200 but the event never arrives

Segment answers 200 even when it drops an event, for example one with no userId or anonymousId, a Track with no event name, or too many events in a batch.

Open the source's Debugger, and make sure every payload has userId or anonymousId and every Track has an event name.

400 Bad Request

The payload is larger than 32 KB (500 KB for a batch) or the JSON is broken.

Make events smaller or split the batch, and check the JSON.

429

The workspace sent more than the rate limit allows.

Wait the seconds given in the Retry-After header, then retry; ask Segment for a higher limit if it keeps happening.

5xx

Your client is calling an old IP address of the HTTP API.

Do not cache Segment's IP; resolve api.segment.io again (at least once every 24 hours) and retry.

No error, no events (EU workspace)

An EU workspace that sends to the default US address loses events without any error.

Send to the Dublin address events.eu1.segmentapis.com for EU workspaces.

Use it from an agent

Our agent check

3 of 6: llms.txt no, OpenAPI no, SDK yes, MCP no, status page yes, AI assistants allowed yes

Checked Nov 13, 2026.

MCP server

Twilio MCP server (docs search, public beta)

claude mcp add --transport http twilio-docs https://mcp.twilio.com/docs

npm
npm install @segment/analytics-node
PyPI
pip install segment-analytics-python

Alternatives

Twilio Segment This page

from $120/month inclFree tier

PostHog

Pick PostHog when you want analytics, session replay and feature flags in one product instead of routing events to other tools.

See its pageNo free tier

Mixpanel

Pick Mixpanel when what you need is product analytics with session replay and experiments, not a data router.

See its pageNo free tier

Heap

Pick Heap when you want an analytics tool that records user sessions and engagement directly.

See its pageNo free tier

All business apps with apis APIs

Get started

Tell your AI assistant

“Add Twilio Segment tracking: @segment/analytics-next in the browser with the source write key, analytics.identify() after sign-in and analytics.track() for Signed Up and Order Completed; send payments from the server with @segment/analytics-node and await analytics.flush() in serverless functions.”

  1. Sign up for a free Segment account, create a workspace and add a JavaScript source; Segment gives it a write key.

    From twilio.com/docs/segment/connections/sources/catalog/libraries/website/javascript/quickstart.md

  2. Install the browser package in your site.

    npm install @segment/analytics-next

    From twilio.com/docs/segment/connections/sources/catalog/libraries/website/javascript/quickstart.md

  3. Load it with the write key, then identify signed-in users and track a few key events.

    import { AnalyticsBrowser } from '@segment/analytics-next'
    
    export const analytics = AnalyticsBrowser.load({ writeKey: 'YOUR_WRITE_KEY' })

    From twilio.com/docs/segment/connections/sources/catalog/libraries/website/javascript/quickstart.md

First request

The docs show no response body; they say Segment answers 200 to every request except too-large payloads and broken JSON (400). Check the source's Debugger to see whether the event was accepted.

curl --location 'https://api.segment.io/v1/track' \
--header 'Content-Type: application/json' \
--data-raw '{
    "event": "happy-path-a3ef8a6f-0482-4694-bc4d-4afba03a0eab",
    "email": "test@example.org",
    "userId": "123",
    "writeKey": "DmBXIN4JnwqBnTqXccTF0wBnLXNQmFtk"
}'

Mistakes to avoid

Calling analytics.track() in a serverless function and returning right away.
Create the client per call and await analytics.flush() before the function returns.

The runtime freezes or stops after the response, so queued events are lost.

Treating a 200 answer from the HTTP API as proof the event was stored.
Check the source's Debugger, and always send userId or anonymousId and an event name.

Segment answers 200 even for events it rejects.

Sending from an EU workspace to api.segment.io.
Use the Dublin host events.eu1.segmentapis.com for EU workspaces.

Events sent to the US address from an EU workspace disappear without an error.

Keeping the old Google Analytics or ad pixel snippet next to Segment.
Remove the tool's own snippet once you turn it on as a Segment destination.

Both would send the same data, so every event counts twice.

Base64-encoding only the write key for Basic auth.
Encode the write key followed by a colon, for example 'abc123:'.

Encoding without the colon works only for backward compatibility and may stop working.

Questions

Is there a free plan?

Yes. The Free plan stays free and covers up to 1,000 visitors a month.

Is it safe to put the write key in my website?

Yes for website sources; the key is public by design. If that is not acceptable, track from your server instead.

Do I need to call identify for every visitor?

No. Anonymous visitors get an anonymous ID automatically; call identify when someone signs up or logs in.

What counts as one API call?

Each Track, Page, Screen, Identify, Group or Alias message sent to Segment counts as one call.

Should I remove my old analytics snippets?

Yes. Once a tool is connected through Segment, remove its own snippet so events are not sent twice.