Skip to main content
Segment logo

Segment

Manage Segment: sources, destinations, tracking plans, and events. Exposes 35 actions covering the full API surface the agent needs - read and write.

What it can do

MethodWhat it does
segment_list_workspacesList all workspaces the API token has access to - GET /workspaces.
segment_get_workspaceGet one workspace by ID - GET /workspaces/{id}.
segment_list_sourcesList all sources in the workspace - GET /sources.
segment_get_sourceGet one source by ID - GET /sources/{id}.
segment_create_sourceCreate a new source - POST /sources.
segment_update_sourceUpdate a source - PATCH /sources/{id}.
segment_delete_sourceDelete a source - DELETE /sources/{id}.
segment_enable_sourceEnable a source - PUT /sources/{id}/enabled.
segment_disable_sourceDisable a source - DELETE /sources/{id}/enabled.
segment_list_destinationsList all destinations - GET /destinations.
segment_get_destinationGet one destination by ID - GET /destinations/{id}.
segment_create_destinationCreate a new destination - POST /destinations.
segment_update_destinationUpdate a destination - PATCH /destinations/{id}.
segment_delete_destinationDelete a destination - DELETE /destinations/{id}.
segment_enable_destinationEnable a destination - PUT /destinations/{id}/enabled.
segment_disable_destinationDisable a destination - DELETE /destinations/{id}/enabled.
segment_list_tracking_plansList all tracking plans - GET /tracking-plans.
segment_get_tracking_planGet one tracking plan by ID - GET /tracking-plans/{id}.
segment_create_tracking_planCreate a tracking plan - POST /tracking-plans.
segment_update_tracking_planUpdate a tracking plan - PATCH /tracking-plans/{id}.
segment_delete_tracking_planDelete a tracking plan - DELETE /tracking-plans/{id}.
segment_list_tracking_plan_rulesList rules in a tracking plan - GET /tracking-plans/{id}/rules.
segment_add_tracking_plan_ruleAdd a rule to a tracking plan - POST /tracking-plans/{id}/rules.
segment_list_functionsList all functions - GET /functions.
segment_get_functionGet one function by ID - GET /functions/{id}.
segment_create_functionCreate a function - POST /functions.
segment_update_functionUpdate a function - PATCH /functions/{id}.
segment_delete_functionDelete a function - DELETE /functions/{id}.
segment_list_subscriptionsList all subscriptions (webhooks) - GET /subscriptions.
segment_create_subscriptionCreate a subscription (webhook) - POST /subscriptions.
segment_delete_subscriptionDelete a subscription - DELETE /subscriptions/{id}.
segment_list_catalog_sourcesList all available source types in the catalog - GET /catalog/sources.
segment_get_catalog_sourceGet metadata for one source type in the catalog - GET /catalog/sources/{catalogName}.
segment_list_catalog_destinationsList all available destination types in the catalog - GET /catalog/destinations.
segment_get_catalog_destinationGet metadata for one destination type in the catalog - GET /catalog/destinations/{catalogName}.

How to get credentials

This connector uses an API key / token. Create one in the provider dashboard, then paste it into FlyMyAI:

Fields to fill in FlyMyAI

FlyMyAI fieldWhere it comes from
SEGMENT_API_TOKENSegment - Settings - Workspace - Access management - Tokens.

Troubleshooting

  • 401 Unauthorized / 403 Forbidden - the token is wrong, expired, or missing a required scope - regenerate it.
  • 429 Too Many Requests - you hit the provider rate limit; retry after a short backoff.
  • Unexpected 4xx on writes - double-check required fields; the agent confirms before write actions.
We love our partners - FlyMy.AI builds with the best. Thanks, Segment!