DialerDay Docs

Webhooks

Subscribe a URL to events (REST hooks)

Events you can subscribe to

get/v1/hooks/events

Any valid key

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/hooks/events \
  -H "Authorization: Bearer $DIALERDAY_API_KEY"

A sample delivery of an event

get/v1/hooks/sample/{event}

Any valid key

Path parameters

eventrequired
string

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/hooks/sample/{event} \
  -H "Authorization: Bearer $DIALERDAY_API_KEY"

List webhook subscriptions

get/v1/hooks
Permission webhooks: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/hooks \
  -H "Authorization: Bearer $DIALERDAY_API_KEY"

Subscribe a URL to events

post/v1/hooks
Permission webhooks:write

Each delivery is a JSON POST { id, event, created_at, company_id, data } signed with X-Webhook-Signature: t=<unix time>,v1=HMAC-SHA256(secret, "<t>.<body>"). The secret is returned once. Failed deliveries are retried with backoff for about 1.5 hours. Subscriptions are removed with their key.

Permission: webhooks:write

Headers

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

Request body

urlrequired
string (uri)
A public https:// URL
eventsrequired
"call.completed" | "sms.received" | "sms.sent" | "sms.delivery" | "voicemail.received" | "lead.exhausted" | "contact.created" | "contact.updated" | "contact.tag_added" | "contact.tag_removed" | "contact.dnc_added" | "appointment.booked" | "appointment.status_changed" | "task.created" | "task.completed" | "tracking.call_completed" | "tracking.call_converted" | "tracking.call_returned"[]
max 18 items
source
"make" | "zapier" | "api"
default "api"

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/hooks \
  -H "Authorization: Bearer $DIALERDAY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://example.com/hook",
  "events": [
    "call.completed"
  ]
}'
Response · 201
{
  "id": 14,
  "secret": "whsec_…"
}

Unsubscribe

delete/v1/hooks/{id}
Permission webhooks:write

Path parameters

idrequired
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/hooks/42 \
  -H "Authorization: Bearer $DIALERDAY_API_KEY"