What can you do with it?
The Segment API allows you to manage your data infrastructure and ETL pipelines. You can create and manage data warehouses, configure data sources, set up destinations for your data, and handle all aspects of your data integration workflow with comprehensive warehouse management, source configuration, and destination routing.How to use it?
Basic Command Structure
Parameters
Required:action- The action to perform (list, create, get, update, delete)entity- The entity type (warehouse, source, destination)id- Entity ID for specific operations
name- Entity nametype- Warehouse type (redshift, bigquery, snowflake)slug- Entity slug identifierplatform- Platform type (web, mobile, server)categories- Entity categoriesconnection- Connection configuration
Tools
List All Warehouses
Retrieve a list of all warehouses in your Segment workspace. Parameters:limit(optional) - Number of warehouses to returnoffset(optional) - Number of warehouses to skip
Create New Warehouse
Add a new warehouse to your Segment workspace. Parameters:name(required) - Warehouse nametype(required) - Warehouse type (redshift, bigquery, snowflake)connection(required) - Connection configuration objectaccount(for Snowflake) - Snowflake account identifierwarehouse(for Snowflake) - Snowflake warehouse namedatabase(required) - Database nameschema(required) - Schema nameusername(required) - Username for connectionrole(optional) - Role for connection
Get Warehouse by ID
Retrieve details of a specific warehouse using its unique ID. Parameters:warehouse_id(required) - Warehouse ID to retrieve
Update Warehouse
Update the configuration of an existing warehouse. Parameters:warehouse_id(required) - Warehouse ID to updatename(optional) - New warehouse nameconnection(optional) - Updated connection configuration
Delete Warehouse
Remove a warehouse from your Segment workspace. Parameters:warehouse_id(required) - Warehouse ID to delete
List All Sources
Retrieve a list of all sources in your Segment workspace. Parameters:limit(optional) - Number of sources to returnoffset(optional) - Number of sources to skip
Create New Source
Add a new source to your Segment workspace. Parameters:name(required) - Source nameslug(required) - Source slug identifierplatform(required) - Platform type (web, mobile, server)categories(required) - Array of categories (analytics, marketing, crm)
Get Source by ID
Retrieve details of a specific source using its unique ID. Parameters:source_id(required) - Source ID to retrieve
Update Source
Update the configuration of an existing source. Parameters:source_id(required) - Source ID to updatename(optional) - New source nameplatform(optional) - Updated platform typecategories(optional) - Updated categories array
Delete Source
Remove a source from your Segment workspace. Parameters:source_id(required) - Source ID to delete
List All Destinations
Retrieve a list of all destinations in your Segment workspace. Parameters:limit(optional) - Number of destinations to returnoffset(optional) - Number of destinations to skip
Create New Destination
Add a new destination to your Segment workspace. Parameters:name(required) - Destination nameslug(required) - Destination slug identifierplatform(required) - Platform type (web, mobile, server)categories(required) - Array of categories (analytics, marketing, crm, ads)
Get Destination by ID
Retrieve details of a specific destination using its unique ID. Parameters:destination_id(required) - Destination ID to retrieve
Update Destination
Update the configuration of an existing destination. Parameters:destination_id(required) - Destination ID to updatename(optional) - New destination nameplatform(optional) - Updated platform typecategories(optional) - Updated categories array
Delete Destination
Remove a destination from your Segment workspace. Parameters:destination_id(required) - Destination ID to delete

