Webhooks

This page lists all the web hooks that we push to the web hook URL configured for your organisation

Chatroom Creation

Version 1.0 & 1.1

{
	"type": CHATROOM_CREATED,
	"version":<double>,
	"payload": {
		"chatroom_id": <string>,
		"external_ref_id": <string>,
		"chatroom_type": <enum CONTACT | AFFILIATE >,
		"is_inbound" : <boolean>
	}
}

Chatroom Status Update (Active/Deactive/Expired)

Version 1.0 & 1.1

{
	"type": CHATROOM_ACTIVATED | CHATROOM_DEACTIVATED | CHATROOM_EXPIRED,
	"version":<double>,
	"payload": {
		"chatroom_id": <string>,
		"chatroom_type": <enum CONTACT | AFFILIATE >,
		"status_update_ts": timestamp
	}  
}

Contact Expired

Version 1.0 & 1.1

Send Template Message

Version 1.0 & 1.1

Media Received

Version 1.0 & 1.1

This webhook will be retried for a maximum of 3 days before being marked as failed.

Media Received with Classification

Version 1.0 & 1.1

Contact Opt Out Webhook

Version 1.0 & 1.1

Analytics Dump

Version 1.0 & 1.1

Note that the file format may vary based on webhook version.

For more details refer to Metric Dumps

For downloading the file use the download signed URL API with the above obtained file_id

Analytics Metric Type:

  • MESSAGE_DUMP

  • AGENT_ANALYTICS

Last updated