clone_campaign
Clone an existing campaign with new destinations and dates.
| Permission | telephony |
| REST equivalent | CreateCampaign (clone mode) |
Clones a campaign created in the control panel (including VoiceBot, Q&A, and other complex types). Only destinations and schedule need to be supplied each run.
Required parameters
| Parameter | Type | Description |
|---|---|---|
cp_id |
string | Source campaign ID (get_campaigns_list) |
date_start |
string | New start date YYYY-MM-DD |
date_end |
string | New end date YYYY-MM-DD |
Destinations (one required)
| Parameter | Type | Description |
|---|---|---|
cdlc_id |
string | Destination base ID |
datajson |
string | Inline destination JSON |
Optional parameters
| Parameter | Description |
|---|---|
time_start, time_end |
Inherited from source if omitted |
name, group |
Override metadata; an empty group keeps the source campaign’s group, 0 removes it |
detail |
Description. Not copied from the source campaign |
vel, resends, time_resends, mobile, max_answered, no_block |
Dialing behaviour. Override the source campaign; check the saved values in settings |
active |
1 active after loading (default) or 0 created inactive |
Asynchronous generation
Success means the campaign was accepted. Its destinations load in the background (seconds, or minutes for large bases), and then the campaign dials in its date/time window, unless active is 0.
- The response includes
settings(answered-call limit, speed and resends saved on the campaign) andnext_step. - To confirm the load, call get_campaigns_list with
cp_id:cp_active2means still loading, then1or0. - Do not change
cp_activewhile it is2: the loader sets the final status when it finishes. - Do not repeat a call that returned success. After a timeout or connection error, repeating the exact same call (same arguments) within 30 minutes is safe: the server sends an idempotency key built from the arguments, and the platform returns the campaign already created with
duplicate_request: trueinstead of a new one. Changing any argument creates a new campaign. - If loading dies, after about 30 minutes the campaign shows
cp_active0withcp_status_txtstartingFalha na geração: it cannot be activated; create it again.
Example
curl -X POST 'https://vox20.velip.com.br/mcpserver/velip' \
-H 'Authorization: Bearer YOUR_TOKEN_30_CHARS' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "clone_campaign",
"arguments": {
"cp_id": "100",
"date_start": "2026-06-01",
"date_end": "2026-06-15",
"cdlc_id": "789"
}
}
}'
Responses
Success:
{
"success": true,
"cp_id": "201",
"message": "Campaign cloned"
}