List campaigns with live counts
GET
https://server.heyrik.com/api/v1/campaignsHeaders
AuthorizationstringRequiredUse Bearer $HEYRIK_API_KEY with an account-scoped API key. Keep the key on your server.
Parameters 1
Fields documented for this operation. See the request example for placement and structure.
agency_idstringOnly campaigns run by this agent.
Response
Explore the example values. This is not a complete response schema.
dataarrayExplore 1 example item
[0]objectExplore 6 properties
idstringExample "cmp_4a19"
namestringExample "July outreach"
statusstringExample "running"
agency_idstringExample "agc_9f2a1c30"
totalnumberExample 250
countsobjectExplore 6 properties
pendingnumberExample 132
callingnumberExample 1
completednumberExample 108
failednumberExample 9
retrynumberExample 0
totalnumberExample 250
GET/campaigns
cURL
curl https://server.heyrik.com/api/v1/campaigns \
-H "Authorization: Bearer $HEYRIK_API_KEY"Response example
JSON
{
"data": [
{
"id": "cmp_4a19",
"name": "July outreach",
"status": "running",
"agency_id": "agc_9f2a1c30",
"total": 250,
"counts": { "pending": 132, "calling": 1, "completed": 108, "failed": 9, "retry": 0, "total": 250 }
}
]
}Illustrative examples · No live request is sent
