Campaigns

Delete Campaign

delete/campaign/{id}

Path parameters

idstring required

Response

status'scheduled' | 'in-progress' | 'ended' required

This is the status of the campaign.

endedReason'campaign.scheduled.ended-by-user' | 'campaign.in-progress.ended-by-user' | 'campaign.ended.success'

This is the explanation for how the campaign ended.

namestring required

This is the name of the campaign. This is just for your own reference.

assistantIdstring

This is the assistant ID that will be used for the campaign calls. Note: Either assistantId or workflowId can be used, but not both.

workflowIdstring

This is the workflow ID that will be used for the campaign calls. Note: Either assistantId or workflowId can be used, but not both.

phoneNumberIdstring required

This is the phone number ID that will be used for the campaign calls.

idstring required

This is the unique identifier for the campaign.

orgIdstring required

This is the unique identifier for the org that this campaign belongs to.

createdAtstring date-time required

This is the ISO 8601 date-time string of when the campaign was created.

updatedAtstring date-time required

This is the ISO 8601 date-time string of when the campaign was last updated.

callsobject required

This is a map of call IDs to campaign call details.

callsCounterSchedulednumber required

This is the number of calls that have been scheduled.

callsCounterQueuednumber required

This is the number of calls that have been queued.

callsCounterInProgressnumber required

This is the number of calls that have been in progress.

callsCounterEndedVoicemailnumber required

This is the number of calls whose ended reason is 'voicemail'.

callsCounterEndednumber required

This is the number of calls that have ended.

Changes