Create Campaign
Each API request in TeleCMI platform includes App id and secret. Get your App id and secret in TeleCMI dashboard. After getting the app id and secret, make a POST request to the below endpoint to create a new Voice Campaign (Predictive or Progressive) and assign users/agents to it.
Base URL
https://rest.telecmi.com/v3/campaign/create
Required Parameters
| Parameter Name | Type | Description |
|---|---|---|
| *inet_no | Integer | The account identifier. |
| *secret | String (UUID) | Your app secret. |
| *name | String | Name of the campaign. |
| *dialer_type | String | Type of dialer: "predictive" or "progressive". |
| *active | Boolean | Status of the campaign. |
| *leads_id | String (UUID) | UUID of the mapped leads. |
| *timezone | String | Timezone offset (e.g., "+05:30", "-07:00"). |
| *start_date | String (Date) | Campaign start date (YYYY-MM-DD). |
| *end_date | String (Date) | Campaign end date (YYYY-MM-DD). |
| *start_time | String | Campaign start time (HH:MM:SS or HH:MM). |
| *end_time | String | Campaign end time (HH:MM:SS or HH:MM). |
| *users | Array of Strings | List of Agent IDs (max 100). E.g., ["5159_2224257"]. |
| user_interval | String | E.g., "10_s". Required if dialer_type is progressive. |
Predictive-Only Required Fields:
If dialer_type is "predictive", the following fields are also required:
ratio(String, e.g.,"1:2". Max"99:99")waiting_music(String, use"default"for TeleCMI default music)unanswered_music(String, use"default"for TeleCMI default music)ring_rule(String:"ring-all","longest-idle-agent","round-robin","agent-with-least-talk-time","agent-with-fewest-calls")ring_seconds(Integer)max_waiting_time(Integer)call_interval(Integer:10,20,30,40,50,60, or120)no_agent_no_wait(Boolean)caller_id(String)reject_delay_time(Integer)no_answer_delay_time(Integer)max_waiting_time_without_agent(Integer) - Required only ifno_agent_no_waitis false.
Sample Request
{
"inet_no": 12345,
"secret": "550e8400-e29b-41d4-a716-446655440000",
"name": "Q2_Sales_Campaign",
"dialer_type": "predictive",
"active": true,
"leads_id": "550e8400-e29b-41d4-a716-446655440000",
"timezone": "+05:30",
"start_date": "2026-05-01",
"end_date": "2026-06-01",
"start_time": "09:00:00",
"end_time": "18:00:00",
"users": ["5159_2224257"],
"ratio": "1:2",
"waiting_music": "default",
"unanswered_music": "default",
"ring_rule": "round-robin",
"ring_seconds": 30,
"max_waiting_time": 60,
"call_interval": 10,
"no_agent_no_wait": true,
"caller_id": "919876543210",
"reject_delay_time": 10,
"no_answer_delay_time": 10
}
Sample Response
{
"code": 200,
"msg": "Campaign created successfully"
}
HTTP Status Codes
| Status Code | Status Type | Description |
|---|---|---|
| 200 | Success | Campaign created successfully |
| 400 | Error | Campaign Name Already Exists |
| 400 | Error | Leads ID Not Found |
| 400 | Error | Lead already mapped to another campaign |
| 400 | Error | Invalid agent IDs |
| 400 | Error | User already mapped to another campaign |
| 404 | Error | App Not Found |
| 422 | Error | Validation Failed (e.g., missing required field or invalid format) |
| 500 | Error | Internal Server Error |
Note
The * marked parameter is mandatory.