Skip to main content
Server path: /segment-sources | Type: Application | PCID required: Yes

Tools


segment_sources_add_labels_to_source

Add Labels to Source Parameters:
ParameterTypeRequiredDefaultDescription
sourceIdstringYesSource Id
labelsobject[]YesThe labels to associate with a Source.

segment_sources_create_label

Create Label Parameters:
ParameterTypeRequiredDefaultDescription
labelobjectYesThe new label to create in the Workspace.

segment_sources_create_source

Create Source Parameters:
ParameterTypeRequiredDefaultDescription
disconnectAllWarehousesbooleanNoWhether to disconnect all Warehouses from the Source.
enabledbooleanYesEnable to allow this Source to send data. Defaults to true.
metadataIdstringYesThe id of the Source metadata from which this instance of the Source derives. All Source metadata is available under /catalog/sources.
settingsobjectNoA key-value object that contains instance-specific settings for the Source. “websiteUrl” and “apiHost” can be configured here for the relevant Sources.
slugstringYesThe slug by which to identify the Source in the Segment app.

segment_sources_create_write_key_for_source

Create Write Key for Source Parameters:
ParameterTypeRequiredDefaultDescription
sourceIdstringYesSource Id

segment_sources_delete_label

Delete Label Parameters:
ParameterTypeRequiredDefaultDescription
keystringYesThe key value
valuestringYesThe value value

segment_sources_delete_source

Delete Source Parameters:
ParameterTypeRequiredDefaultDescription
sourceIdstringYesSource Id

segment_sources_get_catalog

Get Sources Catalog Parameters:
ParameterTypeRequiredDefaultDescription
paginationobjectNoDefines the pagination parameters. This parameter exists in v1.

segment_sources_get_destination_metadata

Get Destination Metadata Parameters:
ParameterTypeRequiredDefaultDescription
destinationMetadataIdstringYesDestination Metadata Id

segment_sources_get_destinations_catalog

Get Destinations Catalog Parameters:
ParameterTypeRequiredDefaultDescription
paginationobjectNoRequired pagination parameters used to filter the Destinations catalog. This parameter exists in v1.

segment_sources_get_source

Get Source Parameters:
ParameterTypeRequiredDefaultDescription
sourceIdstringYesSource Id

segment_sources_get_source_metadata

Get Source Metadata Parameters:
ParameterTypeRequiredDefaultDescription
sourceMetadataIdstringYesSource Metadata Id

segment_sources_get_warehouse_metadata

Get Warehouse Metadata Parameters:
ParameterTypeRequiredDefaultDescription
warehouseMetadataIdstringYesWarehouse Metadata Id

segment_sources_get_warehouses_catalog

Get Warehouses Catalog Parameters:
ParameterTypeRequiredDefaultDescription
paginationobjectNoOptional pagination params used to filter the Warehouses catalog. This parameter exists in v1.

segment_sources_get_workspace

Get Workspace

segment_sources_list_connected_destinations_from_source

List Connected Destinations from Source Parameters:
ParameterTypeRequiredDefaultDescription
sourceIdstringYesSource Id
paginationobjectNoRequired pagination params for the request. This parameter exists in alpha.

segment_sources_list_connected_warehouses_from_source

List Connected Warehouses from Source Parameters:
ParameterTypeRequiredDefaultDescription
sourceIdstringYesSource Id
paginationobjectNoRequired pagination params for the request. This parameter exists in alpha.

segment_sources_list_labels

List Labels

segment_sources_list_schema_settings_in_source

List Schema Settings in Source Parameters:
ParameterTypeRequiredDefaultDescription
sourceIdstringYesSource Id

segment_sources_list_sources

List Sources Parameters:
ParameterTypeRequiredDefaultDescription
paginationobjectNoDefines the pagination parameters. This parameter exists in alpha.

segment_sources_remove_write_key_from_source

Remove Write Key from Source Parameters:
ParameterTypeRequiredDefaultDescription
sourceIdstringYesSource Id
writeKeystringYesWrite Key

segment_sources_replace_labels_in_source

Replace Labels in Source Parameters:
ParameterTypeRequiredDefaultDescription
sourceIdstringYesSource Id
labelsobject[]YesThe list of labels to replace in the Source.

segment_sources_update_schema_settings_in_source

Update Schema Settings in Source Parameters:
ParameterTypeRequiredDefaultDescription
sourceIdstringYesSource Id
forwardingBlockedEventsTostringNoSource id to forward blocked events to.
forwardingViolationsTostringNoSource id to forward violations to.
groupobjectNoGroup settings.
identifyobjectNoIdentify settings.
trackobjectNoTrack settings.

segment_sources_update_source

Update Source Parameters:
ParameterTypeRequiredDefaultDescription
sourceIdstringYesSource Id
enabledbooleanNoEnable to allow the Source to send data.
namestringNoAn optional human-readable name to associate with the Source. Config API note: equal to displayName.
settingsobjectNoA key-value object that contains instance-specific settings for the Source. Different kinds of Sources require different kinds of input. The settings input for a Source comes from the options object associated with this instance of a Source. You can find the full list of required settings by accessing the Sources catalog endpoint under /catalog/sources.
slugstringNoThe slug that identifies the Source. Config API note: equal to name.