SUPPORT.TWILIO.COM END OF LIFE NOTICE: This site, support.twilio.com, is scheduled to go End of Life on February 27, 2024. All Twilio Support content has been migrated to help.twilio.com, where you can continue to find helpful Support articles, API docs, and Twilio blog content, and escalate your issues to our Support team. We encourage you to update your bookmarks and begin using the new site today for all your Twilio Support needs.

How can I use Public API to connect a destination to an audience with Default Setup event settings and enable the Send Identify option?

 

Question

How can I use Public API to connect a destination to an audience with Default Setup event settings and enable the Send Identify option?

 

Product

Twilio Segment

 

Environment

Segment Console

 

Answer

To connect a destination to an audience using the Segment Public API and apply Default Setup event settings with Send Identify enabled, include the following fields in the connectionSettings object of your API request:

{
  "destination": {
    "id": "<destinationId>",
    "type": "destination"
  },
  "connectionSettings": {
    "__segment_internal_engage_batch_sync": true,
    "audience_entered_event": "Audience Entered",
    "audience_exited_event": "Audience Exited",
    "send_identify": true,
    "send_track": false
  }
}

This configuration ensures the destination is connected with Default Setup and the Send Identify option is enabled.

 

Additional Information 

If the settings are not reflected in the UI after the API call, verify that all required fields are included in the request body.

 

Have more questions? Submit a request
Powered by Zendesk