Skip to main content
WEBHOOK
AhaSend sends this event when the sending type of a domain changes between transactional and marketing. Who changes it (data.source):
  • You, in the dashboard or through the API (customer)
  • AhaSend support (admin)
  • AhaSend, when a transactional domain sends marketing email: the domain becomes marketing (automatic)
AhaSend can add a source, so keep a fallback for a value you do not know. data.previous_sending_type and data.sending_type are the domain’s sending type before and after the change, and timestamp is the time of the change. Impact: The domain’s email follows the rules of its new sending type. No event: Adding a domain, whatever its sending type, or saving a domain without a change to its sending type. Setting: on_sending_type_changed (Sending Type Changed in the dashboard). Any account can use this event. When it’s sent: When the sending type of a domain changes.

Body

application/json
type
enum<string>
required

The event type

Available options:
domain.sending_type_changed
webhook_id
string<uuid>
required

The webhook ID (the same ID as returned by the Create Webhook API)

timestamp
string<date-time>
required

When the sending type changed (ISO 8601 format)

data
object
required

Response

Webhook received successfully