Segments
Retrieve a segment
GET
bearerheader
AuthorizationBearer <token>id*stringFormat
uuidSuccess
application/json- response
created_at*stringdoi_from?|An exx extension.
doi_required*booleanAn exx extension.
id*stringFormat
uuidkind*SegmentKindAn exx extension.
Value in
"static""dynamic"name*stringobject*stringrules?|An exx extension: a dynamic segment's rule; null for a static segment.
curl -X GET 'https://api.exx.sh/segments/497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
{ "created_at": "string", "doi_from": "string", "doi_required": true, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "kind": "static", "name": "string", "object": "string", "rules": {}}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).
Update a segment PATCH
Renames a segment; a dynamic one's `rules` and a static one's double opt-in settings (exx extensions) change too.