POST
/v1/admin/campaigns
Create Campaign
curl -X POST https://api.{cluster}.{platform}.voiger.io/v1/admin/campaigns \ -H "Cookie: sid=$VOIGER_SESSION" \ -H "x-workspace-code: your-workspace-code" \ -H "x-csrf-token: $CSRF_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "campaign": { "name": "summer-offer", "strategy": "progressive_dialer", "type": "pre_connect", "queue_id": "23967773-1d16-4f81-8582-5b9193601d26", "connector_id": "23967773-1d16-4f81-8582-5b9193601d26", "country": "US", "reason": "Follow up on recent inquiry about summer offer.", "agent_script": "Hello, I am calling regarding your interest in our summer offer. Do you have a few minutes to talk?", "restrict_tag_ids": null, "recall_waiting_time": 30, "retries": 3, "retry_delay": 60, "ring_timeout": 30, "concurrency": 10, "start_date": "2024-06-01", "end_date": "2024-06-30", "timeslots": { "1": [ "09:00-12:00", "13:00-18:00" ] } } }'
Parameters
x-workspace-code
string
required
in header
x-csrf-token
string
required
in header
Response
campaign▾idnamestrategytypeaudio_idtts▾languagetextivr_idqueue_idconnector_idcountryretriesretry_delayring_timeoutconcurrencycalls_per_agentreasonagent_scriptrestrict_tag_idsrecall_waiting_timetimeslotstotalprocessedansweredweightstatusstart_dateend_datecreated_atupdated_at