Segment
Reads the sources, tracking plans and audiences of a Segment workspace, so analytics agents can answer what is tracked, under which rules, and which audiences exist. It reads configuration only; it reads no events and no profiles.
Built against the Segment Public API 74.1.0 (v1 endpoints).
At a glance
Section titled “At a glance”| Collector | Segment, version 0.1.0 |
|---|---|
| Reads | Segment (Twilio): Segment Connections, Protocols and Engage (sources, tracking plans, audiences) (the vendor's documentation) |
| Family | Data |
| Kind | Customer data |
| Ways to connect | Access token |
| Scopes |
|
| Read only | Yes |
| Vendor's API can move money | No |
| Personal data | Identity |
| Hosts it may contact | api.segmentapis.com, eu1.api.segmentapis.com |
| Vendor API versions | Segment Public API 74.1.0 (v1): List Sources, List Tracking Plans, List Rules from Tracking Plan, List Audiences |
| Lowest engine version | 0.47.1 |
What it reads
Section titled “What it reads”- Sources: name, slug, enabled, the catalogue entry (for example Apple, Mobile) and labels. Write keys and settings are never copied.
- Tracking plans (Protocols): name, description, type, and each rule’s event or trait key, type, version, deprecation and the properties its JSON Schema names, with those it requires. A plan’s rules are read again only when the plan changes.
- Audiences (Engage), in the spaces you name: name, key, description, enabled, status, size, type, compute cadence and the definition query.
- Each run lists everything, pages with
pagination.countandpagination.cursor, and writes what changed. An object that has gone is withdrawn. - Never read: events, profiles and traits, destinations, warehouses, functions, write keys, source settings and anything that changes the workspace.
How to connect
Section titled “How to connect”- In Segment, under Settings > Access Management > Tokens, create a Public API token (not a Config API token) and give it read-only access to the workspace.
- In LightHouse, open Connectors, choose Segment, choose the workspace’s Region (US or EU), name the Engage space ids whose audiences to read (or none), a label and how often to read, and paste the token.
- In code, give the deployment the token as
SEGMENT_TOKENfrom your secret store and add akind: segmentsource card withregion,space_ids,labelandrequires.token_envchanges the variable name;kindsnarrows what is read.
Permissions
Section titled “Permissions”A Public API token with read-only access. The collector sends only GET requests to the Region’s Public API host, with the token as a Bearer credential; it never changes the workspace. Its read-only test proves it on every change.
Limits
Section titled “Limits”- The Region is US (
api.segmentapis.com) or EU (eu1.api.segmentapis.com); each workspace needs its own token. - Audiences are read only in the spaces you name: Segment’s endpoint for listing spaces is in alpha, and the collector uses stable endpoints only.
- Tracking plans need Protocols, and audiences need Engage. A workspace without them answers 403 or 404, and what was read before is kept, not withdrawn.
- A list is read to at most 100 pages of 200; the rules endpoint is limited to 200 requests a minute, which is why rules are read only for changed plans.
- Requests are paced and back off when Segment asks (
Retry-After).
Data handling
Section titled “Data handling”- Source names, plan rules, audience names and definitions are copied into the deployment’s corpus under the source’s
label. Audience definitions can name traits; they hold no profile data. - Write keys and source settings are dropped as they are read and never stored.
- The token stays in your secret store and is never written to logs or run notes; it is sent only to the Region’s API host.
- Nothing leaves the deployment: only counts reach LightHouse.
Troubleshooting
Section titled “Troubleshooting”| What you see | What it means | What to do |
|---|---|---|
region is one of ['eu', 'us'] |
The Region is not US or EU | Use the workspace’s Region |
credential variable 'SEGMENT_TOKEN' is not set |
The token variable is empty | Set it from your secret store |
HTTP 401 |
The token is revoked, or is a Config API token, or is for another Region | Make a Public API token in the workspace’s Region |
HTTP 403 on sources |
The token cannot read the workspace | Give the token read-only access to the workspace |
| No audiences | No space ids named, or Engage is not enabled | Name the spaces in space_ids |
| Read succeeded, 0 written | Nothing changed since the last read | Nothing to do |
Certification
Section titled “Certification”Each entry is a run by Atlantic Agentic Labs, newest first. Only a run against the vendor’s sandbox or a client environment certifies a collector; a certification lasts six months, or less if the vendor publishes an API version the collector does not list. See How collectors are certified.
| Date | Collector | Engine | Vendor API | Method | Expires |
|---|---|---|---|---|---|
| 21 November 2026 | 0.1.0 | 0.47.1 | Segment Public API 74.1.0 (v1): sources, tracking plans and rules, audiences | Fixtures only: built, not certified | Not applicable |
Security posture
Section titled “Security posture”From the collector’s last scan on the default branch. What each line means, and what blocks a release: Security posture.
| Last scanned | 25 November 2026 |
|---|---|
| Critical findings | 0 |
| High findings | 0 |
| Medium findings | 0 |
| Low findings | 0 |
| Info findings | 0 |
| Release blocked | No |
| Network allow-list check | Pass |
| Read-only behavioural test | Pass |
| SBOM (CycloneDX) | Produced |
| Dependency licences | Pass |
| Scanners | bandit 1.9.4, semgrep 1.181.1, pip-audit 2.10.1, osv-scanner 2.7.0, cyclonedx-py 7.5.0, pip-licenses 5.5.5, gitleaks repository job aal-secrets, hosts_check tools/hosts_check.py, read-only test pytest -m read_only |