# Connect with Twilio Segment

Twilio Segment enables you to collect, unify, and connect your data from various sources, and stream the data (events) into SingleStore to perform analytics and data processing operations. Refer to [Segment Documentation](http://segment.com/docs/) for more information.

## Prerequisites

* An active SingleStore deployment with the Data API enabled. Refer to [Enable the Data API](https://docs.singlestore.com/cloud/reference/data-api/enable-the-data-api.md) for related information.
* Configure the **Inbound IP Allowlist** of your SingleStore deployment to allow access from Twilio Segment. Refer to [Firewall](https://docs.singlestore.com/cloud/security/firewall.md) for related information.
* A Twilio Segment instance with active sources.

## Connect to SingleStore from Segment

To connect your SingleStore database,

1. Configure SingleStore as a destination in Segment for a specific source.

2. Configure field mappings and stream data into SingleStore.

3. (Optional) Verify that events are being streamed.

## Configure the SingleStore Destination

To configure SingleStore as a destination in Twilio Segment,

1. Log in to your Segment workspace.

2. On the left navigation pane, select **Connections > Sources**.

3. From the list of Sources, select a source.

4. On the selected source's page, select **Add Destination**.

5. On the **Catalog** page, under **Destinations**, select **SingleStore**. You can also search "SingleStore" and select it from the search results.

6. On the **SingleStore** page, select **Add destination**.

7. Under **Setup**, enter a name for the destination in the **Destination name** field.

8. Select **Create destination**. The SingleStore destination is created.

9. On the **Settings** tab of your destination, configure the connection to your SingleStore database. Enter the following information:

   1. **Host**: Hostname or IP address of your SingleStore deployment. Refer to [SingleStore Helios Endpoints](https://docs.singlestore.com/cloud/connect-to-singlestore/singlestore-helios-endpoints.md) for related information.

   2. **Port**: Port of the SingleStore Data API. The default is `443`.

   3. **Username**: Username of the SingleStore database user with which to connect.

   4. **Password**: Password for the SingleStore database user.

   5. **Database Name**: Name of the SingleStore database to connect with.

   6. **Table Name**: Name of the target table in the specified database. The default is `segment_data`.

10. Select **Save Changes** to save the destination configuration.

## Configure Mappings and Stream Data

To configure mappings from source event to destination field and stream data into SingleStore,

1. Select the **Mappings** tab for your destination.

2. Under **Mappings**, select **New Mapping**.

3. Under **Set up mapping**, select **Send Data**.

4. On the same page, under **Map Fields**, configure the source event to destination field mapping.

5. Select **Next**.

6. Enter a name for the mapping in the **Mapping name** field.

7. Select **Save**. The mapping is saved.

8. On the **Settings** tab for your destination, enable the **Enable Destination** toggle.

Once the mappings are configured and the destination is enabled, events are streamed to the specified SingleStore table as they are received.

## Verify Event Streaming

To verify that events are streamed,

1. Log in to your SingleStore deployment ([Cloud Portal](https://portal.singlestore.com)).

2. Select **Workspaces** > **\<your\_deployment> > Connect > SQL Editor**.

3. Run the following query(s) to verify that events are streamed to SingleStore:
   ```sql
   -- Count the number of events ingested --
   -- Update the table name to the specified target table --
   SELECT COUNT(*) 
   FROM segment_data;
   ```
   ```sql
   -- View the 10 most recent ingested events --
   -- Update the table name to the specified target table --
   SELECT * FROM segment_data
   ORDER BY timestamp DESC
   LIMIT 10;
   ```

You can also connect to your SingleStore deployment from a supported third-party client/application and run the query(s).

## Disable Event Streaming

To disable event streaming,

1. Select **\<your\_destination> > Settings**.

2. Disable the **Event Destination** toggle.

3. Select **Save Changes**.

***

Modified at: May 22, 2026

Source: [/cloud/load-data/integrate-with-singlestore-helios/connect-with-twilio-segment/](https://docs.singlestore.com/cloud/load-data/integrate-with-singlestore-helios/connect-with-twilio-segment/)

(An index of the documentation is available at /llms.txt)
