Webhooks
Subscribe a URL to events (REST hooks)
Events you can subscribe to
get
/v1/hooks/eventsAny valid key
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/hooks/events \
-H "Authorization: Bearer $DIALERDAY_API_KEY"A sample delivery of an event
get
/v1/hooks/sample/{event}Any valid key
Path parameters
eventrequiredstring |
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/hooks/sample/{event} \
-H "Authorization: Bearer $DIALERDAY_API_KEY"List webhook subscriptions
get
/v1/hooksPermission
webhooks:readResponses
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/hooks \
-H "Authorization: Bearer $DIALERDAY_API_KEY"Subscribe a URL to events
post
/v1/hooksPermission
webhooks:writeEach 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-Keystring | Retry safely: the first response is replayed for 24 hoursmax 200 chars |
Request body
urlrequiredstring (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
201OK400Invalid 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/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:writePath parameters
idrequiredinteger | ≥ 1 |
Responses
204Done400Invalid 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 DELETE https://api.dialerday.com/v1/hooks/42 \
-H "Authorization: Bearer $DIALERDAY_API_KEY"