DialerDay Docs

Campaigns

Dialing campaigns and the leads in them

List campaigns

get/v1/campaigns
Permission campaigns:read

Needs Campaigns in your plan.

Permission: campaigns:read

Responses

  • 200OK
  • 400Invalid request (validation_error, bad_request)
  • 401Missing or invalid API key
  • 402Your plan does not include this (plan_required, plan_limit, subscription_inactive)
  • 403The key lacks the permission (insufficient_scope)
  • 404Not found
  • 409Not 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"
Response · 200
{
  "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

post/v1/campaigns
Permission campaigns:write

Every 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-Key
string
Retry safely: the first response is replayed for 24 hoursmax 200 chars

Request body

namerequired
string
1–200 chars
caller_id
string | null
max_attempts
integer
1–1000 · default 3
retry_delay_minutes
integer
0–10080 · default 60
max_lines
integer
1–8
caller_id_mode
"fixed" | "pool"
window_start
string
max 8 chars
window_end
string
max 8 chars
default_timezone
string
max 64 chars
abandon_message
string
1–500 chars
smart_detection
boolean
amd_mode
"wait" | "instant"
ivr_digits
string | null
screener_message
string
1–300 chars
dial_mode
"power" | "predictive" | "adaptive"
script_id
integer | null
state_rules
boolean
min_calls_per_day
integer | null
max_calls_per_day
integer | null
min_calls_per_week
integer | null
max_calls_per_week
integer | null
min_calls_per_month
integer | null
max_calls_per_month
integer | null
aim_calls
integer | null
aim_days
integer | null
cap_calls
integer | null
cap_days
integer | null
min_gap_minutes
integer | null
description
string
max 500 chars
priority
integer
0–1000
team_ids
integer[]
max 100 items
operating_days
integer[]
max 7 items
preview_seconds
integer | null
preview_timeout_action
"dial" | "skip"
country
string
skip_holidays
boolean
callbacks_when_paused
boolean
route_by_state
boolean
route_by_skills
boolean
required_skill_ids
integer[]
max 20 items
lead_owner_mode
"shared" | "owner_first" | "owner_only"
owner_hold_minutes
integer | null
auto_assign
"none" | "round_robin" | "balanced"
answered_overflow
boolean
overflow_strategy
"longest_waiting" | "round_robin" | "skills"
cadence_mode
"rules" | "steps"
source_tag_ids
integer[]
max 200 items
only_tag_ids
integer[]
max 200 items
skip_tag_ids
integer[]
max 200 items
skip_booked
boolean
booked_tag_ids
integer[]
max 200 items
budget
number | null
lead_order
"default" | "newest" | "oldest"
score_never_dialed
boolean | null
score_best_hours
boolean | null
score_rested
boolean | null
after_call_seconds
integer | null
amd_sensitivity
"low" | "moderate" | "high"
amd_timeout_seconds
integer
3–59
machine_action
"agent_drop" | "campaign_drop" | "hangup"
voicemail_drop_id
integer | null
allowed_utc_offsets
integer[]
max 40 items
ring_timeout_seconds
integer | null
local_presence_fallback
"pool" | "default" | null
caller_id_sticky
boolean
inbound_route
"number" | "agents" | "ring_group" | "forward"
inbound_agent_ids
integer[]
max 200 items
inbound_ring_group_id
integer | null
inbound_forward_to
string | null
missed_call_sms_mode
"company" | "custom" | "off"
missed_call_sms
string | null
bad_number_tag_id
integer | null
notify_agent_ids
integer[]
max 200 items
manager_ids
integer[]
max 200 items
callback_expire_minutes
integer | null
speed_to_lead_seconds
integer | null
consent_mode
"off" | "manual_touch" | "required"
vertical_dialing
boolean
preset
"speed_to_lead" | null
steps
object[] | null
accept_termsrequired
true

Responses

  • 201OK
  • 400Invalid request (validation_error, bad_request)
  • 401Missing or invalid API key
  • 402Your plan does not include this (plan_required, plan_limit, subscription_inactive)
  • 403The key lacks the permission (insufficient_scope)
  • 404Not found
  • 409Not 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"
}'
Response · 201
{
  "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

get/v1/campaigns/{id}
Permission campaigns:read

Needs Campaigns in your plan.

Permission: campaigns:read

Path parameters

idrequired
integer
≥ 1

Responses

  • 200OK
  • 400Invalid request (validation_error, bad_request)
  • 401Missing or invalid API key
  • 402Your plan does not include this (plan_required, plan_limit, subscription_inactive)
  • 403The key lacks the permission (insufficient_scope)
  • 404Not found
  • 409Not 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"
Response · 200
{
  "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

patch/v1/campaigns/{id}
Permission campaigns:write

Only the settings sent change. status: draft, active, paused or completed.

Needs Campaigns in your plan.

Permission: campaigns:write

Path parameters

idrequired
integer
≥ 1

Request body

name
string
1–200 chars
caller_id
string | null
max_attempts
integer
1–1000
retry_delay_minutes
integer
0–10080
max_lines
integer
1–8
caller_id_mode
"fixed" | "pool"
window_start
string
max 8 chars
window_end
string
max 8 chars
default_timezone
string
max 64 chars
abandon_message
string
1–500 chars
smart_detection
boolean
amd_mode
"wait" | "instant"
ivr_digits
string | null
screener_message
string
1–300 chars
dial_mode
"power" | "predictive" | "adaptive"
script_id
integer | null
state_rules
boolean
min_calls_per_day
integer | null
max_calls_per_day
integer | null
min_calls_per_week
integer | null
max_calls_per_week
integer | null
min_calls_per_month
integer | null
max_calls_per_month
integer | null
aim_calls
integer | null
aim_days
integer | null
cap_calls
integer | null
cap_days
integer | null
min_gap_minutes
integer | null
description
string
max 500 chars
priority
integer
0–1000
team_ids
integer[]
max 100 items
operating_days
integer[]
max 7 items
preview_seconds
integer | null
preview_timeout_action
"dial" | "skip"
country
string
skip_holidays
boolean
callbacks_when_paused
boolean
route_by_state
boolean
route_by_skills
boolean
required_skill_ids
integer[]
max 20 items
lead_owner_mode
"shared" | "owner_first" | "owner_only"
owner_hold_minutes
integer | null
auto_assign
"none" | "round_robin" | "balanced"
answered_overflow
boolean
overflow_strategy
"longest_waiting" | "round_robin" | "skills"
cadence_mode
"rules" | "steps"
source_tag_ids
integer[]
max 200 items
only_tag_ids
integer[]
max 200 items
skip_tag_ids
integer[]
max 200 items
skip_booked
boolean
booked_tag_ids
integer[]
max 200 items
budget
number | null
lead_order
"default" | "newest" | "oldest"
score_never_dialed
boolean | null
score_best_hours
boolean | null
score_rested
boolean | null
after_call_seconds
integer | null
amd_sensitivity
"low" | "moderate" | "high"
amd_timeout_seconds
integer
3–59
machine_action
"agent_drop" | "campaign_drop" | "hangup"
voicemail_drop_id
integer | null
allowed_utc_offsets
integer[]
max 40 items
ring_timeout_seconds
integer | null
local_presence_fallback
"pool" | "default" | null
caller_id_sticky
boolean
inbound_route
"number" | "agents" | "ring_group" | "forward"
inbound_agent_ids
integer[]
max 200 items
inbound_ring_group_id
integer | null
inbound_forward_to
string | null
missed_call_sms_mode
"company" | "custom" | "off"
missed_call_sms
string | null
bad_number_tag_id
integer | null
notify_agent_ids
integer[]
max 200 items
manager_ids
integer[]
max 200 items
callback_expire_minutes
integer | null
speed_to_lead_seconds
integer | null
consent_mode
"off" | "manual_touch" | "required"
vertical_dialing
boolean
status
"draft" | "active" | "paused" | "completed"

Responses

  • 200OK
  • 400Invalid request (validation_error, bad_request)
  • 401Missing or invalid API key
  • 402Your plan does not include this (plan_required, plan_limit, subscription_inactive)
  • 403The key lacks the permission (insufficient_scope)
  • 404Not found
  • 409Not 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"
}'
Response · 200
{
  "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)

post/v1/campaigns/{id}/leads
Permission campaigns:write

Same 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

idrequired
integer
≥ 1

Headers

Idempotency-Key
string
Retry safely: the first response is replayed for 24 hoursmax 200 chars

Request body

number1
string | number
phone
string | number
first_name
string
max 500 chars
last_name
string
max 500 chars
email
string
max 500 chars
company
string
max 500 chars
notes
string
max 5000 chars
lead_website
string
max 500 chars
lead_source
string
max 500 chars
crm_reference
string | number
street
string
max 500 chars
city
string
max 500 chars
state
string
max 500 chars
zip
string | number
country
string
max 500 chars
timezone
string
max 500 chars
language
string
max 500 chars
custom_fields
object
consent
"pewc" | "pec" | "ebr"
consent_at
string
max 40 chars
trustedform_cert_url
string (uri)
max 1000 chars
jornaya_leadid
string
max 200 chars
ip_address
string
max 64 chars

Responses

  • 201OK
  • 400Invalid request (validation_error, bad_request)
  • 401Missing or invalid API key
  • 402Your plan does not include this (plan_required, plan_limit, subscription_inactive)
  • 403The key lacks the permission (insufficient_scope)
  • 404Not found
  • 409Not 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

post/v1/campaigns/{id}/contacts
Permission campaigns:write

Existing 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

idrequired
integer
≥ 1

Headers

Idempotency-Key
string
Retry safely: the first response is replayed for 24 hoursmax 200 chars

Request body

contact_ids
integer[]
max 10000 items
rows
object[]
max 10000 items
first_name
string
max 100 chars
last_name
string
max 100 chars
phonerequired
string
3–30 chars
email
string (email) | null
default null
company
string | null
timezone
string | null
extension
string | null
notes
string | null
lead_source
string | null
lead_website
string | null
crm_reference
string | null
street
string | null
city
string | null
state
string | null
postal_code
string | null
language
string | null
country
string | null
custom
object
other_phones
object[]
max 9 items
phonerequired
string
max 40 chars
label
"mobile" | "home" | "work" | "other"
default "other"
consent
object
kindrequired
"pewc" | "pec" | "ebr"
captured_at
string (date-time) | string | null
default null
evidence_url
string | null
lead_id_token
string | null
validation
"skip" | "reject"
default "skip"

Responses

  • 200OK
  • 400Invalid request (validation_error, bad_request)
  • 401Missing or invalid API key
  • 402Your plan does not include this (plan_required, plan_limit, subscription_inactive)
  • 403The key lacks the permission (insufficient_scope)
  • 404Not found
  • 409Not 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"
      }
    }
  ]
}'
Response · 200
{
  "added": 250,
  "rejected": []
}

The leads in a campaign

get/v1/campaigns/{id}/contacts
Permission campaigns:read

Keyset-paged: pass next_cursor back as cursor for the next page.

Needs Campaigns in your plan.

Permission: campaigns:read

Path parameters

idrequired
integer
≥ 1

Query parameters

status
"pending" | "in_progress" | "completed" | "failed" | "skipped"
search
string
max 100 chars
limit
integer
1–200 · default 50
cursor
string
max 200 chars

Responses

  • 200OK
  • 400Invalid request (validation_error, bad_request)
  • 401Missing or invalid API key
  • 402Your plan does not include this (plan_required, plan_limit, subscription_inactive)
  • 403The key lacks the permission (insufficient_scope)
  • 404Not found
  • 409Not 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

post/v1/campaigns/{id}/contacts/remove
Permission campaigns:write

Their call history is kept.

Needs Campaigns in your plan.

Permission: campaigns:write

Path parameters

idrequired
integer
≥ 1

Headers

Idempotency-Key
string
Retry safely: the first response is replayed for 24 hoursmax 200 chars

Request body

phonesrequired
string[]
max 50000 items
validation
"skip" | "reject"
default "reject"

Responses

  • 200OK
  • 400Invalid request (validation_error, bad_request)
  • 401Missing or invalid API key
  • 402Your plan does not include this (plan_required, plan_limit, subscription_inactive)
  • 403The key lacks the permission (insufficient_scope)
  • 404Not found
  • 409Not 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

delete/v1/campaigns/{id}/contacts/{contactId}
Permission campaigns:write

Needs Campaigns in your plan.

Permission: campaigns:write

Path parameters

idrequired
integer
≥ 1
contactIdrequired
integer
≥ 1

Responses

  • 204Done
  • 400Invalid request (validation_error, bad_request)
  • 401Missing or invalid API key
  • 402Your plan does not include this (plan_required, plan_limit, subscription_inactive)
  • 403The key lacks the permission (insufficient_scope)
  • 404Not found
  • 409Not 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)

post/v1/campaigns/{id}/contacts/{contactId}/boost
Permission campaigns:write

Needs Campaigns in your plan.

Permission: campaigns:write

Path parameters

idrequired
integer
≥ 1
contactIdrequired
integer
≥ 1

Headers

Idempotency-Key
string
Retry safely: the first response is replayed for 24 hoursmax 200 chars

Responses

  • 200OK
  • 400Invalid request (validation_error, bad_request)
  • 401Missing or invalid API key
  • 402Your plan does not include this (plan_required, plan_limit, subscription_inactive)
  • 403The key lacks the permission (insufficient_scope)
  • 404Not found
  • 409Not 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"
Response · 200
{
  "changed": true
}

Put a lead back in the queue

post/v1/campaigns/{id}/contacts/{contactId}/requeue
Permission campaigns:write

Needs Campaigns in your plan.

Permission: campaigns:write

Path parameters

idrequired
integer
≥ 1
contactIdrequired
integer
≥ 1

Headers

Idempotency-Key
string
Retry safely: the first response is replayed for 24 hoursmax 200 chars

Request body

reset_attempts
boolean
default false
delay_minutes
integer
0–43200 · default 0

Responses

  • 200OK
  • 400Invalid request (validation_error, bad_request)
  • 401Missing or invalid API key
  • 402Your plan does not include this (plan_required, plan_limit, subscription_inactive)
  • 403The key lacks the permission (insufficient_scope)
  • 404Not found
  • 409Not 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
}'
Response · 200
{
  "changed": true
}

The campaigns a contact is in

get/v1/contacts/{id}/campaigns
Permission campaigns:read

Needs Campaigns in your plan.

Permission: campaigns:read

Path parameters

idrequired
integer
≥ 1

Responses

  • 200OK
  • 400Invalid request (validation_error, bad_request)
  • 401Missing or invalid API key
  • 402Your plan does not include this (plan_required, plan_limit, subscription_inactive)
  • 403The key lacks the permission (insufficient_scope)
  • 404Not found
  • 409Not 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

post/v1/contacts/{id}/move-campaign
Permission campaigns:write

A contact being dialed right now cannot move (409 entry_busy).

Needs Campaigns in your plan.

Permission: campaigns:write

Path parameters

idrequired
integer
≥ 1

Headers

Idempotency-Key
string
Retry safely: the first response is replayed for 24 hoursmax 200 chars

Request body

from_campaign_idrequired
integer
to_campaign_idrequired
integer
reset_attempts
boolean
default false
delay_minutes
integer
0–43200 · default 0

Responses

  • 200OK
  • 400Invalid request (validation_error, bad_request)
  • 401Missing or invalid API key
  • 402Your plan does not include this (plan_required, plan_limit, subscription_inactive)
  • 403The key lacks the permission (insufficient_scope)
  • 404Not found
  • 409Not 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
}'
Response · 200
{
  "result": "moved"
}