Skip to main content

Segment Connector

Segment Segment is a customer data platform (CDP) service that simplifies collecting and using data from users of your digital properties (websites, apps, etc.) Use the Segment component to manage your Sources, Warehouses, and Destinations.

Connections

API Key

InputCommentsDefault
API KeyAPI Key for your Segment account
SubdomainThe subdomain name of your Segment account

Actions

Add Connection From Source to Warehouse

Connects a Source to a Warehouse.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
Warehouse IDThe id of the warehouse to retrieve.
Source IDThe Source ID to use.

Create Destination

Creates a new Destination.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
Source IDThe Source ID to use.
Metadata IDThe Warehouse metadata to use.
NameDefines the display name of the Destination.
EnabledWhether this Destination should receive data.
SettingsAn optional object that contains settings for the Destination based on the 'required' and 'advanced' settings present in the Destination metadata.

Create Destination Subscription

Creates a new Destination subscription.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
Destination IDThe Destination ID to use.
NameThe user-defined name for the subscription.
Action IDThe associated action id the subscription should trigger.
TriggerThe fql statement.
EnabledIs the subscription enabled.
SettingsA key-value object that contains instance-specific settings for a Warehouse. You can find the full list of Warehouse metadata and related settings information in the /catalog/warehouses endpoint.
TriggerWhen creating a Reverse ETL connection, indicates the Model being used to extract data.

Create Function

Creates a Function.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
CodeThe Function code.
Display NameA display name for this Function.
Resource TypeThe Function type.
Function SettingsThe list of settings for this Function.
[
{
"name": "apiKey",
"label": "api key",
"type": "STRING",
"description": "api key",
"required": false,
"sensitive": false
},
{
"name": "mySecret",
"label": "my secret key",
"type": "STRING",
"description": "secret key",
"required": false,
"sensitive": true
}
]
Logo URLA logo for this Function.
DescriptionA description for this Function.

Create Source

Creates a new Source.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
SlugThe slug by which to identify the Source in the Segment app.
EnabledEnable to allow this Source to send data. Defaults to true.true
Metadata IDThe Warehouse metadata to use.
SettingsA key-value object that contains instance-specific settings for a Warehouse. You can find the full list of Warehouse metadata and related settings information in the /catalog/warehouses endpoint.

Create Transformation

Creates a new Transformation.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
NameThe name of the Transformation.
Source IDThe Source ID to use.
Destination Metadata IDThe Destination metadata ID to use.
EnabledIf the Transformation should be enabled.
IfIf statement (FQL) to match events.
New Event NameOptional new event name for renaming events. Works only for 'track' event type.
Property RenamesOptional array for renaming properties collected by your events.
[
{
"newName": "new-property",
"oldName": "old-property"
}
]
Property Value TransformationsOptional array for renaming properties collected by your events.
[
{
"propertyPaths": [
"properties.another-property"
],
"propertyValue": "another property value"
}
]
FQL Defined PropertiesOptional array for defining new properties in FQL. Currently limited to 1 property.

Create User Invite

Invites a list of users to join a Workspace.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
InvitesThe list of invites.
[
{
"email": "foo@example.com",
"permissions": [
{
"roleId": "1WDUuRLxv84rrfCNUwvkrRtkxnS",
"resources": [
{
"id": "9aQ1Lj62S4bomZKLF4DPqW",
"type": "WORKSPACE"
}
]
}
]
}
]

Delete Destination

Deletes an existing Destination.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
Destination IDThe Destination ID to use.

Delete Destination Subscription

Deletes an existing Destination subscription.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
Destination IDThe Destination ID to use.
Subscription IDThe Subscription ID to use.

Delete Function

Deletes a Function.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
Function IDThe function ID to use.

Delete Source

Deletes an existing Source.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
Source IDThe Source ID to use.

Delete Transformation

Deletes a Transformation.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
Transformation IDThe id of the transformation to retrieve.

Delete Users

Removes one or multiple users.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
User IDsThe ids of the users to remove.["000xxx"]

Delete Warehouse

Deletes an existing Warehouse.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
Warehouse IDThe id of the warehouse to retrieve.

Get Destination

Returns a Destination by its id.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
Destination IDThe Destination ID to use.

Get Destination Catalog

Returns a list of all available Destinations in the Segment catalog.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
CountThe number of results to return.50
CursorThe page to request.

Get Destination Metadata

Returns a Destination catalog item by its id.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
Destination Metadata IDThe Destination metadata ID to use.

Get Destination Subscription

Gets a Destination subscription by id.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
Destination IDThe Destination ID to use.
Subscription IDThe Subscription ID to use.

Get Events Volume From Workspace

Enumerates the Workspace event volumes over time in minute increments.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
GranularityThe size of each bucket in the requested window.
Start TimeThe ISO8601 formatted timestamp that corresponds to the beginning of the requested time frame, inclusive.
End TimeThe ISO8601 formatted timestamp that corresponds to the end of the requested time frame, noninclusive. Segment recommends that you lag queries 1 minute behind clock time to reduce the risk for latency to impact the counts.
Group ByThe ids of the users to remove.
Source IDsA list of strings which filters the results to the given EventNames.["000xxx"]
Event NameA list of strings which filters the results to the given EventNames.["000xxx"]
Event TypeA list of strings which filters the results to the given EventNames.["000xxx"]
App VersionA list of strings which filters the results to the given AppVersions.["000xxx"]
CountThe number of results to return.50
CursorThe page to request.

Get Function

Gets a Function.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
Function IDThe function ID to use.

Get Source

Returns a Source by its id.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
Source IDThe Source ID to use.

Get Source Metadata

Returns a Source catalog item by its id.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
Source Metadata IDThe Source metadata ID to use.

Get Sources Catalog

Returns a list of all available Sources in the Segment catalog.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
CountThe number of results to return.50
CursorThe page to request.

Get Transformation

Gets a Transformation.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
Transformation IDThe id of the transformation to retrieve.

Get User

Returns a user given their id.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
User IDThe id of the user to retrieve.

Get Warehouse

Returns a Warehouse by its id.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
Warehouse IDThe id of the warehouse to retrieve.

Get Warehouse Metadata

Returns a Warehouse catalog item by its id.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
Warehouse Metadata IDThe Warehouse metadata ID to use.

Get Warehouses Catalog

Returns a list of all available Warehouses in the Segment catalog.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
CountThe number of results to return.50
CursorThe page to request.

List Connected Sources from Warehouse

Returns the list of Sources that are connected to a Warehouse.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
Warehouse IDThe id of the warehouse to retrieve.

List Destinations

Returns a list of Destinations.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
CountThe number of results to return.50
CursorThe page to request.

List Destination Subscriptions

Lists subscriptions for a Destination.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
Destination IDThe Destination ID to use.
CountThe number of results to return.50
CursorThe page to request.

List Functions

Lists all Functions in a Workspace.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
Resource TypeThe Function type.
CountThe number of results to return.50
CursorThe page to request.

List Sources

Returns a list of Sources.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
CountThe number of results to return.50
CursorThe page to request.

List Transformations

Returns a list of Transformations.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
CountThe number of results to return.50
CursorThe page to request.

List Users

Returns a list of users with access to the Workspace.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
CountThe number of results to return.50
CursorThe page to request.

List Warehouses

Returns a list of Warehouses.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
CountThe number of results to return.50
CursorThe page to request.

Raw Request

Send raw HTTP request to Segment

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
URLInput the path only (/employees), The base URL is already included (https://apí.segmentapis.com/). For example, to connect to https://apí.segmentapis.com/employees, only /employees is entered in this field.
MethodThe HTTP method to use.
DataThe HTTP body payload to send to the URL.
Form DataThe Form Data to be sent as a multipart form upload.
File DataFile Data to be sent as a multipart form upload.
File Data File NamesFile names to apply to the file data inputs. Keys must match the file data keys above.
Query ParameterA list of query parameters to send with the request. This is the portion at the end of the URL similar to ?key1=value1&key2=value2.
HeaderA list of headers to send with the request.
Response TypeThe type of data you expect in the response. You can request json, text, or binary data.json
TimeoutThe maximum time that a client will await a response to its request
Debug RequestEnabling this flag will log out the current request.false
Retry Delay (ms)The delay in milliseconds between retries.0
Retry On All ErrorsIf true, retries on all erroneous responses regardless of type.false
Max Retry CountThe maximum number of retries to attempt.0
Use Exponential BackoffSpecifies whether to use a pre-defined exponential backoff strategy for retries.false

Remove Source Connection from Warehouse

Disconnects a Source from a Warehouse.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
Warehouse IDThe id of the warehouse to retrieve.
Source IDThe Source ID to use.

Update Destination

Updates an existing Destination.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
Destination IDThe Destination ID to use.
NameDefines the display name of the Destination.
EnabledWhether this Destination should receive data.
SettingsAn optional object that contains settings for the Destination based on the 'required' and 'advanced' settings present in the Destination metadata.

Update Destination Subscription

Updates an existing Destination subscription.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
Destination IDThe Destination ID to use.
Subscription IDThe Subscription ID to use.
NameThe user-defined name for the subscription.
TriggerThe fql statement.
EnabledIs the subscription enabled.
SettingsA key-value object that contains instance-specific settings for a Warehouse. You can find the full list of Warehouse metadata and related settings information in the /catalog/warehouses endpoint.

Update Function

Updates a Function.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
Function IDThe function ID to use.
CodeThe Function code.
Function SettingsThe list of settings for this Function.
[
{
"name": "apiKey",
"label": "api key",
"type": "STRING",
"description": "api key",
"required": false,
"sensitive": false
},
{
"name": "mySecret",
"label": "my secret key",
"type": "STRING",
"description": "secret key",
"required": false,
"sensitive": true
}
]
Display NameA display name for this Function.
Logo URLA logo for this Function.
DescriptionA description for this Function.

Update Source

Updates an existing Source.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
Source IDThe Source ID to use.
SlugThe slug by which to identify the Source in the Segment app.
EnabledEnable to allow this Source to send data. Defaults to true.
NameAn optional human-readable name to associate with this Source.
SettingsA key-value object that contains instance-specific settings for a Warehouse. You can find the full list of Warehouse metadata and related settings information in the /catalog/warehouses endpoint.

Update Transformation

Updates an existing Transformation.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
Transformation IDThe id of the transformation to retrieve.
NameThe name of the Transformation.
Source IDThe Source ID to use.
Destination Metadata IDThe Destination metadata ID to use.
EnabledEnable to allow this Warehouse to receive data.
IfIf statement (FQL) to match events.
New Event NameOptional new event name for renaming events. Works only for 'track' event type.
Property RenamesOptional array for renaming properties collected by your events.
[
{
"newName": "new-property",
"oldName": "old-property"
}
]
Property Value TransformationsOptional array for renaming properties collected by your events.
[
{
"propertyPaths": [
"properties.another-property"
],
"propertyValue": "another property value"
}
]
FQL Defined PropertiesOptional array for defining new properties in FQL. Currently limited to 1 property.

Update Warehouse

Updates an existing Warehouse.

InputCommentsDefault
Connection
RegionThe region of the Segment API to use.api
Warehouse IDThe id of the warehouse to retrieve.
SettingsA key-value object that contains instance-specific settings for a Warehouse. You can find the full list of Warehouse metadata and related settings information in the /catalog/warehouses endpoint.
NameAn optional human-readable name to associate with this Warehouse.
EnabledEnable to allow this Warehouse to receive data.