List segments
Every segment of the project, static and dynamic, newest first; all of them unless `limit` says otherwise.
Every segment of the project, static and dynamic, newest first; all of them unless limit says otherwise.
bearerAuthorizationBearer <token>limit?integer1–100; all items when absent.
0 <= valueafter?stringAn item id: the page after it.
before?stringAn item id: the page before it.
Success
application/json- response
A list response (object: "list").
data*array<>has_more*booleanobject*stringcurl -X GET 'https://api.exx.sh/segments'{ "data": [ { "created_at": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "kind": "static", "name": "string" } ], "has_more": true, "object": "string"}Send an event (Resend-compatible) POST
Resend's shape of POST /events: event is the name, payload (optional) the occurrence's properties, exactly one of contact_id or email. The same service records it: the same identity, consent, idempotency, limits and permissions. Answers 202 with the event's name.
Create a segment POST
A static segment, whose contacts are added one by one; with `rules` (an exx extension) a dynamic one, whose contacts are those its rule selects when it is read. A static segment may require double opt-in (`doi_required`, `doi_from`: exx extensions).