# Twilio Segment — card for AI agents

Customer data platform that collects event data via one API and routes it to analytics and other tools.

Maker: Twilio · category: Business apps with APIs

## Price (official page)
- Free tier: Free: $0/month, 1,000 visitors/mo, 2 sources
- Free tier terms: free allowance · monthly (read from the wording above and the pricing page; empty = not stated)
- Paid from $120/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+)
- Pricing page: https://www.twilio.com/en-us/products/connections/pricing (checked 2026-10-09)
- Note: Billed by monthly tracked users (MTUs). Team includes a 14-day free trial; Business/CDP plans use custom pricing.

## Connect
- npm: `npm install @segment/analytics-node`
- PyPI: `pip install segment-analytics-python`
- Repository: https://github.com/segmentio/analytics-next
- Status: All Systems Operational

## For AI agents on Twilio's own site (AgentGid check 2026-11-13: 3 of 6)
- llms.txt: none found
- OpenAPI description: none found at the usual places
- Official MCP server: no · official SDK: yes · status page: yes
- robots.txt lets AI assistants (ChatGPT-User, Claude-User) read the site: yes

## A year of price history (Internet Archive copies of the pricing page, read by rules)
- Months read: 12 (2025-10 to 2026-09) of https://www.twilio.com/en-us/products/connections/pricing
- Lowest $/month figure on the page: $120 in 2025-10, $120 in 2026-09
- A figure is any "$X/month" on the page (plans, seats and add-ons alike); open the archived copy to see which plan it is.

## Price history in AgentGid's catalog (since 2026-10-10)
- Changes recorded: 0 (a vendor price change or an editor's correction; the evidence archive keeps the pricing page of each date)

## Other APIs in this category
- Notion: https://agentgid.com/apis/notion/agent.md
- Lark: https://agentgid.com/apis/larksuite/agent.md
- Shopify Admin API: https://agentgid.com/apis/shopify-admin-api/agent.md
- Cal.com: https://agentgid.com/apis/cal-com/agent.md
- Nylas: https://agentgid.com/apis/nylas/agent.md

## Links
- AgentGid page: https://agentgid.com/apis/twilio-segment/


## Twilio Segment: collect user events once, send them everywhere

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.

### Where to use 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.

### How to start
- Sign up for a free Segment account, create a workspace and add a JavaScript source; Segment gives it a write key.
- Install the browser package in your site.

```
npm install @segment/analytics-next
```

- 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' })
```


### License
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.

### Good to know
- You need a Segment workspace and a write key for each source. The free plan covers 1,000 visitors a month and 2 sources.
- You pay by the number of different users you track each month, counting anonymous visitors too.
- The website write key is visible to anyone, so it only lets people send events in, not read your data.
- Consent management is only on Business plans; on Free and Team you handle cookie consent yourself.
- Segment no longer keeps data forever; old raw events are deleted after the plan's retention period.

Checked 2026-11-10 against: https://segment.com, https://segment.com/pricing/, https://www.twilio.com/en-us/products/connections/pricing, https://www.twilio.com/docs/segment, https://www.twilio.com/docs/segment.md, https://www.twilio.com/docs/llms.txt, https://www.twilio.com/docs/segment/getting-started/01-what-is-segment.md, https://www.twilio.com/docs/segment/getting-started/02-simple-install.md, https://www.twilio.com/docs/segment/getting-started/use-cases.md, https://www.twilio.com/docs/segment/connections/sources/catalog/libraries/server/http-api.md, https://www.twilio.com/docs/segment/connections/sources/catalog/libraries/server/node.md, https://www.twilio.com/docs/segment/connections/sources/catalog/libraries/website/javascript.md, https://www.twilio.com/docs/segment/connections/sources/catalog/libraries/website/javascript/quickstart.md, https://www.twilio.com/docs/segment/connections/spec/track.md, https://www.twilio.com/docs/segment/connections/spec/identify.md, https://www.twilio.com/docs/segment/connections/rate-limits.md, https://www.twilio.com/docs/segment/connections/destinations.md, https://www.twilio.com/docs/segment/connections/storage/warehouses.md, https://www.twilio.com/docs/segment/guides/usage-and-billing/mtus-and-throughput.md, https://www.twilio.com/docs/segment/privacy/data-retention-policy.md, https://www.twilio.com/docs/segment/privacy/user-deletion-and-suppression.md, https://www.twilio.com/docs/segment/privacy/consent-management.md, https://www.twilio.com/docs/ai/mcp.md, https://www.twilio.com/en-us/legal/tos, https://registry.npmjs.org/@segment/analytics-next/1.84.3, https://registry.npmjs.org/@segment/analytics-node/3.1.0, https://pypi.org/pypi/segment-analytics-python/2.4.0/json

### Mistakes to avoid
- Don't: Calling analytics.track() in a serverless function and returning right away. → Do: 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.)
- Don't: Treating a 200 answer from the HTTP API as proof the event was stored. → Do: Check the source's Debugger, and always send userId or anonymousId and an event name. (Segment answers 200 even for events it rejects.)
- Don't: Sending from an EU workspace to api.segment.io. → Do: 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.)
- Don't: Keeping the old Google Analytics or ad pixel snippet next to Segment. → Do: 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.)
- Don't: Base64-encoding only the write key for Basic auth. → Do: 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.

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
