Twilio Segment
by Twilio
Collect user events once, send them everywhere.
Business apps with APIsUp · live status
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/pricing2. Commercial use
“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”
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.
twilio.com/en-us/legal/tos3. Key & sign-up
“Choose between writeKey authentication, basic authentication and OAuth to authenticate requests.”
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
twilio.com/docs/segment/connections/sources/catalog/libraries/server/http-api.md4. Agent access
“Read-only: The server provides API search and documentation retrieval.”
Read-only; it searches Twilio docs, including the Segment docs, and does not send or read your events. Our agent check: 3 of 6 (Nov 13, 2026).
twilio.com/docs/ai/mcp.mdChecked 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
SDK downloads from npm and PyPI, weekly. Numbers as of Nov 17, 2026.
Pricing
Free: $0/month, 1,000 visitors/mo, 2 sources
$120 a month
Team: starts at $120/month incl. 10,000 visitors/mo; extra 1,000 MTUs +$12 (10K–25K), +$11 (25K–100K), +$10 (100K+)
Billed by monthly tracked users (MTUs). Team includes a 14-day free trial; Business/CDP plans use custom pricing.
What one action costs
| Action | Price |
|---|---|
| 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
1,000 visitors (monthly tracked users) a month and 2 sources
10,000 monthly tracked users included, unlimited sources
About 1,000 requests a second per workspace on the HTTP API; more may be queued or rejected with 429
32 KB per request and per event; 500 KB and up to 2,500 events per batch request
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
All Systems Operational
3 incidents, 1 of them major
From the official status page, checked Nov 26, 2026. status.segment.com
Key and access
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
none read automatically; the libraries take writeKey in code (keep it in your own variable, for example SEGMENT_WRITE_KEY)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.
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
The browser and Node.js packages are MIT licensed; the website write key may ship in the page.
“"license":"MIT"” source
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
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
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
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.
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.
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.
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.
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
3 of 6: llms.txt no, OpenAPI no, SDK yes, MCP no, status page yes, AI assistants allowed yes
Checked Nov 13, 2026.
Twilio MCP server (docs search, public beta)
claude mcp add --transport http twilio-docs https://mcp.twilio.com/docs
npm install @segment/analytics-nodepip install segment-analytics-pythonAlternatives
Twilio Segment This page
Pick PostHog when you want analytics, session replay and feature flags in one product instead of routing events to other tools.
Pick Mixpanel when what you need is product analytics with session replay and experiments, not a data router.
Pick Heap when you want an analytics tool that records user sessions and engagement directly.
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.”
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
Install the browser package in your site.
npm install @segment/analytics-nextFrom twilio.com/docs/segment/connections/sources/catalog/libraries/website/javascript/quickstart.md
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"
}'200 OKMistakes to avoid
The runtime freezes or stops after the response, so queued events are lost.
Segment answers 200 even for events it rejects.
Events sent to the US address from an EU workspace disappear without an error.
Both would send the same data, so every event counts twice.
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.