Used to get a list of all the segments associated with your project. All segments may be returned or lists of segments of a certain type if criteria are provided.

For more information on segments review our segmentation guide.

Example:

Get a list of all the segments created in your project using pagination and only displaying the fields title, id, project_id and conditions. For best results, we recommend setting a limit on your query. Send several requests to obtain the full list:

curl --request POST \
  --url https://external-api.xtremepush.com/api/external/list/segment \
  --header 'content-type: application/json' \
  --data '{
  "apptoken": "YOUR_APPTOKEN",
  "select": [
    "title",
    "id",
    "project_id",
    "conditions"
  ],
  "limit": 50,
  "offset": 0
}'
Language
Click Try It! to start a request and see the response here!