Skip to main content
Back to API List Use this API to delete an active voice campaign for a given stream ID and campaign ID.
MethodDELETE
Endpointhttps://{{host}}/agentassist/api/v1/public/{{IId}}/campaign/{{campaignType}}?campaignType=voice
Content-Typeapplication/json
Authorizationauth: {{JWT}} See How to generate the JWT Token
API ScopeCampaign Management

Path Parameters

ParameterDescriptionType
hostEnvironment URL, for example, https://platform.kore.aistring, required
IIdThe Application ID.string, required
campaignIdUnique identifier of the campaign to trigger.string, required

Query Parameters

ParameterDescriptionType
campaignTypeType of campaign. Use "voice" for voice campaign.string, required

Sample Request

curl --location --request DELETE 'https://{{host}}/agentassist/api/v1/public/{{botId}}/campaign/{{campaignType}}?campaignType=voice' \
--header 'iid: st-0603182c-7ffb-53c3-b307-47ca14b9xxxx' \
--header 'accountId: 67777ce93e25326494e9xxxx' \
--header 'auth: <token>'

Headers

HeaderDescriptionRequired/Optional
authJWT token for authentication.required
iidThe Application Id.required
accountIdThe Account Id.required

Sample Response

{
    "status": "success",
    "message": "Campaign Billing Reminder Voice Campaign2 deleted successfully",
    "data": {
        "_id": "cd-2129073-58d9-44d5-a5d1-454b1220xxxx",
        "name": "Billing Reminder Voice Campaign2",
        "lname": "billing reminder voice campaign2",
        "description": "Progressive dialing campaign to notify customers about pending bill payments. Connects to an agent if available; otherwise, a voice bot shares payment details",
        "priority": "5",
        "dialingMode": "Preview",
        "dialingStrategy": {
            "callerId": {
                "phoneNumber": "+18123456789"
            },
            "callingHours": {
                "frequency": "WEEKLY",
                "days": [
                    {
                        "start": "9:00 AM",
                        "end": "6:00 PM",
                        "day": "MO"
                    },
                    {
                        "start": "9:00 AM",
                        "end": "6:00 PM",
                        "day": "TU"
                    },
                    {
                        "start": "9:00 AM",
                        "end": "6:00 PM",
                        "day": "WE"
                    },
                    {
                        "start": "9:00 AM",
                        "end": "6:00 PM",
                        "day": "TH"
                    },
                    {
                        "start": "9:00 AM",
                        "end": "6:00 PM",
                        "day": "FR"
                    }
                ],
                "timezone": "Asia/Kolkata"
            },
            "dialingOrder": "FIFO",
            "maxAttemptsPerRecord": 3,
            "defaultRetryPeriod": 10,
            "maxRingTime": 30
        },
        "status": "Stopped",
        "maxSkips": 1,
        "createdAt": "2025-06-26T09:11:00.612Z",
        "updatedAt": "2025-06-26T11:41:42.569Z",
        "schedule": {
            "isSchedulingEnabled": false,
            "isRecurrenceEnabled": false
        },
        "campaignInstanceId": "cid-700c76d-6bb6-47ce-b2d0-58541769xxxx",
        "contactLists": [
            "Recent Buyers - Q2 2025"
        ],
        "enableMachineDetect": false
    }
}

Response Body Parameters

ParameterDescriptionType
statusOverall status of the API response. Example: "success"string
messageMessage indicating the result of the delete operation.string
dataObject containing details of the deleted campaign.object
data._idUnique identifier of the deleted campaign.string
data.nameCampaign name.string
data.lnameLowercase version of the campaign name.string
data.descriptionDescription of the campaign objective and behavior.string
data.priorityPriority assigned to the campaign.string
data.dialingModeDialing mode used by the campaign. Example: "Preview"string
data.dialingStrategyStrategy configuration for dialing.object
data.dialingStrategy.callerId.phoneNumberCaller ID phone number used for outbound calls.string
data.dialingStrategy.callingHours.frequencyFrequency of campaign execution. Example: "WEEKLY"string
data.dialingStrategy.callingHours.daysList of days with start and end times for dialing.array of object
data.dialingStrategy.callingHours.days[].dayDay of the week. Example: "MO"string
data.dialingStrategy.callingHours.days[].startStart time of the campaign on that day. (HH:MM AM/PM)string
data.dialingStrategy.callingHours.days[].endEnd time of the campaign on that day. (HH:MM AM/PM)string
data.dialingStrategy.callingHours.timezoneTime zone for the defined calling hours.string
data.dialingStrategy.dialingOrderOrder in which contacts are dialed. Example: "FIFO"string
data.dialingStrategy.maxAttemptsPerRecordMaximum number of attempts allowed per contact.integer
data.dialingStrategy.defaultRetryPeriodTime (in minutes) before retrying a failed attempt.integer
data.dialingStrategy.maxRingTimeMaximum ring time per call attempt in seconds.integer
data.statusCurrent status of the campaign. Example: "Stopped"string
data.maxSkipsMaximum number of skips allowed for this campaign.integer
data.createdAtTimestamp of campaign creation. (ISO 8601)string
data.updatedAtTimestamp of the last campaign update. (ISO 8601)string
data.scheduleScheduling configuration of the campaign.object
data.schedule.isSchedulingEnabledIndicates if scheduling is enabled.boolean
data.schedule.isRecurrenceEnabledIndicates if recurrence is enabled.boolean
data.campaignInstanceIdUnique identifier for the campaign instance.string
data.contactListsNames of contact lists linked to the campaign.array of string
data.enableMachineDetectIndicates if machine detection is enabled.boolean