API referenceSegments
Batch Segment contact and scheduled-message counts
Returns live `contact_count` and `scheduled_message_count` for a page of Segment IDs (saved UUIDs or builtin `seg_sys_*`). Dashboard list rows call this after the list loads. `contact_count` matches targeting preview with no platform or Category filter (Contacts with at least one offerable device).
POST
Returns live contact_count and scheduled_message_count for a page of Segment IDs (saved UUIDs or builtin seg_sys_*). Dashboard list rows call this after the list loads. contact_count matches targeting preview with no platform or Category filter (Contacts with at least one offerable device).
bearerAuthheader
AuthorizationBearer <API key>Project API key (cr_sk_...)
application/json- body
segment_ids*array<|>Page of Segment IDs from the list (saved UUIDs or builtins)
Items
1 <= items <= 100Counts per Segment ID
application/json- response
counts*array<>curl -X POST 'https://api.comraid.io/segments/counts' \ -H 'Content-Type: application/json' \ -d '{ "segment_ids": [ "seg_sys_subscribed" ]}'Example Response
{ "counts": [ { "segment_id": "string", "contact_count": 0, "scheduled_message_count": 0 } ]}