Segment
List Segment sources and connected destinations
Use the Segment Public API to inventory workspace sources and inspect their connected destinations. Keep the source ID from the first request when walking its relationships.
Documentation reviewed · 2 methods with sources
Ways to do it
API
GET /sources
List sources in a Segment workspace and capture each source ID and metadata.
Read source: Segment Public API documentation- Requirements
- A Segment Public API token with workspace access.
- Limitations
- The collection is paginated and only includes resources visible to the token's workspace. Use the source ID for relationship requests.
Example shell
curl --fail 'https://api.segmentapis.com/sources' -H "Authorization: Bearer $SEGMENT_PUBLIC_API_TOKEN"API
GET /sources/{sourceId}/connected-destinations
List the destinations connected to one source to inspect the source-to-destination route.
Read source: Segment Sources API tag- Requirements
- A Segment Public API token and a source ID from the workspace.
- Limitations
- A source can have no connected destinations or destinations that are not active. The relationship response does not replace destination delivery monitoring.
Example shell
curl --fail "https://api.segmentapis.com/sources/$SEGMENT_SOURCE_ID/connected-destinations" -H "Authorization: Bearer $SEGMENT_PUBLIC_API_TOKEN"