segment · Capability
Segment Config API
The Segment Config API allows programmatic management of Segment workspaces, sources, destinations, and other configuration resources. It provides endpoints to list workspace sources and destinations, create or delete destinations, and manage tracking plans. As of early 2024, Segment has stopped issuing new Config API tokens and recommends migrating to the Public API for access to the latest features. The Config API remains functional for existing users but is no longer actively developed.
What You Can Do
GET
Getworkspace
— Get workspace
/workspaces/{workspaceName}
GET
Listsources
— List sources
/workspaces/{workspaceName}/sources
POST
Createsource
— Create source
/workspaces/{workspaceName}/sources
GET
Getsource
— Get source
/workspaces/{workspaceName}/sources/{sourceName}
DELETE
Deletesource
— Delete source
/workspaces/{workspaceName}/sources/{sourceName}
GET
Listdestinations
— List destinations
/workspaces/{workspaceName}/sources/{sourceName}/destinations
POST
Createdestination
— Create destination
/workspaces/{workspaceName}/sources/{sourceName}/destinations
GET
Getdestination
— Get destination
/workspaces/{workspaceName}/sources/{sourceName}/destinations/{destinationName}
PATCH
Updatedestination
— Update destination
/workspaces/{workspaceName}/sources/{sourceName}/destinations/{destinationName}
DELETE
Deletedestination
— Delete destination
/workspaces/{workspaceName}/sources/{sourceName}/destinations/{destinationName}
GET
Listtrackingplans
— List tracking plans
/workspaces/{workspaceName}/tracking-plans
POST
Createtrackingplan
— Create tracking plan
/workspaces/{workspaceName}/tracking-plans
MCP Tools
getworkspace
Get workspace
read-only
idempotent
listsources
List sources
read-only
idempotent
createsource
Create source
getsource
Get source
read-only
idempotent
deletesource
Delete source
idempotent
listdestinations
List destinations
read-only
idempotent
createdestination
Create destination
getdestination
Get destination
read-only
idempotent
updatedestination
Update destination
deletedestination
Delete destination
idempotent
listtrackingplans
List tracking plans
read-only
idempotent
createtrackingplan
Create tracking plan