Skip to content

Messages

POST /hooks/api_v1.php?r=messages

Requires messages:write.

Terminal window
curl -X POST 'https://app.dialdozer.com/hooks/api_v1.php?r=messages' \
-H "X-Api-Key: $DIALDOZER_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"lead_id": 42,
"channel": "sms",
"body": "Your appointment is confirmed.",
"operation_id": "appt-42-confirmed-v1"
}'
FieldTypeRequiredDescription
lead_idintegeryesExisting lead identifier
channelsms, email, noteyesDelivery channel
bodystringyesMessage body
subjectstringemail onlyEmail subject
operation_idstringrecommendedIdempotency key for safe retries

The API surfaces the communication service’s complete send result, including message_id, gating reason, or defer_until when applicable.

Billing failures return HTTP 402 with one of: billing_not_configured, billing_unavailable, billing_frozen, subscription_required, or insufficient_credits.