DialerDay Docs

Workflows

Automations: enroll contacts, send events

List workflows

get/v1/workflows
Permission workflows:read

Needs Workflows in your plan.

Permission: workflows: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/workflows \
  -H "Authorization: Bearer $DIALERDAY_API_KEY"
Response · 200
{
  "items": [
    {
      "id": 5,
      "name": "New lead follow-up",
      "status": "active",
      "trigger": "contact.created"
    }
  ]
}

Put contacts into a workflow

post/v1/workflows/{id}/enroll
Permission workflows:write

Needs Workflows in your plan.

Permission: workflows: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 1000 items
phone
string
…or the contact with this number3–30 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/workflows/42/enroll \
  -H "Authorization: Bearer $DIALERDAY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "contact_ids": [
    1
  ],
  "phone": "+15551234567"
}'

Send an event

post/v1/events
Permission workflows:write

Starts the active workflows whose “API event” trigger listens for this name, for the contact (by contact_id or phone). data is available to their steps.

Needs Workflows in your plan.

Permission: workflows:write

Headers

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

Request body

namerequired
string
1–60 chars
contact_id
integer
phone
string
3–30 chars
data
object

Responses

  • 202OK
  • 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/events \
  -H "Authorization: Bearer $DIALERDAY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Jane"
}'