/segments
GET
Newest first, as on Resend, with cursor pagination: after takes the last id of a page and pages toward older items, before takes the first id and pages back toward newer ones.
limit?integerPage size, 1-100 (default 20)
Range
1 <= value <= 100after?stringCursor: id of the last item of the current page; returns the next page. Must be an id this list returned; there is no sentinel value.
Format
uuidbefore?stringCursor: id of the first item of the current page; returns the previous page; same rule as after.
Format
uuidSegments
application/json- response
object*"list"Value in
"list"data*array<>has_more*booleancurl -X GET 'https://api.millionsend.com/segments'Example Response
{ "object": "list", "data": [ { "object": "segment", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "filter": { "match": "all", "conditions": [ { "field": "string", "op": "string", "value": "string" } ] }, "created_at": "string" } ], "has_more": true}