Skip to main content

Endpoints


Get Campaign Stats

GET https://api.graine.ai/api/v1/campaigns/{campaign_id}/stats Returns live granular stats computed in real-time from the contacts and call_records collections.

Path Parameters

Example Request

Response 200 OK

Stats Field Reference


List Campaign Batches

GET https://api.graine.ai/api/v1/campaigns/{campaign_id}/batches Lists all batches under a campaign with live per-batch counters computed from contacts (never stale stored counters).

Query Parameters

Example Request

Response 200 OK

counters in the batch list response are computed in real-time from two aggregations over the contacts + call_records collections. They are never stale.