Skip to main content
GET
https://api2.ecomailapp.cz
/
lists
/
{list_id}
/
segments
curl https://api2.ecomailapp.cz/lists/1/segments \
  -H "key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
{
  "segments": {
    "5c36008811e45": { "name": "Segment 1", "id": "5c36008811e45", "count": 860 },
    "5cbf2405a77ce": { "name": "Segment 2", "id": "5cbf2405a77ce", "count": 540 }
  }
}
list_id
integer
required
ID of the list.
A list with no segments returns an empty array.
curl https://api2.ecomailapp.cz/lists/1/segments \
  -H "key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
{
  "segments": {
    "5c36008811e45": { "name": "Segment 1", "id": "5c36008811e45", "count": 860 },
    "5cbf2405a77ce": { "name": "Segment 2", "id": "5cbf2405a77ce", "count": 540 }
  }
}