Guides & Tutorials

List segments

GET /api/list.php

Request parameters

None.

Response parameters

List of segment objects are sorted by name field in an alphabetical order.

Parameter Value
id Segment ID.
name Segment name.
subscribers_count Number of subscribers in the segment.

Example

$ curl -X GET -u "${USERNAME}:${PASSWORD}" \
  "https://${SUBDOMAIN}.sendsmaily.net/api/list.php"

(JavaScript/JSON)

[
  {
    "id": 4,
    "name": "Women",
    "subscribers_count": 250,
  },
  {
    "id": 5,
    "name": "Men 40+",
    "subscribers_count": 48,
  },
  ...
]