Skip to content

Set notification settings

Notifications
POSThttps://api.dcdial.com/api/type=set_notifications
Changes dataToken

Chooses which in-app alerts the user receives and how they are delivered.

Parameters

Send as application/x-www-form-urlencoded.

  • typestringrequired

    Selects the operation. Always set_notifications for this endpoint.

  • tokenstringrequired

    Your API token from Log in. See Authentication.

  • enable_notificationstringoptional

    Y to turn notifications on for this user, N to turn them off.

    One ofYN
  • campaign_startedintegeroptional

    1 to be alerted when a campaign starts.

    One of01
  • campaign_stoppedintegeroptional

    1 to be alerted when a campaign stops.

    One of01
  • campaign_pausedintegeroptional

    1 to be alerted when a campaign pauses.

    One of01
  • campaign_noActiveLeadsintegeroptional

    1 to be alerted when a campaign runs out of accounts to call.

    One of01
  • campaign_completedintegeroptional

    1 to be alerted when a campaign completes.

    One of01
  • list_addintegeroptional

    1 to be alerted when a list is added.

    One of01
  • list_scrubReportintegeroptional

    1 to be alerted when a list scrub report is ready.

    One of01
  • 1 to be alerted when a scheduled campaign starts. (The field name is spelled this way.)

    One of01
  • balance_belowintegeroptional

    Alert when the dialer balance drops below this amount.

    One of50100200300500100020003000
  • alert_frequencyintegeroptional

    Minutes between repeated alerts (0 = once).

    One of015304560
  • alert_methodstringoptional

    How to deliver alerts.

    One ofpopupemailsms

Notes

The settings you send replace all previous ones. Send 1 for each alert you want to keep.

Terminal window
curl https://api.dcdial.com/api/ \
-d type=set_notifications \
-d token="$DCDIAL_TOKEN" \
-d enable_notification=Y \
-d campaign_started=0 \
-d campaign_stopped=0
Response · 200 OK
{
"response": {
"success": 1,
"error": ""
}
}

Try it

Environment