Workflows
Automations: enroll contacts, send events
List workflows
get
/v1/workflowsPermission
workflows:readNeeds Workflows in your plan.
Permission: workflows: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/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}/enrollPermission
workflows:writeNeeds Workflows in your plan.
Permission: workflows: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 1000 items |
phonestring | …or the contact with this number3–30 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/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/eventsPermission
workflows:writeStarts 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-Keystring | Retry safely: the first response is replayed for 24 hoursmax 200 chars |
Request body
namerequiredstring | 1–60 chars |
contact_idinteger | |
phonestring | 3–30 chars |
dataobject |
Responses
202OK400Invalid 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/events \
-H "Authorization: Bearer $DIALERDAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Jane"
}'