List segments
bearerAuthAuthorizationBearer <API key>Project API key (cr_sk_...)
include_archived?booleanWhen true, include archived Segments in the list.
falseActive segments by default. Pass include_archived=true to include archived segments.
application/json- response
segments*array<>curl -X GET 'https://api.comraid.io/segments'{ "segments": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "segment_id": "0dbbf761-5b2d-4647-8bfa-2b714456749c", "name": "string", "description": "string", "rules": { "operator": "and", "conditions": [ { "field": "string", "key": "string", "op": "string", "value": null } ] }, "status": "active", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "archived_at": "2019-08-24T14:15:22Z" } ]}Cancel every cancellable Message under a Campaign POST
Cancels each child Message that is `scheduled`, `preparing`, or `processing` using the same rule as `cancelMessage`: Deliveries not yet offered to the Provider become `skipped` with reason `cancelled`; Deliveries already sent stay sent. Finished child Messages (`completed`, `failed`, or already `cancelled`) are left unchanged. Returns 409 when the Campaign has no cancellable Messages.
Create segment POST
Creates a saved Segment. Rules must include at least one condition (use Everyone targeting for all Contacts). At most 50 conditions and 1,000 values per `in` list. Name collisions return 409 `segment_name_taken`.