API Reference · Campaigns
List campaigns
Returns every campaign in your company, newest first, with live contact counts. Campaigns started by a workflow are included.
GET
/campaignshttps://calling.ubiqproject.com/api/v1/campaigns · Auth: API key (full or read-only)
Request
No parameters. There is no pagination — every campaign is returned.
Request
curl https://calling.ubiqproject.com/api/v1/campaigns \
-H "Authorization: Bearer vk_live_YOUR_KEY"Response
An array of campaigns.
Response · 200
[
{
"id": "9b4e6f12-8a3c-4d71-b05e-2f6a8c1d7e93",
"name": "October EMI reminders",
"agent_id": "3f8c2a1e-6b4d-4c7a-9e21-5d0f7b8a9c34",
"agent_name": "Priya",
"phone_number": "+918046801234",
"created_by": "",
"concurrency": 5,
"contacts_total": 3,
"contacts_done": 1,
"contacts_failed": 0,
"contacts_pending": 2,
"state": "running",
"created_at": "2026-10-08T09:14:22.512341Z",
"started_at": "2026-10-08T09:15:03.204511Z",
"config": {
"daily": {
"enabled": true,
"start": "10:00",
"stop": "19:00",
"timezone": "Asia/Kolkata"
},
"retry": {
"enabled": true,
"max_attempts": 3,
"schedule": "custom",
"days": 0,
"hours": 2
}
}
},
{
"id": "1d5a7c3e-9b2f-4e86-a4c1-8f0e6d2b5a79",
"name": "Website leads — week 40",
"agent_id": "3f8c2a1e-6b4d-4c7a-9e21-5d0f7b8a9c34",
"agent_name": "Priya",
"phone_number": null,
"created_by": "meera@sharmafinance.example",
"concurrency": 3,
"contacts_total": 48,
"contacts_done": 39,
"contacts_failed": 9,
"contacts_pending": 0,
"state": "done",
"created_at": "2026-10-01T05:30:41.877120Z",
"started_at": "2026-10-01T05:31:02.019344Z",
"config": {}
}
]Response fields
idstring (UUID)The campaign's ID.
namestringThe campaign's name.
agent_idstring (UUID)The AI employee that makes the calls.
agent_namestringThat AI employee's name.
phone_numberstring | nullThe number calls are made from. null when the AI employee's own number is used.
created_bystring | nullEmail of the dashboard user who created it. Empty when created with an API key.
concurrencyintegerHow many calls may run at the same time (1–20).
contacts_totalintegerEvery contact in the campaign, including ones your conditions filtered out.
contacts_doneintegerContacts whose call connected and finished.
contacts_failedintegerContacts that couldn't be reached after all attempts, plus contacts your conditions filtered out (never called).
contacts_pendingintegerContacts waiting to be called or on a call right now.
statestringdraft (not started), running, paused or done (every contact handled).created_atstring (ISO 8601)When it was created.
started_atstring | nullWhen it first started calling. null for a draft.
configobjectCalling hours, retries, conditions and more — see Create a campaign → config.