Segment
segmentTwilio Segment is a customer data platform that helps businesses collect, clean, and control their customer data.
Acciones disponibles (16)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Add Labels to SourceSEGMENT_ADD_LABELS_TO_SOURCEAcciónTool to add existing labels to a Source. Use when you have the source ID and want to tag it with metadata labels.
SEGMENT_ADD_LABELS_TO_SOURCEAcciónTool to add existing labels to a Source. Use when you have the source ID and want to tag it with metadata labels.
Parámetros de entrada
labelsobject[]ObligatorioList of labels to associate with the Source. Must include at least one label.
sourceIdstringObligatorioID of the Source (1-255 characters)
Parámetros de salida
dataobjectObligatorioEnvelope containing the response labels.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Segment AliasSEGMENT_ALIASAcciónTool to alias a previous user ID to a new user ID. Use when merging anonymous and known identities.
SEGMENT_ALIASAcciónTool to alias a previous user ID to a new user ID. Use when merging anonymous and known identities.
Parámetros de entrada
userIdstringNew known unique identifier for the user.
contextobjectAdditional context (e.g., ip, locale).
timestampstringISO-8601 timestamp for the event; server time used if omitted.
previousIdstringObligatorioPrevious unique identifier for the user.
anonymousIdstringAnonymous identifier for the user.
integrationsobjectPer-destination enable/disable controls.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Batch Segment Analytics EventsSEGMENT_BATCHAcciónTool to send multiple analytics calls in a single batch request. Use when you want to reduce HTTP overhead by batching Identify/Track/Page/Screen/Group calls into one request.
SEGMENT_BATCHAcciónTool to send multiple analytics calls in a single batch request. Use when you want to reduce HTTP overhead by batching Identify/Track/Page/Screen/Group calls into one request.
Parámetros de entrada
batchobject[]ObligatorioArray of analytics calls (identify, track, page, screen, or group). Each item must include 'type' and required fields per call type.
contextobjectOptional top-level context merged into each call's context.
writeKeystringSegment write key; required when using Bearer authentication.
integrationsobjectOptional top-level integrations merged into each call's integrations.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete SourceSEGMENT_DELETE_SOURCEAcciónTool to delete a Segment Source. Use when you need to permanently remove a Source by its ID after confirmation.
SEGMENT_DELETE_SOURCEAcciónTool to delete a Segment Source. Use when you need to permanently remove a Source by its ID after confirmation.
Parámetros de entrada
sourceIdstringObligatorioThe Source ID. Length 1–255 characters.
Parámetros de salida
dataobjectObligatorioEnvelope for deletion result.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Daily Per Source API Calls UsageSEGMENT_GET_DAILY_PER_SOURCE_API_CALLS_USAGEAcciónTool to fetch daily API call counts per source for a given period. Use when you need daily breakdown of API usage by source after determining the reporting period.
SEGMENT_GET_DAILY_PER_SOURCE_API_CALLS_USAGEAcciónTool to fetch daily API call counts per source for a given period. Use when you need daily breakdown of API usage by source after determining the reporting period.
Parámetros de entrada
periodstringObligatorioStart of the usage period in ISO-8601 format (YYYY-MM-DD), e.g. '2021-02-01'.
paginationobjectPagination parameters for querying source daily API calls usage.
Parámetros de salida
dataobjectObligatorioResponse data containing source usage records and pagination info.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get DestinationSEGMENT_GET_DESTINATIONAcciónTool to retrieve a Destination by ID. Use when you need to fetch the full configuration of a Segment Destination instance by its unique identifier. Falls back US→EU public API and legacy app endpoint; returns minimal envelope on legacy HTML or parse errors.
SEGMENT_GET_DESTINATIONAcciónTool to retrieve a Destination by ID. Use when you need to fetch the full configuration of a Segment Destination instance by its unique identifier. Falls back US→EU public API and legacy app endpoint; returns minimal envelope on legacy HTML or parse errors.
Parámetros de entrada
destinationIdstringObligatorioThe destination’s unique ID.
Parámetros de salida
dataobjectObligatorioerrorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Segment GroupSEGMENT_GROUPAcciónTool to associate an identified user with a group via Segment HTTP Tracking API. Use when grouping users with traits.
SEGMENT_GROUPAcciónTool to associate an identified user with a group via Segment HTTP Tracking API. Use when grouping users with traits.
Parámetros de entrada
traitsobjectFree-form dictionary of group traits (e.g., name, industry, employees).
userIdstringUnique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.
contextobjectAdditional contextual information (e.g., ip, locale, device).
groupIdstringObligatorioUnique identifier for the group.
writeKeystringWrite key for authentication if not using OAuth Bearer token.
timestampstringISO-8601 timestamp when the event occurred; if omitted, server time is used.
anonymousIdstringPseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.
integrationsobjectPer-destination enable/disable controls (case-sensitive keys).
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Segment IdentifySEGMENT_IDENTIFYAcciónTool to identify a user and set/update traits via Segment HTTP Tracking API.
SEGMENT_IDENTIFYAcciónTool to identify a user and set/update traits via Segment HTTP Tracking API.
Parámetros de entrada
traitsobjectFree-form dictionary of user traits (e.g., email, name, plan).
userIdstringUnique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.
contextobjectAdditional contextual information (e.g., ip, locale, device).
writeKeystringWrite key for authentication if not using Basic or OAuth headers.
messageIdstringUnique id for deduplication; Segment auto-generates one if omitted.
timestampstringISO-8601 timestamp when the identification occurred; if omitted, server time is used.
anonymousIdstringPseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.
integrationsobjectPer-destination enable/disable controls (case-sensitive keys).
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Connected Warehouses From SourceSEGMENT_LIST_CONNECTED_WAREHOUSES_FROM_SOURCEAcciónTool to list warehouses connected to a Source. Use when you need to retrieve warehouses for a given source ID.
SEGMENT_LIST_CONNECTED_WAREHOUSES_FROM_SOURCEAcciónTool to list warehouses connected to a Source. Use when you need to retrieve warehouses for a given source ID.
Parámetros de entrada
sourceIdstringObligatorioID of the Source to retrieve warehouses for.
paginationobjectObligatorioPagination parameters for the request.
Parámetros de salida
dataobjectObligatorioResponse data containing warehouses and pagination details.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Delivery Metrics Summary from DestinationSEGMENT_LIST_DELIVERY_METRICS_SUMMARY_FROM_DESTINATIONAcciónGet an event delivery metrics summary from a Destination. Primary attempt uses Segment Public API; fallback to legacy app host if needed. On HTML fallback responses, returns a minimal valid envelope to maintain contract.
SEGMENT_LIST_DELIVERY_METRICS_SUMMARY_FROM_DESTINATIONAcciónGet an event delivery metrics summary from a Destination. Primary attempt uses Segment Public API; fallback to legacy app host if needed. On HTML fallback responses, returns a minimal valid envelope to maintain contract.
Parámetros de entrada
endTimestringFilter events that happened before this time (ISO-8601). Defaults to now.
sourceIdstringObligatorioSource id linked to the destination
startTimestringFilter events that happened after this time (ISO-8601). Defaults depend on granularity.
granularitystringenumGranularity of the metrics aggregation
DAYHOURMINUTEdestinationIdstringObligatorioDestination identifier
Parámetros de salida
dataobjectObligatorioerrorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Schema Settings in SourceSEGMENT_LIST_SCHEMA_SETTINGS_IN_SOURCEAcciónRetrieve schema configuration settings for a Source.
SEGMENT_LIST_SCHEMA_SETTINGS_IN_SOURCEAcciónRetrieve schema configuration settings for a Source.
Parámetros de entrada
sourceIdstringObligatorioID of the Source
Parámetros de salida
dataobjectObligatorioerrorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Segment Page ViewSEGMENT_PAGEAcciónTool to record a page view via Segment HTTP Tracking API. Use when sending page views with optional page name and properties.
SEGMENT_PAGEAcciónTool to record a page view via Segment HTTP Tracking API. Use when sending page views with optional page name and properties.
Parámetros de entrada
namestringName of the page. Optional.
userIdstringUnique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.
contextobjectAdditional contextual information (e.g., ip, locale, device).
writeKeystringWrite key for authentication if not using Basic or Bearer auth in headers.
messageIdstringUnique id for deduplication; Segment auto-generates one if omitted.
timestampstringISO-8601 timestamp when the event occurred; if omitted, server time is used.
propertiesobjectFree-form dictionary of page properties (e.g., path, url).
anonymousIdstringPseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.
integrationsobjectPer-destination enable/disable controls (case-sensitive keys).
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Remove Source Write KeySEGMENT_REMOVE_SOURCE_WRITE_KEYAcciónTool to remove a write key from a Source. Use when you need to revoke an existing write key for security or rotation.
SEGMENT_REMOVE_SOURCE_WRITE_KEYAcciónTool to remove a write key from a Source. Use when you need to revoke an existing write key for security or rotation.
Parámetros de entrada
sourceIdstringObligatorioThe unique identifier of the Source.
writeKeystringObligatorioThe write key to remove from the Source.
Parámetros de salida
dataobjectObligatorioEnvelope containing removal status.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Segment Screen EventSEGMENT_SCREENAcciónTool to record a mobile app screen view. Use when tracking screen views in a mobile app via Segment HTTP Tracking API.
SEGMENT_SCREENAcciónTool to record a mobile app screen view. Use when tracking screen views in a mobile app via Segment HTTP Tracking API.
Parámetros de entrada
namestringName of the screen.
userIdstringUnique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.
contextobjectAdditional contextual information (e.g., ip, locale, device).
writeKeystringWrite key for authentication if not using Basic or OAuth headers.
timestampstringISO-8601 timestamp when the screen event occurred; if omitted, server time is used.
propertiesobjectFree-form dictionary of screen properties.
anonymousIdstringPseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.
integrationsobjectPer-destination enable/disable controls (case-sensitive keys).
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Segment Track EventSEGMENT_TRACKAcciónTool to record a custom user event via Segment HTTP Tracking API. Use when sending events to Segment with valid identity.
SEGMENT_TRACKAcciónTool to record a custom user event via Segment HTTP Tracking API. Use when sending events to Segment with valid identity.
Parámetros de entrada
eventstringObligatorioName of the action performed (e.g., 'Item Purchased').
userIdstringUnique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.
contextobjectAdditional contextual information (e.g., ip, locale, device).
writeKeystringWrite key for authentication if not using Basic or OAuth headers.
timestampstringISO-8601 timestamp when the event occurred; if omitted, server time is used.
propertiesobjectFree-form dictionary of event-specific properties (e.g., revenue).
anonymousIdstringPseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.
integrationsobjectPer-destination enable/disable controls (case-sensitive keys).
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update SourceSEGMENT_UPDATE_SOURCEAcciónTool to update a Source's metadata and settings. Use when you need to modify an existing Source after confirming its ID.
SEGMENT_UPDATE_SOURCEAcciónTool to update a Source's metadata and settings. Use when you need to modify an existing Source after confirming its ID.
Parámetros de entrada
namestringHuman-readable name for the Source (displayName).
slugstringSlug that identifies the Source (config name).
enabledbooleanWhether the Source can send data.
settingsobjectKey-value settings specific to the Source type; see Sources catalog for required options.
sourceIdstringObligatorioThe Source ID. Length 1–255 characters.
Parámetros de salida
dataobjectObligatorioEnvelope for the updated Source.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not