List segments
Newest first, 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.
GET
/segments授权
AuthorizationBearer 令牌 · header必填A BillionSend API key (bs_…).
查询参数
limitintegerPage size, 1-100 (default 20)
最小值 1 · 最大值 100
afterstring<uuid>Cursor: 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.
beforestring<uuid>Cursor: id of the first item of the current page; returns the previous page; same rule as after.
响应
200
Segments
objectstring必填允许值:
listdataobject[]必填显示属性隐藏属性
object 数组objectstring必填允许值:
segmentidstring<uuid>必填namestring必填domain_idstring<uuid> | null必填BillionSend extension: the domain the segment is bound to; null for a team-wide segment
filterSegmentFilter | null必填显示属性隐藏属性
matchstring必填允许值:
allanyconditionsobject[]必填最多 50 项
显示属性隐藏属性
object 数组fieldstring必填opstring必填valuestring | null必填最大长度 500
created_atstring必填has_moreboolean必填401
Missing, malformed, unknown or revoked API key
statusCodenumber必填namestring必填messagestring必填422
Validation error
statusCodenumber必填namestring必填messagestring必填429
Over the rate limit (rate_limit_exceeded, with Retry-After)
statusCodenumber必填namestring必填messagestring必填