Segment
Overview
SLUG: SEGMENT
Description
Segment is a customer data platform that helps businesses collect, clean, and control their customer data.
Authentication Details
API Key
Connecting to Segment
Create an auth config
Use the dashboard to create an auth config for the Segment toolkit. This allows you to connect multiple Segment accounts to Composio for agents to use.
Create and Get auth config ID
Click “Create Segment Auth Config”. After creation, copy the displayed ID starting with ac_. This is your auth config ID. This is not a sensitive ID — you can save it in environment variables or a database.
This ID will be used to create connections to the toolkit for a given user.
Connect Your Account
Using API Key
Tools
Executing tools
To prototype you can execute some tools to see the responses and working on the Segment toolkit’s playground
OpenAI (Python)
Anthropic (TypeScript)
Google (Python)
Vercel (TypeScript)
Tool List
SEGMENT_ADD_LABELS_TO_SOURCE
Tool Name: Add Labels to Source
Description
Action Parameters
Action Response
SEGMENT_ALIAS
Tool Name: Segment Alias
Description
Action Parameters
Action Response
SEGMENT_BATCH
Tool Name: Batch Segment Analytics Events
Description
Action Parameters
Action Response
SEGMENT_DELETE_SOURCE
Tool Name: Delete Source
Description
Action Parameters
Action Response
SEGMENT_GET_DAILY_PER_SOURCE_API_CALLS_USAGE
Tool Name: Get Daily Per Source API Calls Usage
Description
Action Parameters
Action Response
SEGMENT_GET_DESTINATION
Tool Name: Get Destination
Description
Action Parameters
Action Response
SEGMENT_GROUP
Tool Name: Segment Group
Description
Action Parameters
Action Response
SEGMENT_IDENTIFY
Tool Name: Segment Identify
Description
Action Parameters
Action Response
SEGMENT_LIST_CONNECTED_WAREHOUSES_FROM_SOURCE
Tool Name: List Connected Warehouses From Source
Description
Action Parameters
Action Response
SEGMENT_LIST_DELIVERY_METRICS_SUMMARY_FROM_DESTINATION
Tool Name: List Delivery Metrics Summary from Destination
Description
Action Parameters
Action Response
SEGMENT_LIST_SCHEMA_SETTINGS_IN_SOURCE
Tool Name: List Schema Settings in Source
Description
Action Parameters
Action Response
SEGMENT_PAGE
Tool Name: Segment Page View
Description
Action Parameters
Action Response
SEGMENT_REMOVE_SOURCE_WRITE_KEY
Tool Name: Remove Source Write Key
Description
Action Parameters
Action Response
SEGMENT_SCREEN
Tool Name: Segment Screen Event
Description
Action Parameters
Action Response
SEGMENT_TRACK
Tool Name: Segment Track Event
Description
Action Parameters
Action Response
SEGMENT_UPDATE_SOURCE
Tool Name: Update Source
Description
Action Parameters
Action Response