This document is for an older version of Kazoo (version 4.3) that is no longer supported. You should upgrade and read the current documentation.
Notification events
This events will fire when a notification event is triggered in Kazoo. These are the same events as Email notifications you get. They also proccessed by Teletype application to send Email and their Email templates are configurable within Branding application in UI.
These events usally may have some common fields which are explained in the next section.
Please do note that most of the fields should be present on the payload, but they could also be missing based on the available information at the time of the event was occured.
Info
- Name: notifications
- Friendly Name: Notifications Webhook
Modifiers
- type: Any of teletype notifications, see below for a list of all notifications.
Base Notifications Fields
Required Fields
Notifications events are basically AMQP message which triggred by some application in Kazoo. So their payload always have the Kazoo standard AMQP fields:
app_name: The application’s name where this event was triggredapp_version: The application’s version where this event was triggredevent_category: The event category, which is always setnotificationfor these eventsevent_name: The name of the triggred eventmsg_id: Message IDnode: The node where this event is generatedserver_id: The server ID where this event is generatedsystem_log_id: System log id if available
Optional Fields
All these fields are can be present in the event. Most of them are indocating that this event is just to trigger Email template render to test the template or get a preview of them (fields like preview, html/text). Fields like to, cc are Email addresse(s) for sending the event to specific Emails (based on their Email template configuration).
account_db(string): Account-DB related to the type of the eventattachment_url(string): Attachment URL iff the event has an attachmentbcc(stringor a list ofstringorobject): Usually if the event is preview, Branding application can setbcc,ccandtoaccordingly to send a preview of the notification templatescc(stringor a list ofstringorobject): Usually if the event is preview, Branding application can setbcc,ccandtoaccordingly to send a preview of the notification templatesfrom(stringor a list ofstringorobject): Usually if the event is preview, Branding application can setbcc,ccandtoaccordingly to send a preview of the notification templateshtml(string): Usually if the event is preview, Branding application can sethtmland/ortextof the template to use for rendering the email notificationpreview(boolean): Usually set by Branding application to indicate this event is for previewing of supplied HTML or Plain Text email templatereply_to(stringor a list ofstringorobject): Usually if the event is preview, Branding application can setbcc,ccandtoaccordingly to send a preview of the notification templatessubject(string): Usually set by Branding application to use when the event is for previewing of supplied HTML or Plain Text email templatetext(string): Usually set by Branding application to indicate this event is for previewing of supplied HTML or Plain Text email templateto(stringor a list ofstringorobject): Usually if the event is preview, Branding application can setbcc,ccandtoaccordingly to send a preview of the notification templates
Account Zone Change: account_zone_change
This event is triggered when an end user requests the home zone of an account is changed.
Possible fields
account_idevent_name:account_zone_changezones
Bill Reminder: bill_reminder
This event is triggered before a few days before the end of the month to remind account’s owners of estimated service plan charges.
Possible fields
account_iddue_dateevent_name:bill_reminderitemspayment_tokentimestamp
Customer defined notification: cf_notification
This event is triggered when an customer want send own notification, as example from callflow.
Possible fields
account_idcall_bridgedcall_idcaller_id_namecaller_id_numbercomments: Text message that need to include into notificationevent_name:cf_notificationfrom_realmfrom_usermessage_leftnotification_media: What is media need to use for notification, possible values:emailandsmsnotify: Arbitrary data related to the calltemplate_idtimestampto_realmto_userto
CNAM Update: cnam_request
This event is triggered when an end user would like the CNAM for a number changed.
Possible fields
account_idacquired_forcnamevent_name:cnam_requestlocal_numbernumbernumber_state
Customer Update: customer_update
This event is triggered when the customer update API is used to deliver a message to the account.
Possible fields
account_iddatabag: Optional arbitrary data sent when event was triggredevent_name:customer_updaterecipient_id: Optional destination account id if set, otherwise Email will be sent to all account childrens of theaccount_idabovetemplate_id: Source of the template to renderuser_type: Optional, could be a single user ID, otherwise if set toall_userswill sent to all user types (admin and regular). If missing will send to admin users only
Emergency Call Failed: denied_emergency_bridge
This event is triggered when a call to an number classified as emergency fails.
Possible fields
account_idcall_idemergency_caller_id_nameemergency_caller_id_numberevent_name:denied_emergency_bridgeoutbound_caller_id_nameoutbound_caller_id_number
De-Registration: deregister
This event is triggered when a device fails to re-register and the contact expires.
Possible fields
account_dbaccount_idauthorizing_idcall_idcontactevent_name:deregisterevent_timestampexpiresfreeswitch_hostnamefrom_hostfrom_usernetwork_ipnetwork_portpresence_hostsprofile_namerpidrealmstatussuppress_unregister_notifyto_hostto_useruser_agentusername
Account First Occurrence: first_occurrence
This event is triggered when an end user registers the first device and/or places the first call on an account.
Possible fields
account_idevent_name:first_occurrenceoccurrence: Type of occurrence, possible values:registration,call
Successful Fax Reception: inbound_fax
This event is triggered when a fax is successfully received.
Possible fields
account_idcall_idcallee_id_namecallee_id_numbercaller_id_namecaller_id_numberevent_name:inbound_faxfax_idfax_info: Arbitrary internal data related to fax applicationfax_notificationsfax_timestampfaxbox_idfrom_realmfrom_userowner_idto_realmto_user
Fax Reception Error: inbound_fax_error
This event is triggered when receiving a fax fails.
Possible fields
account_idcall_idcallee_id_namecallee_id_numbercaller_id_namecaller_id_numberevent_name:inbound_fax_errorfax_errorfax_idfax_info: Arbitrary internal data related to fax applicationfax_notificationsfax_result_codefax_timestampfaxbox_idfrom_realmfrom_userowner_idto_realmto_user
Account Low Balance: low_balance
This event is triggered when an account is found with a balance below the notification threshold.
Possible fields
account_idcurrent_balanceevent_name:low_balance
Missed Call: missed_call
This event is triggered when an corresponding missed call action in a callflow is invoked.
Possible fields
account_idcall_bridgedcall_idcaller_id_namecaller_id_numberevent_name:missed_callfrom_realmfrom_usermessage_leftnotify: Arbitrary data related to calltimestampto_realmto_userto
New Account: new_account
This event is triggered when an end user creates a new account.
Possible fields
account_api_keyaccount_dbaccount_idaccount_nameaccount_realmevent_name:new_account
New User: new_user
This event is triggered when an end user creates a new user.
Possible fields
account_idevent_name:new_userpassworduser_id
Successful Fax Transmission: outbound_fax
This event is triggered when a fax is successfully transmitted.
Possible fields
account_idcall_idcallee_id_namecallee_id_numbercaller_id_namecaller_id_numberevent_name:outbound_faxfax_idfax_info: Arbitrary data related to Fax applicationfax_jobidfax_notificationsfax_timestampfaxbox_id
Fax Transmission Error: outbound_fax_error
This event is triggered when transmitting a fax fails.
Possible fields
account_idcall_idcallee_id_namecallee_id_numbercaller_id_namecaller_id_numberevent_name:outbound_fax_errorfax_errorfax_idfax_info: Arbitrary data related to Fax applicationfax_jobidfax_notificationsfax_timestampfaxbox_id
Invalid Email-to-Fax Email: outbound_smtp_fax_error
This event is triggered when the received email-to-fax email is invalid.
Possible fields
account_iderrors: List of encountered errors during recieving the emailevent_name:outbound_smtp_fax_errorfax_from_emailfax_to_emailfaxbox_idfaxbox_namefaxbox_timezonenumberoriginal_numberowner_idtimestamp
Password Recovery: password_recovery
This event is triggered when an end user requests a password recovery link.
Possible fields
account_dbaccount_idemailevent_name:password_recoveryfirst_namelast_namepassword_reset_linktimezoneuser_id
Port Cancel: port_cancel
This event is triggered when a port request is canceled.
Possible fields
account_idauthorized_byevent_name:port_cancellocal_numbernumbernumber_stateportport_request_idreason
Port Comment: port_comment
This event is triggered when a comment is left on a port request.
Possible fields
account_idauthorized_bycommentevent_name:port_commentlocal_numbernumbernumber_stateportport_request_id
Port Pending: port_pending
This event is triggered when a port request is accepted and submitted to a carrier.
Possible fields
account_idauthorized_byevent_name:port_pendinglocal_numbernumbernumber_stateportport_request_idreason
Port Rejected: port_rejected
This event is triggered when a port request is rejected.
Possible fields
account_idauthorized_byevent_name:port_rejectedlocal_numbernumbernumber_stateportport_request_idreason
Port Request: port_request
This event is triggered when a port is submitted for processing.
Possible fields
account_idauthorized_byevent_name:port_requestlocal_numbernumbernumber_stateportport_request_idreasonversion
Port Scheduled: port_scheduled
This event is triggered when a port is accepted by a carrier and scheduled.
Possible fields
account_idauthorized_byevent_name:port_scheduledlocal_numbernumbernumber_stateportport_request_idreason
Port Unconfirmed: port_unconfirmed
This event is triggered when a port is created, prior to submitting.
Possible fields
account_idauthorized_byevent_name:port_unconfirmedlocal_numbernumbernumber_stateportport_request_idreason
Ported: ported
This event is triggered when a port request for number is completed.
Possible fields
account_idauthorized_byevent_name:portedlocal_numbernumbernumber_stateportport_request_idreason
Registration: register
This event is triggered when a device registers but is not currently registered.
Possible fields
account_dbaccount_idauthorizing_idauthorizing_typecall_idcontactevent_name:registerevent_timestampexpiresfrom_hostfrom_usernetwork_ipnetwork_portowner_idrealmsuppress_unregister_notifyto_hostto_useruser_agentusername
Service Added: service_added
This event is triggered when an account’s billable quantities change.
Possible fields
account_idaudit_logevent_name:service_addeditemstimestamp
System Alert: system_alert
This event is triggered to alert the system administrators.
Possible fields
account_iddetailsevent_name:system_alertlinemessagemodulenodepidrequest_idsectionsubject
Automatic Account Top-up: topup
This event is triggered when an account automatic top-up is attempted.
Please note since Kazoo version 4.3 underlying billing engine is re-written and this event is not sent anymore. Instead you would get a transaction event instead.
Possible fields
account_idadd_onsamountbilling_addresscard_last_fourcurrency_codediscountsevent_name:top_upidpurchase_orderresponsesuccesstax_amounttimestamp
Transaction Completed: transaction
This event is triggered when a transaction is attempted.
Possible fields
account_idadd_onsamountbilling_addresscard_last_fourcurrency_codediscountsevent_name:transactionidpurchase_orderresponseservice_plansuccesstax_amounttimestamp
Voicemail Box Full: voicemail_full
This event is triggered any time an attempt to leave a voicemail message is blocked because the voicemail box is full.
Possible fields
account_idevent_name:voicemail_fullmax_message_countmessage_countvoicemail_box
New Voicemail Message: voicemail_new
This event is triggered any time a voicemail message is left.
Possible fields
account_idcall_idcaller_id_namecaller_id_numberevent_name:voicemail_newfrom_realmfrom_userto_realmto_uservoicemail_boxvoicemail_idvoicemail_lengthvoicemail_timestampvoicemail_transcription
Voicemail Message Saved: voicemail_saved
This event is triggered any time a voicemail message is saved in the voicemail box ‘new’ folder.
Possible fields
account_idcall_idcaller_id_namecaller_id_numberevent_name:voicemail_savedfrom_realmfrom_userto_realmto_uservoicemail_boxvoicemail_idvoicemail_lengthvoicemail_timestampvoicemail_transcription
Callflow Webhook Triggered: webhook
This event is triggered when a corresponding webhook action in a callflow is reached.
Possible fields
account_iddata: Arbitrary data related to the callevent_name:webhookhook: On the fly webhook to proccess this eventtimestamp
Webhook Disabled: webhook_disabled
This event is triggered when a webhook is disabled.
Possible fields
account_idevent_name:webhook_disabledhook_id