Skip to main content

Create Campaign

Create a new outbound calling campaign
1 min read
post/api/v1/campaign/create
Request example
Response
post/api/v1/campaign/create

Before creating a campaign, upload your contacts CSV to get a source_url.

Set telephony_configuration_id to pin the campaign to a specific telephony configuration. If omitted, Menace Voice falls back to the organization's default outbound configuration — supplying an id that doesn't exist in your organization returns 400 telephony_configuration_not_found.

The time_slots field controls when Menace Voice is allowed to place calls. If omitted, calls can be placed at any time. The timezone field applies to all time slot windows.

Once created, the campaign is in draft status. Call Start to begin dialing.

Headers

authorizationstring · null#
X-API-Keystring · null#

Body

application/json
namestringrequired#

Length: 1–255

workflow_idintegerrequired#
source_typestringrequired#

Pattern: ^csv$

source_idstringrequired#
telephony_configuration_idinteger · null#
Show child attributes
retry_configobject · null#
Show child attributes
max_concurrencyinteger · null#
Show child attributes
schedule_configobject · null#
Show child attributes
circuit_breakerobject · null#
Show child attributes

Responses

application/json
Successful Response
idintegerrequired#
namestringrequired#
workflow_idintegerrequired#
workflow_namestringrequired#
statestringrequired#
source_typestringrequired#
source_idstringrequired#
total_rowsinteger · nullrequired#
Show child attributes
processed_rowsintegerrequired#
failed_rowsintegerrequired#
created_atstringrequired#
started_atstring · nullrequired#
Show child attributes
completed_atstring · nullrequired#
Show child attributes
retry_configobjectrequired#
Show child attributes
enabledbooleanrequired#
max_retriesintegerrequired#
retry_delay_secondsintegerrequired#
retry_on_busybooleanrequired#
retry_on_no_answerbooleanrequired#
retry_on_voicemailbooleanrequired#
max_concurrencyinteger · null#
Show child attributes
schedule_configobject · null#
Show child attributes
circuit_breakerobject · null#
Show child attributes
executed_countinteger#

Default: 0

total_queued_countinteger#

Default: 0

parent_campaign_idinteger · null#
Show child attributes
redialed_campaign_idinteger · null#
Show child attributes
telephony_configuration_idinteger · null#
Show child attributes
telephony_configuration_namestring · null#
Show child attributes
logsobject[]#
Show child attributes
tsstringrequired#
levelstringrequired#
eventstringrequired#
messagestringrequired#
detailsobject · null#
Show child attributes