ComRaidComRaid Docs
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
/segments/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).

Authorization

bearerAuth
headerAuthorizationBearer <API key>

Project API key (cr_sk_...)

Request Body

application/json
  1. body
segment_ids*array<|>

Page of Segment IDs from the list (saved UUIDs or builtins)

Items1 <= items <= 100

Response Body

Counts per Segment ID

application/json
  1. response
counts*array<>
Example Request
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    }  ]}