Campaigns
Dialing campaigns and the leads in them
List campaigns
/v1/campaignscampaigns:readNeeds Campaigns in your plan.
Permission: campaigns:read
Responses
200OK400Invalid request (validation_error, bad_request)401Missing or invalid API key402Your plan does not include this (plan_required, plan_limit, subscription_inactive)403The key lacks the permission (insufficient_scope)404Not found409Not possible right now (e.g. the number is on the do-not-call list, quiet hours, opted out)429Rate limited: see the Retry-After header
curl https://api.dialerday.com/v1/campaigns \
-H "Authorization: Bearer $DIALERDAY_API_KEY"{
"items": [
{
"id": 3,
"name": "Inbound leads",
"status": "active",
"dial_mode": "power",
"priority": 500,
"cadence": "rules",
"max_attempts": 3,
"window_start": "09:00:00",
"window_end": "20:00:00",
"counts": {
"pending": 120,
"in_progress": 2,
"completed": 340,
"failed": 55,
"skipped": 4
}
}
]
}Create a campaign
/v1/campaignscampaigns:writeEvery setting of the campaign editor is available; omitted ones take your Settings → Calling defaults. accept_terms: true confirms the calling-compliance disclaimer, as in the app.
Needs Campaigns in your plan.
Permission: campaigns:write
Headers
Idempotency-Keystring | Retry safely: the first response is replayed for 24 hoursmax 200 chars |
Request body
namerequiredstring | 1–200 chars |
caller_idstring | null | |
max_attemptsinteger | 1–1000 · default 3 |
retry_delay_minutesinteger | 0–10080 · default 60 |
max_linesinteger | 1–8 |
caller_id_mode"fixed" | "pool" | |
window_startstring | max 8 chars |
window_endstring | max 8 chars |
default_timezonestring | max 64 chars |
abandon_messagestring | 1–500 chars |
smart_detectionboolean | |
amd_mode"wait" | "instant" | |
ivr_digitsstring | null | |
screener_messagestring | 1–300 chars |
dial_mode"power" | "predictive" | "adaptive" | |
script_idinteger | null | |
state_rulesboolean | |
min_calls_per_dayinteger | null | |
max_calls_per_dayinteger | null | |
min_calls_per_weekinteger | null | |
max_calls_per_weekinteger | null | |
min_calls_per_monthinteger | null | |
max_calls_per_monthinteger | null | |
aim_callsinteger | null | |
aim_daysinteger | null | |
cap_callsinteger | null | |
cap_daysinteger | null | |
min_gap_minutesinteger | null | |
descriptionstring | max 500 chars |
priorityinteger | 0–1000 |
team_idsinteger[] | max 100 items |
operating_daysinteger[] | max 7 items |
preview_secondsinteger | null | |
preview_timeout_action"dial" | "skip" | |
countrystring | |
skip_holidaysboolean | |
callbacks_when_pausedboolean | |
route_by_stateboolean | |
route_by_skillsboolean | |
required_skill_idsinteger[] | max 20 items |
lead_owner_mode"shared" | "owner_first" | "owner_only" | |
owner_hold_minutesinteger | null | |
auto_assign"none" | "round_robin" | "balanced" | |
answered_overflowboolean | |
overflow_strategy"longest_waiting" | "round_robin" | "skills" | |
cadence_mode"rules" | "steps" | |
source_tag_idsinteger[] | max 200 items |
only_tag_idsinteger[] | max 200 items |
skip_tag_idsinteger[] | max 200 items |
skip_bookedboolean | |
booked_tag_idsinteger[] | max 200 items |
budgetnumber | null | |
lead_order"default" | "newest" | "oldest" | |
score_never_dialedboolean | null | |
score_best_hoursboolean | null | |
score_restedboolean | null | |
after_call_secondsinteger | null | |
amd_sensitivity"low" | "moderate" | "high" | |
amd_timeout_secondsinteger | 3–59 |
machine_action"agent_drop" | "campaign_drop" | "hangup" | |
voicemail_drop_idinteger | null | |
allowed_utc_offsetsinteger[] | max 40 items |
ring_timeout_secondsinteger | null | |
local_presence_fallback"pool" | "default" | null | |
caller_id_stickyboolean | |
inbound_route"number" | "agents" | "ring_group" | "forward" | |
inbound_agent_idsinteger[] | max 200 items |
inbound_ring_group_idinteger | null | |
inbound_forward_tostring | null | |
missed_call_sms_mode"company" | "custom" | "off" | |
missed_call_smsstring | null | |
bad_number_tag_idinteger | null | |
notify_agent_idsinteger[] | max 200 items |
manager_idsinteger[] | max 200 items |
callback_expire_minutesinteger | null | |
speed_to_lead_secondsinteger | null | |
consent_mode"off" | "manual_touch" | "required" | |
vertical_dialingboolean | |
preset"speed_to_lead" | null | |
stepsobject[] | null | |
accept_termsrequiredtrue |
Responses
201OK400Invalid request (validation_error, bad_request)401Missing or invalid API key402Your plan does not include this (plan_required, plan_limit, subscription_inactive)403The key lacks the permission (insufficient_scope)404Not found409Not possible right now (e.g. the number is on the do-not-call list, quiet hours, opted out)429Rate limited: see the Retry-After header
curl -X POST https://api.dialerday.com/v1/campaigns \
-H "Authorization: Bearer $DIALERDAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Inbound leads",
"accept_terms": true,
"dial_mode": "power",
"max_attempts": 5,
"window_start": "09:00",
"window_end": "19:00"
}'{
"id": 3,
"name": "Inbound leads",
"status": "active",
"dial_mode": "power",
"priority": 500,
"cadence": "rules",
"max_attempts": 3,
"window_start": "09:00:00",
"window_end": "20:00:00",
"counts": {
"pending": 120,
"in_progress": 2,
"completed": 340,
"failed": 55,
"skipped": 4
}
}Get a campaign, with lead counts
/v1/campaigns/{id}campaigns:readNeeds Campaigns in your plan.
Permission: campaigns:read
Path parameters
idrequiredinteger | ≥ 1 |
Responses
200OK400Invalid request (validation_error, bad_request)401Missing or invalid API key402Your plan does not include this (plan_required, plan_limit, subscription_inactive)403The key lacks the permission (insufficient_scope)404Not found409Not possible right now (e.g. the number is on the do-not-call list, quiet hours, opted out)429Rate limited: see the Retry-After header
curl https://api.dialerday.com/v1/campaigns/42 \
-H "Authorization: Bearer $DIALERDAY_API_KEY"{
"id": 3,
"name": "Inbound leads",
"status": "active",
"dial_mode": "power",
"priority": 500,
"cadence": "rules",
"max_attempts": 3,
"window_start": "09:00:00",
"window_end": "20:00:00",
"counts": {
"pending": 120,
"in_progress": 2,
"completed": 340,
"failed": 55,
"skipped": 4
}
}Update a campaign, or start / pause it
/v1/campaigns/{id}campaigns:writeOnly the settings sent change. status: draft, active, paused or completed.
Needs Campaigns in your plan.
Permission: campaigns:write
Path parameters
idrequiredinteger | ≥ 1 |
Request body
namestring | 1–200 chars |
caller_idstring | null | |
max_attemptsinteger | 1–1000 |
retry_delay_minutesinteger | 0–10080 |
max_linesinteger | 1–8 |
caller_id_mode"fixed" | "pool" | |
window_startstring | max 8 chars |
window_endstring | max 8 chars |
default_timezonestring | max 64 chars |
abandon_messagestring | 1–500 chars |
smart_detectionboolean | |
amd_mode"wait" | "instant" | |
ivr_digitsstring | null | |
screener_messagestring | 1–300 chars |
dial_mode"power" | "predictive" | "adaptive" | |
script_idinteger | null | |
state_rulesboolean | |
min_calls_per_dayinteger | null | |
max_calls_per_dayinteger | null | |
min_calls_per_weekinteger | null | |
max_calls_per_weekinteger | null | |
min_calls_per_monthinteger | null | |
max_calls_per_monthinteger | null | |
aim_callsinteger | null | |
aim_daysinteger | null | |
cap_callsinteger | null | |
cap_daysinteger | null | |
min_gap_minutesinteger | null | |
descriptionstring | max 500 chars |
priorityinteger | 0–1000 |
team_idsinteger[] | max 100 items |
operating_daysinteger[] | max 7 items |
preview_secondsinteger | null | |
preview_timeout_action"dial" | "skip" | |
countrystring | |
skip_holidaysboolean | |
callbacks_when_pausedboolean | |
route_by_stateboolean | |
route_by_skillsboolean | |
required_skill_idsinteger[] | max 20 items |
lead_owner_mode"shared" | "owner_first" | "owner_only" | |
owner_hold_minutesinteger | null | |
auto_assign"none" | "round_robin" | "balanced" | |
answered_overflowboolean | |
overflow_strategy"longest_waiting" | "round_robin" | "skills" | |
cadence_mode"rules" | "steps" | |
source_tag_idsinteger[] | max 200 items |
only_tag_idsinteger[] | max 200 items |
skip_tag_idsinteger[] | max 200 items |
skip_bookedboolean | |
booked_tag_idsinteger[] | max 200 items |
budgetnumber | null | |
lead_order"default" | "newest" | "oldest" | |
score_never_dialedboolean | null | |
score_best_hoursboolean | null | |
score_restedboolean | null | |
after_call_secondsinteger | null | |
amd_sensitivity"low" | "moderate" | "high" | |
amd_timeout_secondsinteger | 3–59 |
machine_action"agent_drop" | "campaign_drop" | "hangup" | |
voicemail_drop_idinteger | null | |
allowed_utc_offsetsinteger[] | max 40 items |
ring_timeout_secondsinteger | null | |
local_presence_fallback"pool" | "default" | null | |
caller_id_stickyboolean | |
inbound_route"number" | "agents" | "ring_group" | "forward" | |
inbound_agent_idsinteger[] | max 200 items |
inbound_ring_group_idinteger | null | |
inbound_forward_tostring | null | |
missed_call_sms_mode"company" | "custom" | "off" | |
missed_call_smsstring | null | |
bad_number_tag_idinteger | null | |
notify_agent_idsinteger[] | max 200 items |
manager_idsinteger[] | max 200 items |
callback_expire_minutesinteger | null | |
speed_to_lead_secondsinteger | null | |
consent_mode"off" | "manual_touch" | "required" | |
vertical_dialingboolean | |
status"draft" | "active" | "paused" | "completed" |
Responses
200OK400Invalid request (validation_error, bad_request)401Missing or invalid API key402Your plan does not include this (plan_required, plan_limit, subscription_inactive)403The key lacks the permission (insufficient_scope)404Not found409Not possible right now (e.g. the number is on the do-not-call list, quiet hours, opted out)429Rate limited: see the Retry-After header
curl -X PATCH https://api.dialerday.com/v1/campaigns/42 \
-H "Authorization: Bearer $DIALERDAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"status": "paused"
}'{
"id": 3,
"name": "Inbound leads",
"status": "active",
"dial_mode": "power",
"priority": 500,
"cadence": "rules",
"max_attempts": 3,
"window_start": "09:00:00",
"window_end": "20:00:00",
"counts": {
"pending": 120,
"in_progress": 2,
"completed": 340,
"failed": 55,
"skipped": 4
}
}Add one lead (creates or updates the contact)
/v1/campaigns/{id}/leadscampaigns:writeSame body as the campaign’s lead webhook: phone (or number1) plus any contact fields, custom_fields and consent proof.
Needs Campaigns in your plan.
Permission: campaigns:write
Path parameters
idrequiredinteger | ≥ 1 |
Headers
Idempotency-Keystring | Retry safely: the first response is replayed for 24 hoursmax 200 chars |
Request body
number1string | number | |
phonestring | number | |
first_namestring | max 500 chars |
last_namestring | max 500 chars |
emailstring | max 500 chars |
companystring | max 500 chars |
notesstring | max 5000 chars |
lead_websitestring | max 500 chars |
lead_sourcestring | max 500 chars |
crm_referencestring | number | |
streetstring | max 500 chars |
citystring | max 500 chars |
statestring | max 500 chars |
zipstring | number | |
countrystring | max 500 chars |
timezonestring | max 500 chars |
languagestring | max 500 chars |
custom_fieldsobject | |
consent"pewc" | "pec" | "ebr" | |
consent_atstring | max 40 chars |
trustedform_cert_urlstring (uri) | max 1000 chars |
jornaya_leadidstring | max 200 chars |
ip_addressstring | max 64 chars |
Responses
201OK400Invalid request (validation_error, bad_request)401Missing or invalid API key402Your plan does not include this (plan_required, plan_limit, subscription_inactive)403The key lacks the permission (insufficient_scope)404Not found409Not possible right now (e.g. the number is on the do-not-call list, quiet hours, opted out)429Rate limited: see the Retry-After header
curl -X POST https://api.dialerday.com/v1/campaigns/42/leads \
-H "Authorization: Bearer $DIALERDAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"phone": "+15551234567",
"first_name": "Jane",
"last_name": "Doe",
"email": "jane@example.com",
"custom_fields": {
"budget": 5000
}
}'Add contacts in bulk
/v1/campaigns/{id}/contactscampaigns:writeExisting contacts by contact_ids, and/or up to 10,000 rows (new contacts are created; known numbers are updated). validation: skip rows with a bad number, or reject the whole batch.
Needs Campaigns in your plan.
Permission: campaigns:write
Path parameters
idrequiredinteger | ≥ 1 |
Headers
Idempotency-Keystring | Retry safely: the first response is replayed for 24 hoursmax 200 chars |
Request body
contact_idsinteger[] | max 10000 items |
rowsobject[] | max 10000 items |
first_namestring | max 100 chars |
last_namestring | max 100 chars |
phonerequiredstring | 3–30 chars |
emailstring (email) | null | default null |
companystring | null | |
timezonestring | null | |
extensionstring | null | |
notesstring | null | |
lead_sourcestring | null | |
lead_websitestring | null | |
crm_referencestring | null | |
streetstring | null | |
citystring | null | |
statestring | null | |
postal_codestring | null | |
languagestring | null | |
countrystring | null | |
customobject | |
other_phonesobject[] | max 9 items |
phonerequiredstring | max 40 chars |
label"mobile" | "home" | "work" | "other" | default "other" |
consentobject | |
kindrequired"pewc" | "pec" | "ebr" | |
captured_atstring (date-time) | string | null | default null |
evidence_urlstring | null | |
lead_id_tokenstring | null | |
validation"skip" | "reject" | default "skip" |
Responses
200OK400Invalid request (validation_error, bad_request)401Missing or invalid API key402Your plan does not include this (plan_required, plan_limit, subscription_inactive)403The key lacks the permission (insufficient_scope)404Not found409Not possible right now (e.g. the number is on the do-not-call list, quiet hours, opted out)429Rate limited: see the Retry-After header
curl -X POST https://api.dialerday.com/v1/campaigns/42/contacts \
-H "Authorization: Bearer $DIALERDAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contact_ids": [
42,
43
],
"rows": [
{
"first_name": "Jane",
"phone": "+15551234567",
"custom": {
"budget": "5000"
}
}
]
}'{
"added": 250,
"rejected": []
}The leads in a campaign
/v1/campaigns/{id}/contactscampaigns:readKeyset-paged: pass next_cursor back as cursor for the next page.
Needs Campaigns in your plan.
Permission: campaigns:read
Path parameters
idrequiredinteger | ≥ 1 |
Query parameters
status"pending" | "in_progress" | "completed" | "failed" | "skipped" | |
searchstring | max 100 chars |
limitinteger | 1–200 · default 50 |
cursorstring | max 200 chars |
Responses
200OK400Invalid request (validation_error, bad_request)401Missing or invalid API key402Your plan does not include this (plan_required, plan_limit, subscription_inactive)403The key lacks the permission (insufficient_scope)404Not found409Not possible right now (e.g. the number is on the do-not-call list, quiet hours, opted out)429Rate limited: see the Retry-After header
curl https://api.dialerday.com/v1/campaigns/42/contacts \
-H "Authorization: Bearer $DIALERDAY_API_KEY"Take leads out of a campaign by phone number
/v1/campaigns/{id}/contacts/removecampaigns:writeTheir call history is kept.
Needs Campaigns in your plan.
Permission: campaigns:write
Path parameters
idrequiredinteger | ≥ 1 |
Headers
Idempotency-Keystring | Retry safely: the first response is replayed for 24 hoursmax 200 chars |
Request body
phonesrequiredstring[] | max 50000 items |
validation"skip" | "reject" | default "reject" |
Responses
200OK400Invalid request (validation_error, bad_request)401Missing or invalid API key402Your plan does not include this (plan_required, plan_limit, subscription_inactive)403The key lacks the permission (insufficient_scope)404Not found409Not possible right now (e.g. the number is on the do-not-call list, quiet hours, opted out)429Rate limited: see the Retry-After header
curl -X POST https://api.dialerday.com/v1/campaigns/42/contacts/remove \
-H "Authorization: Bearer $DIALERDAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"phones": [
"+15551234567"
]
}'Take one contact out of a campaign
/v1/campaigns/{id}/contacts/{contactId}campaigns:writeNeeds Campaigns in your plan.
Permission: campaigns:write
Path parameters
idrequiredinteger | ≥ 1 |
contactIdrequiredinteger | ≥ 1 |
Responses
204Done400Invalid request (validation_error, bad_request)401Missing or invalid API key402Your plan does not include this (plan_required, plan_limit, subscription_inactive)403The key lacks the permission (insufficient_scope)404Not found409Not possible right now (e.g. the number is on the do-not-call list, quiet hours, opted out)429Rate limited: see the Retry-After header
curl -X DELETE https://api.dialerday.com/v1/campaigns/42/contacts/42 \
-H "Authorization: Bearer $DIALERDAY_API_KEY"Call a lead next (top of the queue)
/v1/campaigns/{id}/contacts/{contactId}/boostcampaigns:writeNeeds Campaigns in your plan.
Permission: campaigns:write
Path parameters
idrequiredinteger | ≥ 1 |
contactIdrequiredinteger | ≥ 1 |
Headers
Idempotency-Keystring | Retry safely: the first response is replayed for 24 hoursmax 200 chars |
Responses
200OK400Invalid request (validation_error, bad_request)401Missing or invalid API key402Your plan does not include this (plan_required, plan_limit, subscription_inactive)403The key lacks the permission (insufficient_scope)404Not found409Not possible right now (e.g. the number is on the do-not-call list, quiet hours, opted out)429Rate limited: see the Retry-After header
curl -X POST https://api.dialerday.com/v1/campaigns/42/contacts/42/boost \
-H "Authorization: Bearer $DIALERDAY_API_KEY"{
"changed": true
}Put a lead back in the queue
/v1/campaigns/{id}/contacts/{contactId}/requeuecampaigns:writeNeeds Campaigns in your plan.
Permission: campaigns:write
Path parameters
idrequiredinteger | ≥ 1 |
contactIdrequiredinteger | ≥ 1 |
Headers
Idempotency-Keystring | Retry safely: the first response is replayed for 24 hoursmax 200 chars |
Request body
reset_attemptsboolean | default false |
delay_minutesinteger | 0–43200 · default 0 |
Responses
200OK400Invalid request (validation_error, bad_request)401Missing or invalid API key402Your plan does not include this (plan_required, plan_limit, subscription_inactive)403The key lacks the permission (insufficient_scope)404Not found409Not possible right now (e.g. the number is on the do-not-call list, quiet hours, opted out)429Rate limited: see the Retry-After header
curl -X POST https://api.dialerday.com/v1/campaigns/42/contacts/42/requeue \
-H "Authorization: Bearer $DIALERDAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"reset_attempts": false,
"delay_minutes": 0
}'{
"changed": true
}The campaigns a contact is in
/v1/contacts/{id}/campaignscampaigns:readNeeds Campaigns in your plan.
Permission: campaigns:read
Path parameters
idrequiredinteger | ≥ 1 |
Responses
200OK400Invalid request (validation_error, bad_request)401Missing or invalid API key402Your plan does not include this (plan_required, plan_limit, subscription_inactive)403The key lacks the permission (insufficient_scope)404Not found409Not possible right now (e.g. the number is on the do-not-call list, quiet hours, opted out)429Rate limited: see the Retry-After header
curl https://api.dialerday.com/v1/contacts/42/campaigns \
-H "Authorization: Bearer $DIALERDAY_API_KEY"Move a contact to another campaign, history included
/v1/contacts/{id}/move-campaigncampaigns:writeA contact being dialed right now cannot move (409 entry_busy).
Needs Campaigns in your plan.
Permission: campaigns:write
Path parameters
idrequiredinteger | ≥ 1 |
Headers
Idempotency-Keystring | Retry safely: the first response is replayed for 24 hoursmax 200 chars |
Request body
from_campaign_idrequiredinteger | |
to_campaign_idrequiredinteger | |
reset_attemptsboolean | default false |
delay_minutesinteger | 0–43200 · default 0 |
Responses
200OK400Invalid request (validation_error, bad_request)401Missing or invalid API key402Your plan does not include this (plan_required, plan_limit, subscription_inactive)403The key lacks the permission (insufficient_scope)404Not found409Not possible right now (e.g. the number is on the do-not-call list, quiet hours, opted out)429Rate limited: see the Retry-After header
curl -X POST https://api.dialerday.com/v1/contacts/42/move-campaign \
-H "Authorization: Bearer $DIALERDAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"from_campaign_id": 42,
"to_campaign_id": 42
}'{
"result": "moved"
}