Segment MCP server
207 operations8 webhooks
Twilio Segment: send track, identify, page, screen, group and alias calls, and manage the workspace through the Public API: sources, destinations, warehouses, tracking plans, functions, deletion and suppression, users, audiences and Reverse ETL (207 operations).
Try Segment with your agent
Connect Segment, then paste this into Claude, ChatGPT or Cursor. For ideas from other apps, see the use cases.
Using Corsair, show me what you can do in Segment on my account, then run one read-only example and show me the result.
Segment tools and triggers
Tools are what your agent can do in Segment through Corsair's MCP server. Triggers are the Segment events a routine can start from.
Audiences
- CreateWrite
Create Audience. Creates Audience. In order to successfully call this endpoint, the specified Workspace needs to have the Audience feature enabled.
audiences.create
- Create PreviewRead-only
Create Audience Preview. Previews Audience. In order to successfully call this endpoint, the specified Workspace needs to have the Audience feature enabled. This endpoint also has a rate limit of 700 requests per month per spaceId, which is lower than the default due to access pattern restrictions. Segment limits previews per minute and per month, and each attempt counts: the plugin sends it once and does not retry a 429 or a 5xx.
audiences.createPreview
- DeleteDestructive
Remove Audience from Space. Deletes an Audience by id and spaceId. In order to successfully call this endpoint, the specified Workspace needs to have the Audience feature enabled. Cannot be undone.
audiences.delete
- Destinations.AddWrite
Add Destination to Audience. Establishes a connection between an audience and a Destination. To start syncing data, you must create an Activation for the connection created here. Note that the Destination must be added to Engage through the Engage Settings page within the App before creating the connection through the API. Alpha in Segment's API: it may change.
audiences.destinations.add
- Destinations.ListRead-only
List Destinations from Audience. Lists all Destinations from an Audience. In order to successfully call this endpoint, the specified Workspace needs to have the Audience feature enabled. Alpha in Segment's API: it may change.
audiences.destinations.list
- Destinations.List SupportedRead-only
List Supported Destinations from Audience. Lists the Destinations that have been reviewed and validated for activation with this audience type. Use this endpoint to discover the available action ids and the Destination fields that can be mapped before creating an Activation. Alpha in Segment's API: it may change.
audiences.destinations.listSupported
- Destinations.RemoveDestructive
Remove Destination from Audience. Removes a Destination from an Audience. If there are activations associated with the Destination, the request will return a 409 Conflict error. In order to successfully call this endpoint, the specified Workspace needs to have the Audience feature enabled. Alpha in Segment's API: it may change. Cannot be undone.
audiences.destinations.remove
- Destinations.UpdateWrite
Update Destination for Audience. Updates a Destination for an Audience. In order to successfully call this endpoint, the specified Workspace needs to have the Audience feature enabled. Alpha in Segment's API: it may change.
audiences.destinations.update
- GetRead-only
Get Audience. Returns the Audience by id and spaceId. Supports including audience schedules using ?include=schedules. In order to successfully call this endpoint, the specified Workspace needs to have the Audience feature enabled.
audiences.get
- Get PreviewRead-only
Get Audience Preview. Reads the results of an audience preview. In order to successfully call this endpoint, the specified Workspace needs to have the Audience feature enabled.
audiences.getPreview
- ListRead-only
List Audiences. Returns Audiences by spaceId. Supports including audience schedules using ?include=schedules. In order to successfully call this endpoint, the specified Workspace needs to have the Audience feature enabled.
audiences.list
- List ConsumersRead-only
List Audience Consumers from Space And Audience. Returns the list of consumers for the given audience. In order to successfully call this endpoint, the specified Workspace needs to have the Audience feature enabled.
audiences.listConsumers
- RunDestructive
Force Execute Audience Run. The ability to force execute a run for an Audience is limited to Linked Audiences (audienceType = LINKED). In order to successfully call this endpoint, the specified Workspace needs to have the Audience feature enabled. Recomputes the audience now and sends changes to its connected destinations.
audiences.run
- Schedules.CreateWrite
Add Audience Schedule to Audience. The ability to configure the run schedule for an Audience is limited to Linked Audiences (audienceType = LINKED). Note that if a Linked Audience remains disabled for 90 days Segment will delete the associated schedule and a new schedule will need to be created.
audiences.schedules.create
- Schedules.DeleteDestructive
Remove Audience Schedule from Audience. Deletes an audience schedule for a Linked Audience (audienceType = LINKED). In order to successfully call this endpoint, the specified Workspace needs to have the Audience feature enabled. Cannot be undone.
audiences.schedules.delete
- Schedules.GetRead-only
Get Audience Schedule from Space And Audience. Returns the schedule for the given audience and scheduleId. In order to successfully call this endpoint, the specified Workspace needs to have the Audience feature enabled.
audiences.schedules.get
- Schedules.ListRead-only
List Audience Schedules from Space And Audience. Returns the list of schedules for the given audience. In order to successfully call this endpoint, the specified Workspace needs to have the Audience feature enabled.
audiences.schedules.list
- Schedules.UpdateWrite
Update Audience Schedule for Audience. Updates an audience schedule for a Linked Audience (audienceType = LINKED). In order to successfully call this endpoint, the specified Workspace needs to have the Audience feature enabled.
audiences.schedules.update
- UpdateWrite
Update Audience for Space. Updates the Audience. In order to successfully call this endpoint, the specified Workspace needs to have the Audience feature enabled. Note that when an Audience is updated, the Audience will be locked from future edits until the changes have been incorporated.
audiences.update
Destinations
- CreateWrite
Create Destination. Creates a new Destination.
destinations.create
- DeleteDestructive
Delete Destination. Deletes an existing Destination. Config API omitted fields:. - catalogId. Cannot be undone.
destinations.delete
- Filters.CreateWrite
Create Filter for Destination. Creates a filter in a Destination.
destinations.filters.create
- Filters.DeleteDestructive
Remove Filter from Destination. Deletes a Destination filter. Cannot be undone.
destinations.filters.delete
- Filters.GetRead-only
Get Filter in Destination. Gets a Destination filter by id.
destinations.filters.get
- Filters.ListRead-only
List Filters from Destination. Lists filters for a Destination.
destinations.filters.list
- Filters.PreviewRead-only
Preview Destination Filter. Simulates the application of a Destination filter to a provided JSON payload.
destinations.filters.preview
- Filters.UpdateWrite
Update Filter for Destination. Updates a filter in a Destination. When called, this endpoint may generate one or more of the following audit trail events:* Destination Filter Enabled. * Destination Filter Disabled.
destinations.filters.update
- GetRead-only
Get Destination. Returns a Destination by its id. Config API omitted fields:. - catalogId.
destinations.get
- Get Delivery MetricsRead-only
List Delivery Metrics Summary from Destination. Get an event delivery metrics summary from a Destination. Based on the granularity chosen, there are restrictions on the time range you can query:. Minute:. - Max time range: 4 hours. - Oldest possible start time: 48 hours in the past. Hour:. - Max Time range: 7 days. Beta in Segment's API.
destinations.getDeliveryMetrics
- ListRead-only
List Destinations. Returns a list of Destinations.
destinations.list
- Subscriptions.CreateWrite
Create Destination Subscription. Creates a new Destination subscription. In order to successfully call this endpoint, the specified Workspace needs to have the Destination Subscriptions feature enabled. Alpha in Segment's API: it may change.
destinations.subscriptions.create
- Subscriptions.DeleteDestructive
Remove Subscription from Destination. Deletes an existing Destination subscription. In order to successfully call this endpoint, the specified Workspace needs to have the Destination Subscriptions feature enabled. Alpha in Segment's API: it may change. Cannot be undone.
destinations.subscriptions.delete
- Subscriptions.GetRead-only
Get Subscription from Destination. Gets a Destination subscription by id. In order to successfully call this endpoint, the specified Workspace needs to have the Destination Subscriptions feature enabled. Alpha in Segment's API: it may change.
destinations.subscriptions.get
- Subscriptions.ListRead-only
List Subscriptions from Destination. Lists subscriptions for a Destination. In order to successfully call this endpoint, the specified Workspace needs to have the Destination Subscriptions feature enabled. Alpha in Segment's API: it may change.
destinations.subscriptions.list
- Subscriptions.UpdateWrite
Update Subscription for Destination. Updates an existing Destination subscription. In order to successfully call this endpoint, the specified Workspace needs to have the Destination Subscriptions feature enabled. Alpha in Segment's API: it may change.
destinations.subscriptions.update
- UpdateWrite
Update Destination. Updates an existing Destination. Note: if you attempt to update read-only settings for your destination you'll encounter the following behavior:. * If only read-only properties are being updated, the endpoint will return an HTTP 400 error.
destinations.update
Warehouses
- Add Source ConnectionWrite
Add Connection from Source to Warehouse. Connects a Source to a Warehouse.
warehouses.addSourceConnection
- CreateWrite
Create Warehouse. Creates a new Warehouse.
warehouses.create
- DeleteDestructive
Delete Warehouse. Deletes an existing Warehouse. Cannot be undone.
warehouses.delete
- GetRead-only
Get Warehouse. Returns a Warehouse by its id.
warehouses.get
- Get Advanced Sync ScheduleRead-only
Get Advanced Sync Schedule from Warehouse. Returns the advanced sync schedule for a Warehouse.
warehouses.getAdvancedSyncSchedule
- Get Connection StateRead-only
Get Connection State from Warehouse. Verifies the state of Warehouse connection settings.
warehouses.getConnectionState
- ListRead-only
List Warehouses. Returns a list of Warehouses.
warehouses.list
- List Connected SourcesRead-only
List Connected Sources from Warehouse. Returns the list of Sources that are connected to a Warehouse.
warehouses.listConnectedSources
- List Selective SyncsRead-only
List Selective Syncs from Warehouse And Source. Returns the schema for a Warehouse, including Sources, Collections, and Properties.
warehouses.listSelectiveSyncs
- List Source SyncsRead-only
List Syncs from Warehouse And Source. Returns the overview of syncs for a Source connected to a Warehouse.
warehouses.listSourceSyncs
- List SyncsRead-only
List Syncs from Warehouse. Returns the overview of syncs for every Source connected to a Warehouse.
warehouses.listSyncs
- Remove Source ConnectionDestructive
Remove Source Connection from Warehouse. Disconnects a Source from a Warehouse. Cannot be undone.
warehouses.removeSourceConnection
- Replace Advanced Sync ScheduleWrite
Replace Advanced Sync Schedule for Warehouse. Updates the advanced sync schedule for a Warehouse, replacing the sync schedule with a new schedule.
warehouses.replaceAdvancedSyncSchedule
- UpdateWrite
Update Warehouse. Updates an existing Warehouse. When called, this endpoint may generate one or more of the following audit trail events:* Storage Destination Modified. * Storage Destination Enabled.
warehouses.update
- Update Selective SyncWrite
Update Selective Sync for Warehouse. Configures the schema for a Warehouse, including Sources, Collections, and Properties.
warehouses.updateSelectiveSync
- ValidateRead-only
Create Validation in Warehouse. Validates input settings against a Warehouse.
warehouses.validate
Functions
- CreateWrite
Create Function. Creates a Function. In order to successfully call this endpoint, the specified Workspace needs to have the Functions feature enabled.
functions.create
- DeleteDestructive
Delete Function. Deletes a Function. In order to successfully call this endpoint, the specified Workspace needs to have the Functions feature enabled. Cannot be undone.
functions.delete
- DeployDestructive
Create Function Deployment. Deploys a Function. Only applicable to Source Function instances. In order to successfully call this endpoint, the specified Workspace needs to have the Functions feature enabled. Deploys the function code: it starts running on live events.
functions.deploy
- GetRead-only
Get Function. Gets a Function. In order to successfully call this endpoint, the specified Workspace needs to have the Functions feature enabled.
functions.get
- Get VersionRead-only
Get Function Version. Gets a Function version. In order to successfully call this endpoint, the specified Workspace needs to have the Functions feature enabled. Alpha in Segment's API: it may change.
functions.getVersion
- Insert Instances.CreateWrite
Create Insert Function Instance. Creates an insert Function instance connected to the given Destination. In order to successfully call this endpoint, the specified Workspace needs to have the Functions feature enabled. Alpha in Segment's API: it may change.
functions.insertInstances.create
- Insert Instances.DeleteDestructive
Delete Insert Function Instance. Deletes an insert Function instance. In order to successfully call this endpoint, the specified Workspace needs to have the Functions feature enabled. Alpha in Segment's API: it may change. Cannot be undone.
functions.insertInstances.delete
- Insert Instances.GetRead-only
Get Insert Function Instance. Gets an insert Function instance. In order to successfully call this endpoint, the specified Workspace needs to have the Functions feature enabled. Alpha in Segment's API: it may change.
functions.insertInstances.get
- Insert Instances.ListRead-only
List Insert Function Instances. Lists all insert Function instances connected to the given insert Function. In order to successfully call this endpoint, the specified Workspace needs to have the Functions feature enabled. Alpha in Segment's API: it may change.
functions.insertInstances.list
- Insert Instances.UpdateWrite
Update Insert Function Instance. Updates an insert Function instance connected to the given Destination. In order to successfully call this endpoint, the specified Workspace needs to have the Functions feature enabled. Alpha in Segment's API: it may change.
functions.insertInstances.update
- ListRead-only
List Functions. Lists all Functions in a Workspace. In order to successfully call this endpoint, the specified Workspace needs to have the Functions feature enabled.
functions.list
- List VersionsRead-only
List Function Versions. Lists versions for a Function in a Workspace. In order to successfully call this endpoint, the specified Workspace needs to have the Functions feature enabled. Alpha in Segment's API: it may change.
functions.listVersions
- Restore VersionDestructive
Restore Function Version. Restore an old Function version as the latest version. In order to successfully call this endpoint, the specified Workspace needs to have the Functions feature enabled. Alpha in Segment's API: it may change.
functions.restoreVersion
- UpdateWrite
Update Function. Updates a Function. In order to successfully call this endpoint, the specified Workspace needs to have the Functions feature enabled. Config API omitted fields:. - updateMask.
functions.update
Sources
- Add LabelsWrite
Add Labels to Source. Adds an existing label to a Source.
sources.addLabels
- CreateWrite
Create Source. Creates a new Source. (POST /sources)
sources.create
- Create Write KeyDestructive
Create Write Key for Source. Creates a new Write Key for the Source. Alpha in Segment's API: it may change. Mints a new write key for the source: a credential, treat it as a secret.
sources.createWriteKey
- DeleteDestructive
Delete Source. Deletes an existing Source. Cannot be undone.
sources.delete
- GetRead-only
Get Source. Returns a Source by its id. The source carries its writeKeys: treat them as secrets.
sources.get
- Get Schema SettingsRead-only
List Schema Settings in Source. Retrieves the schema configuration settings for a Source. If Protocols is not enabled for the Source, the configurations specific to Protocols will have default values.
sources.getSchemaSettings
- ListRead-only
List Sources. Returns a list of Sources. Each source carries its writeKeys: treat them as secrets.
sources.list
- List Connected DestinationsRead-only
List Connected Destinations from Source. Returns a list of Destinations connected to a Source.
sources.listConnectedDestinations
- List Connected WarehousesRead-only
List Connected Warehouses from Source. Returns a list of Warehouses connected to a Source.
sources.listConnectedWarehouses
- Remove Write KeyDestructive
Remove Write Key from Source. Removes a Write Key from a Source. Alpha in Segment's API: it may change. Every sender still using this write key stops being accepted. Cannot be undone.
sources.removeWriteKey
- Replace LabelsWrite
Replace Labels in Source. Replaces all labels in a Source.
sources.replaceLabels
- UpdateWrite
Update Source. Updates an existing Source. When called, this endpoint may generate one or more of the following audit trail events:* Source Modified. * Source Enabled. * Source Settings Modified. * Source Disabled. Config API omitted fields:. - updateMask.
sources.update
- Update Schema SettingsWrite
Update Schema Settings in Source. Updates the schema configuration for a Source. If Protocols is not enabled for the Source, any updates to Protocols-specific configurations will not be applied. Config API omitted fields:. - updateMask.
sources.updateSchemaSettings
Tracking Plans
- Add SourceWrite
Add Source to Tracking Plan. Connects a Source to a Tracking Plan. In order to successfully call this endpoint, the specified Workspace needs to have the Protocols feature enabled.
trackingPlans.addSource
- CreateWrite
Create Tracking Plan. Creates a Tracking Plan. In order to successfully call this endpoint, the specified Workspace needs to have the Protocols feature enabled.
trackingPlans.create
- DeleteDestructive
Delete Tracking Plan. Deletes a Tracking Plan. In order to successfully call this endpoint, the specified Workspace needs to have the Protocols feature enabled. Cannot be undone.
trackingPlans.delete
- GetRead-only
Get Tracking Plan. Returns a Tracking Plan. In order to successfully call this endpoint, the specified Workspace needs to have the Protocols feature enabled.
trackingPlans.get
- ListRead-only
List Tracking Plans. Returns a list of Tracking Plans. In order to successfully call this endpoint, the specified Workspace needs to have the Protocols feature enabled.
trackingPlans.list
- List RulesRead-only
List Rules from Tracking Plan. Lists Tracking Plan rules. In order to successfully call this endpoint, the specified Workspace needs to have the Protocols feature enabled.
trackingPlans.listRules
- List SourcesRead-only
List Sources from Tracking Plan. Lists Sources connected to a Tracking Plan. In order to successfully call this endpoint, the specified Workspace needs to have the Protocols feature enabled. This endpoint requires the user to have at least the following permission(s):. * Source Read-only. * Tracking Plan Read-only.
trackingPlans.listSources
- Remove RulesDestructive
Remove Rules from Tracking Plan. Deletes Tracking Plan rules. In order to successfully call this endpoint, the specified Workspace needs to have the Protocols feature enabled. Cannot be undone.
trackingPlans.removeRules
- Remove SourceDestructive
Remove Source from Tracking Plan. Disconnects a Source from a Tracking Plan. In order to successfully call this endpoint, the specified Workspace needs to have the Protocols feature enabled. Cannot be undone.
trackingPlans.removeSource
- Replace RulesDestructive
Replace Rules in Tracking Plan. Replaces Tracking Plan rules. In order to successfully call this endpoint, the specified Workspace needs to have the Protocols feature enabled.
trackingPlans.replaceRules
- UpdateWrite
Update Tracking Plan. Updates a Tracking Plan. In order to successfully call this endpoint, the specified Workspace needs to have the Protocols feature enabled. Config API omitted fields:. - updateMask.
trackingPlans.update
- Update RulesWrite
Update Rules in Tracking Plan. Updates Tracking Plan rules. In order to successfully call this endpoint, the specified Workspace needs to have the Protocols feature enabled.
trackingPlans.updateRules
User Groups
- Add PermissionsWrite
Add Permissions to User Group. Adds a list of access permissions to a user group. When called, this endpoint may generate one or more of the following audit trail events:* Policy Created. * User Group Policy Updated.
userGroups.addPermissions
- Add UsersWrite
Add Users to User Group. Adds a list of users or invites to a user group. When called, this endpoint may generate one or more of the following audit trail events:* Subjects Added to Group. * User Added To User Group.
userGroups.addUsers
- CreateWrite
Create User Group. Creates a user group. When called, this endpoint may generate one or more of the following audit trail events:* User Group Created. * Policy Created.
userGroups.create
- DeleteDestructive
Delete User Group. Removes a user group from a Workspace. Cannot be undone.
userGroups.delete
- GetRead-only
Get User Group. Returns a user group. (GET /groups/{userGroupId})
userGroups.get
- ListRead-only
List User Groups. Returns all user groups.
userGroups.list
- List InvitesRead-only
List Invites from User Group. Returns the emails of invitees to a user group.
userGroups.listInvites
- List UsersRead-only
List Users from User Group. Returns users belonging to a user group.
userGroups.listUsers
- Remove UsersDestructive
Remove Users from User Group. Removes one or multiple users or invites from a user group by email. When called, this endpoint may generate one or more of the following audit trail events:* Group Memberships Deleted. * User Removed From User Group. Cannot be undone.
userGroups.removeUsers
- Replace PermissionsDestructive
Replace Permissions for User Group. Updates the list of access permissions for a user group.
userGroups.replacePermissions
- Replace UsersDestructive
Replace Users in User Group. Replaces the members of a user group by email. When called, this endpoint may generate one or more of the following audit trail events:* Subjects Added to Group. * User Added To User Group. * Group Memberships Deleted.
userGroups.replaceUsers
- UpdateWrite
Update User Group. Updates a user group for a Workspace.
userGroups.update
Spaces
- GetRead-only
Get Space. Returns the Space by id. In order to successfully call this endpoint, the specified Workspace needs to have the Spaces feature enabled. Alpha in Segment's API: it may change.
spaces.get
- ListRead-only
List Spaces. List Spaces. In order to successfully call this endpoint, the specified Workspace needs to have the Spaces feature enabled. Alpha in Segment's API: it may change.
spaces.list
- Schema.List Entity PathsRead-only
List Entity Paths. Returns a list of Entity Paths for a Space. Alpha in Segment's API: it may change.
spaces.schema.listEntityPaths
- Schema.List Entity PropertiesRead-only
List Properties from Entity. Returns a list of Properties for an Entity in a Space. Forward-only pagination : this endpoint does not support backward traversal. The pagination.previous field is always absent; use pagination.next to advance through pages. Alpha in Segment's API: it may change.
spaces.schema.listEntityProperties
- Schema.List Entity Property Sample ValuesRead-only
List Sample Values from Entity Property. Returns sample values for an Entity Property in a Space. Alpha in Segment's API: it may change.
spaces.schema.listEntityPropertySampleValues
- Schema.List Event PropertiesRead-only
List Properties from Event. Returns a list of Properties for an Event in a Space. Alpha in Segment's API: it may change.
spaces.schema.listEventProperties
- Schema.List Event Property Sample ValuesRead-only
List Sample Values from Event Property. Returns sample values for an Event Property in a Space. Alpha in Segment's API: it may change.
spaces.schema.listEventPropertySampleValues
- Schema.List EventsRead-only
List Events. Returns a list of Events for a Space. Alpha in Segment's API: it may change.
spaces.schema.listEvents
- Schema.List Trait Sample ValuesRead-only
List Sample Values from Trait. Returns sample values for a Trait in a Space. Alpha in Segment's API: it may change.
spaces.schema.listTraitSampleValues
- Schema.List TraitsRead-only
List Traits. Returns a list of Traits for a Space. Forward-only pagination : this endpoint does not support backward traversal. The pagination.previous field is always absent; use pagination.next to advance through pages. Alpha in Segment's API: it may change.
spaces.schema.listTraits
Reverse Etl
- Models.CreateWrite
Create Reverse Etl Model. Creates a new Reverse ETL Model. Alpha in Segment's API: it may change.
reverseEtl.models.create
- Models.DeleteDestructive
Delete Reverse Etl Model. Deletes an existing Model. Alpha in Segment's API: it may change. Cannot be undone.
reverseEtl.models.delete
- Models.GetRead-only
Get Reverse Etl Model. Returns a Reverse ETL Model by its id. Alpha in Segment's API: it may change.
reverseEtl.models.get
- Models.ListRead-only
List Reverse Etl Models. Returns a list of Reverse ETL Models. Alpha in Segment's API: it may change.
reverseEtl.models.list
- Models.UpdateWrite
Update Reverse Etl Model. Updates an existing Reverse ETL Model. When called, this endpoint may generate one or more of the following audit trail events:* Model Settings Saved. * Model State Change Toggled. Alpha in Segment's API: it may change.
reverseEtl.models.update
- Syncs.CancelDestructive
Cancel Reverse ETL Sync for Model. Cancels a sync for a Reverse ETL Connection. It might take a few seconds to completely cancel the sync. Will return an error if the sync is already completed or cancelled. Alpha in Segment's API: it may change.
reverseEtl.syncs.cancel
- Syncs.CreateDestructive
Create Reverse ETL Manual Sync. Triggers a manual sync for a Reverse ETL Connection. In the request body, the subscription id is the id that follows after /mappings/ portion in the URL of the sync. Alpha in Segment's API: it may change. Starts a sync now: rows go out to the connected destination.
reverseEtl.syncs.create
- Syncs.GetRead-only
Get Reverse ETL Sync Status. Get the sync status for a Reverse ETL sync. The sync status includes all detailed information about the sync - sync status, duration, details about the extract and load phase if applicable, etc. Alpha in Segment's API: it may change.
reverseEtl.syncs.get
- Syncs.ListRead-only
List Reverse ETL Sync Statuses from Model And Subscription Id. Get the sync statuses for a Reverse ETL mapping subscription. The sync status includes all detailed information about the sync - sync status, duration, details about the extract and load phase if applicable, etc. Alpha in Segment's API: it may change.
reverseEtl.syncs.list
Regulations
- CreateDestructive
Create Workspace Regulation. Creates a Workspace-scoped regulation. Config API omitted fields:. - attributes,. - userAgent. Rate limit headers will be updated to reflect regulation-specific limits (tracked separately for Segment-only vs Segment & Destination regulation types):. Starts a deletion or suppression run over the subject ids. It cannot be cancelled and deleted data cannot be recovered; poll regulations.get until overallStatus is FINISHED, PARTIAL_SUCCESS or FAILED.
regulations.create
- Create For Cloud SourceDestructive
Create Cloud Source Regulation. Creates a Source-scoped regulation. Please Note: Suppression rules at the Workspace level take precedence over those at the Source level. Starts a deletion run on a cloud-mode source. It cannot be cancelled and deleted data cannot be recovered.
regulations.createForCloudSource
- Create For SourceDestructive
Create Source Regulation. Creates a Source-scoped regulation. Please Note: Suppression rules at the Workspace level take precedence over those at the Source level. Starts a deletion or suppression run limited to one source. It cannot be cancelled and deleted data cannot be recovered.
regulations.createForSource
- GetRead-only
Get Regulation. Gets a regulation from the Workspace. Config API omitted fields:. - parent.
regulations.get
- ListRead-only
List Workspace Regulations. Lists all Workspace-scoped regulations. Please note: List Workspace regulations only returns deletion requests from the past 90 days. Deletion requests older than 90 days are not retained and will result in 404 resource not found.
regulations.list
- List For SourceRead-only
List Regulations from Source. Lists all Source-scoped regulations. Please note: List regulations for Source only returns deletion requests from the past 90 days. Deletion requests older than 90 days are not retained and will result in 404 resource not found.
regulations.listForSource
- List SuppressionsRead-only
List Suppressions. Lists all suppressions in a given Workspace.
regulations.listSuppressions
Tracking
- AliasWrite
Merge two user identities. Merges two identities of one user (a previous anonymous or old id and the new userId) in destinations that need it, such as Mixpanel. Most destinations merge on identify and do not need alias. Tracking API: sent with the source write key.
tracking.alias
- BatchWrite
Send a batch of calls. Sends up to 2,500 calls and 500 KB of identify, track, page, screen, group and alias calls in one request (each message at most 32 KB). Use it to import historical data or to save requests. Tracking API: sent with the source write key.
tracking.batch
- GroupWrite
Associate a user with a group. Ties a user to a group (a company, account or team) and records traits about the group. Tracking API: sent with the source write key.
tracking.group
- IdentifyWrite
Identify a user. Ties a user to their actions and records traits about them (email, name, plan). Traits stay on the user profile in destinations that keep one. Tracking API: sent with the source write key to api.segment.io (events.eu1.segmentapis.com in the EU). Segment answers 200 for every call it can parse; check the source debugger for what arrived.
tracking.identify
- PageWrite
Record a page view. Records that a user viewed a page of a website. Tracking API: sent with the source write key.
tracking.page
- ScreenWrite
Record a screen view. Records that a user viewed a screen of a mobile app. Tracking API: sent with the source write key.
tracking.screen
- TrackWrite
Track an event. Records an action the user performed, with properties describing it ("Order Completed" with revenue). Tracking API: sent with the source write key. Events go on to every destination connected to the source.
tracking.track
Activations
- Batch QueryRead-only
Batch Query Activations for Space. Lists Activations in bulk across many Audiences in one call. Intended for bulk reads, for example pulling activation metadata for hundreds of audiences on a schedule, so callers don't need one listActivationsFromAudience call per audience. Alpha in Segment's API: it may change.
activations.batchQuery
- CreateDestructive
Add Activation to Audience. Defines how audience data is sent to a Destination. This step enables the data sync. You must establish a connection (Add Destination to Audience) for this audience before an Activation can be created. Alpha in Segment's API: it may change. Starts sending the audience to the destination once the activation is enabled.
activations.create
- DeleteDestructive
Remove Activation from Audience. Deletes an Activation. Alpha in Segment's API: it may change. Cannot be undone.
activations.delete
- GetRead-only
Get Activation from Audience. Gets a single Activation by id. Alpha in Segment's API: it may change.
activations.get
- ListRead-only
List Activations from Audience. Lists all Activations. Alpha in Segment's API: it may change.
activations.list
- UpdateDestructive
Update Activation for Audience. Updates an Activation. Alpha in Segment's API: it may change. With performResync true, Segment sends the whole audience to the destination again.
activations.update
Catalog
- Get DestinationRead-only
Get Destination Metadata. Returns a Destination catalog item by its id.
catalog.getDestination
- Get SourceRead-only
Get Source Metadata. Returns a Source catalog item by its id.
catalog.getSource
- Get WarehouseRead-only
Get Warehouse Metadata. Returns a Warehouse catalog item by its id.
catalog.getWarehouse
- List DestinationsRead-only
Get Destinations Catalog. Returns a list of all available Destinations in the Segment catalog.
catalog.listDestinations
- List SourcesRead-only
Get Sources Catalog. Returns a list of all available Sources in the Segment catalog.
catalog.listSources
- List WarehousesRead-only
Get Warehouses Catalog. Returns a list of all available Warehouses in the Segment catalog.
catalog.listWarehouses
Credentials
- CreateWrite
Create Credential. Creates a new Credential. This endpoint requires the user to have at least the following permission(s):. * Workspace Owner. * Warehouse Admin. * Source Admin. * Entities Admin. * Unify and Engage Admin.
credentials.create
- DeleteDestructive
Delete Credential. Deletes an existing Credential. Fails with a 409 Conflict if the Credential is still in use by a Warehouse or Source (including a disabled one). Cannot be undone.
credentials.delete
- GetRead-only
Get Credential. Returns a Credential by its id. This endpoint requires the user to have at least the following permission(s):. * Workspace Owner. * Warehouse Admin. * Source Admin. * Entities Admin. * Unify and Engage Admin.
credentials.get
- ListRead-only
List Credentials. Returns a list of Credentials. This endpoint requires the user to have at least the following permission(s):. * Workspace Owner. * Warehouse Admin. * Source Admin. * Entities Admin. * Unify and Engage Admin.
credentials.list
- List ConsumersRead-only
List Credential Consumers. Returns the Warehouses and Sources that use a Credential. This endpoint requires the user to have at least the following permission(s):. * Workspace Owner. * Warehouse Admin. * Source Admin. * Entities Admin. * Unify and Engage Admin.
credentials.listConsumers
- UpdateWrite
Update Credential. Updates an existing Credential. All Warehouses using this Credential are affected immediately. This endpoint requires the user to have at least the following permission(s):. * Workspace Owner.
credentials.update
Delivery Overview
- Get Failed DeliveryRead-only
Get Egress Failed Metrics from Delivery Overview. Get events that failed to be delivered to Destination. Beta in Segment's API.
deliveryOverview.getFailedDelivery
- Get Failed On IngestRead-only
Get Ingress Failed Metrics from Delivery Overview. Get events that failed on ingest. Beta in Segment's API.
deliveryOverview.getFailedOnIngest
- Get Filtered At DestinationRead-only
Get Filtered At Destination Metrics from Delivery Overview. Get events that were filtered at Destination. Beta in Segment's API.
deliveryOverview.getFilteredAtDestination
- Get Filtered At SourceRead-only
Get Filtered At Source Metrics from Delivery Overview. Get events that were filtered at Source. Beta in Segment's API.
deliveryOverview.getFilteredAtSource
- Get Successful DeliveryRead-only
Get Egress Success Metrics from Delivery Overview. Get events successfully delivered to Destination. Beta in Segment's API.
deliveryOverview.getSuccessfulDelivery
- Get Successfully ReceivedRead-only
Get Ingress Success Metrics from Delivery Overview. Get events that were successfully received by Segment. Beta in Segment's API.
deliveryOverview.getSuccessfullyReceived
Profiles Sync
- CreateWrite
Create Profiles Warehouse. Creates a new Profiles Warehouse. WARN : Please be careful to not use this API to link multiple Warehouses to a single Space. This is not officially supported. Although the Warehouse will be linked, it won't show up on the UI and can lead to various other unforeseen issues. Alpha in Segment's API: it may change.
profilesSync.create
- DeleteDestructive
Remove Profiles Warehouse from Space. Deletes an existing Profiles Warehouse. Alpha in Segment's API: it may change. Cannot be undone.
profilesSync.delete
- ListRead-only
List Profiles Warehouse in Space. Lists all Profile Warehouses for a given space id. Alpha in Segment's API: it may change.
profilesSync.list
- List Selective SyncsRead-only
List Selective Syncs from Warehouse And Space. Returns the schema for a Space Warehouse connection, including Collections and Properties. Alpha in Segment's API: it may change.
profilesSync.listSelectiveSyncs
- UpdateWrite
Update Profiles Warehouse for Space Warehouse. Updates an existing Profiles Warehouse. Alpha in Segment's API: it may change.
profilesSync.update
- Update Selective SyncWrite
Update Selective Sync for Warehouse And Space. Updates the schema for a Space Warehouse connection, including Collections and Properties. Alpha in Segment's API: it may change.
profilesSync.updateSelectiveSync
Users
- Add PermissionsWrite
Add Permissions to User. Adds a list of access permissions to a user. When called, this endpoint may generate one or more of the following audit trail events:* Policy Created. * User Policy Updated.
users.addPermissions
- DeleteDestructive
Delete Users. Removes one or multiple users. Removes the users from the workspace. Cannot be undone.
users.delete
- GetRead-only
Get User. Returns a user given their id.
users.get
- ListRead-only
List Users. Returns a list of users with access to the Workspace.
users.list
- List GroupsRead-only
List User Groups from User. Returns all groups a user belongs to.
users.listGroups
- Replace PermissionsDestructive
Replace Permissions for User. Updates the list of access permissions for a user.
users.replacePermissions
Computed Traits
- CreateWrite
Create Computed Trait. Creates a Computed Trait. In order to successfully call this endpoint, the specified Workspace needs to have the Computed Trait feature enabled. Note: The definition for a Computed Trait created using the API is not editable through the Segment App. Alpha in Segment's API: it may change.
computedTraits.create
- DeleteDestructive
Remove Computed Trait from Space. Deletes a Computed Trait by id and spaceId. In order to successfully call this endpoint, the specified Workspace needs to have the Computed Trait feature enabled. Alpha in Segment's API: it may change. Cannot be undone.
computedTraits.delete
- GetRead-only
Get Computed Trait. Returns the Computed Trait by id and spaceId. In order to successfully call this endpoint, the specified Workspace needs to have the Computed Trait feature enabled. Alpha in Segment's API: it may change.
computedTraits.get
- ListRead-only
List Computed Traits. Returns Computed Traits by spaceId. In order to successfully call this endpoint, the specified Workspace needs to have the Computed Trait feature enabled. Alpha in Segment's API: it may change.
computedTraits.list
- UpdateWrite
Update Computed Trait for Space. Updates the Computed Trait. In order to successfully call this endpoint, the specified Workspace needs to have the Computed Trait feature enabled. Note that when a Computed Trait is updated, the Computed Trait will be locked from future edits until the changes have been incorporated. Alpha in Segment's API: it may change.
computedTraits.update
Filters
- CreateWrite
Create Filter for Space. Creates a filter for a space. A space filter applies to events coming from all Sources connected to a space. In order to successfully call this endpoint, the specified Workspace needs to have the Space Filters feature enabled. Beta in Segment's API.
filters.create
- DeleteDestructive
Delete Filter By Id. Deletes a filter by id. In order to successfully call this endpoint, the specified Workspace needs to have the Space Filters feature enabled. Beta in Segment's API. Cannot be undone.
filters.delete
- GetRead-only
Get Filter By Id. Gets a filter by id. In order to successfully call this endpoint, the specified Workspace needs to have the Space Filters feature enabled. Beta in Segment's API.
filters.get
- ListRead-only
List Filters for Space. Lists filters for a space. In order to successfully call this endpoint, the specified Workspace needs to have the Space Filters feature enabled. Beta in Segment's API.
filters.list
- UpdateWrite
Update Filter By Id. Updates a filter by id and replaces the existing filter. In order to successfully call this endpoint, the specified Workspace needs to have the Space Filters feature enabled. Beta in Segment's API.
filters.update
Transformations
- CreateWrite
Create Transformation. Creates a new Transformation. In order to successfully call this endpoint, the specified Workspace needs to have the Protocols feature enabled.
transformations.create
- DeleteDestructive
Delete Transformation. Deletes a Transformation. In order to successfully call this endpoint, the specified Workspace needs to have the Protocols feature enabled. Cannot be undone.
transformations.delete
- GetRead-only
Get Transformation. Gets a Transformation. In order to successfully call this endpoint, the specified Workspace needs to have the Protocols feature enabled.
transformations.get
- ListRead-only
List Transformations. Lists all Transformations in the Workspace. In order to successfully call this endpoint, the specified Workspace needs to have the Protocols feature enabled.
transformations.list
- UpdateWrite
Update Transformation. Updates an existing Transformation. In order to successfully call this endpoint, the specified Workspace needs to have the Protocols feature enabled.
transformations.update
Usage
- Get Daily Api CallsRead-only
Get Daily Workspace API Calls Usage. Provides daily cumulative API call counts for a usage period.
usage.getDailyApiCalls
- Get Daily Api Calls By SourceRead-only
Get Daily Per Source API Calls Usage. Provides daily cumulative per-source API call counts for a usage period.
usage.getDailyApiCallsBySource
- Get Daily MtuRead-only
Get Daily Workspace MTU Usage. Provides daily cumulative MTU counts for a usage period.
usage.getDailyMtu
- Get Daily Mtu By SourceRead-only
Get Daily Per Source MTU Usage. Provides daily cumulative per-source MTU counts for a usage period.
usage.getDailyMtuBySource
Invites
- CreateDestructive
Create Invites. Invites a list of users to join a Workspace. When called, this endpoint may generate one or more of the following audit trail events:* Non-Segment User Invited to Workspace. * Policy Created. * New Segment User Invited to Workspace. Config API omitted fields:. - parent. Sends an invitation email to each address.
invites.create
- DeleteDestructive
Delete Invites. Removes a list of invitations to join a Workspace. When called, this endpoint may generate one or more of the following audit trail events:* Invite Deleted. * Group Memberships Deleted. Cannot be undone.
invites.delete
- ListRead-only
List Invites. Returns a list of invitations to join a Workspace. Config API omitted fields:. - parent.
invites.list
Labels
- CreateWrite
Create Label. Creates a new label. (POST /labels)
labels.create
- DeleteDestructive
Delete Label. Deletes a label. Cannot be undone.
labels.delete
- ListRead-only
List Labels. Returns a list of all available labels.
labels.list
Live Plugins
- CreateDestructive
Create Live Plugin. Creates or updates a Live Plugin for your Source with given code. In order to successfully call this endpoint, the specified Workspace needs to have the Live Plugins feature enabled. Alpha in Segment's API: it may change.
livePlugins.create
- Delete CodeDestructive
Delete Live Plugin Code. Delete the Live Plugin code for a Source. This will not disable Live Plugins for the Source, but will remove any existing code. In order to successfully call this endpoint, the specified Workspace needs to have the Live Plugins feature enabled. Alpha in Segment's API: it may change. Cannot be undone.
livePlugins.deleteCode
- Get LatestRead-only
Get Latest from Live Plugins. Get the latest Live Plugins for your Source. In order to successfully call this endpoint, the specified Workspace needs to have the Live Plugins feature enabled. Alpha in Segment's API: it may change.
livePlugins.getLatest
Audit Trail
- ListRead-only
List Audit Events. Returns a list of Audit Trail events.
auditTrail.list
Customer Insights
- Create DownloadWrite
Create Download. Create Customer Insights Presigned URLs. Alpha in Segment's API: it may change.
customerInsights.createDownload
Dbt
- Trigger Model SyncDestructive
Create Dbt Model Sync Trigger. Creates a trigger for a new dbt model sync for a Source. Beta in Segment's API. Starts the dbt model sync now.
dbt.triggerModelSync
Events
- Get VolumeRead-only
Get Events Volume from Workspace. Enumerates the Workspace event volumes over time in minute increments.
events.getVolume
Roles
- ListRead-only
List Roles. Returns a list of Roles available to apply to permissions for users and/or groups.
roles.list
Testing
- EchoRead-only
Echo. Public Echo endpoint. (GET /echo)
testing.echo
Workspaces
- GetRead-only
Get Workspace. Returns the Workspace associated with the token used to access this resource. The workspace the token belongs to: a cheap call to check the token.
workspaces.get
Connect Segment to Claude, ChatGPT or Cursor
- 1
Connect Segment in Corsair
Add your Segment API key once in Corsair. Corsair stores the credential encrypted and makes the Segment API calls for your agent, so it never goes into a prompt or a config file. Connect Segment
If your link lets the agent add apps, you can skip this: it gives you a sign-in link the first time it needs Segment. On a ChatGPT personal plan, connect Segment here first.
- 2
Add Corsair's MCP server to your agent
Every client uses the same address:
https://mcp.corsair.dev/mcpOpen Plugins → Add → Add custom connector, name it Corsair, paste the address, select Continue, then Add.Add a custom MCP server with the address and choose OAuth. Personal plans get read tools only.Add to CursorOr add this to~/.cursor/mcp.json. Cursor opens Corsair to sign in the first time it connects.{ "mcpServers": { "corsair": { "url": "https://mcp.corsair.dev/mcp" } } }Run this, then run/mcpin Claude Code to sign in.claude mcp add --transport http corsair https://mcp.corsair.dev/mcpCodex, Gemini CLI, VS Code, Zed and other clients with OAuth sign-in work the same way. Clients without it, such as GitHub Copilot's coding agent, use a link's own address and an API key. Setup for every client
- 3
Sign in and choose what needs your approval
Your client opens Corsair to sign in. Pick a link: the apps your agent can use and a mode that decides what it may do without asking. In the default Cautious mode, Segment's read and write operations run right away and its 46 destructive operations wait for your approval. Strict mode asks before every write and refuses destructive operations, and Read mode allows reads only.
FAQ
Install corsair and @corsair-dev/segment, add the Segment plugin, and connect with an API key. Then call methods like corsair.segment.api.activations.batchQuery() from your app. Corsair verifies webhooks, and keeps each tenant isolated.
Yes. Segment requires an API key from your Segment account or developer dashboard. Create credentials with access that matches what you automate, then paste them into Corsair or connect through managed auth in Hub.
Yes. One Corsair client can hit Segment, GitHub, Notion, Stripe, and the rest. Trigger Segment from a webhook, push updates to Slack, or chain actions across plugins. Same tenant context across integrations, plain TypeScript.
Teams use Corsair for twilio Segment: send track, identify, page, screen, group and alias calls, and manage the workspace through the Public API: sources, destinations, warehouses, tracking plans, functions, deletion and suppression, users, audiences and Reverse ETL (207 operations). Common builds include sync jobs, admin tooling, and agents that call Segment APIs from your backend. Webhook handlers react to Segment events and fan out to Slack, email, or other plugins in the same tenant.
The SDK is open source. Self-host and you pay Corsair nothing for the integration layer. Hub bills for hosted auth and execution, not per Segment API call. Hub has a generous free tier. For hobby projects you can probably run the whole thing on free. Paid plans start to matter with more tenants or heavier traffic.
We maintain @corsair-dev/segment in the open repo. When Segment ships API changes, upgrade the package. Your call sites stay typed. You should not need to rewrite the integration layer each time.
No. Corsair does not read your Segment data or hold individual access credentials. Credentials stay in your database. API calls run on your instance. We do not store Segment data on your behalf.
Yes. Add https://mcp.corsair.dev/mcp as a custom connector or MCP server in Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex or any client that supports remote MCP servers with OAuth sign-in, then sign in to Corsair. On ChatGPT personal plans, custom servers currently get read tools only.
Yes. Put Segment on a link in Strict mode and every write waits for your approval, while destructive actions are refused. The default Cautious mode asks only before the 46 destructive Segment operations. You can change a link's mode at hub.corsair.dev/me.