When you receive a webhook it doesn’t tell you what type the channel is. I’m saving this data in my database and I’d like a column for notification type, e.g “email” “sms” “push-notification” etc.
Looking at the payload “providers” section, it can tell me the channel “mailgun” but not the type (it shows the type in the Courier Web UI so it’s stored somewhere in Courier…)
{
channel: { name: '', template: '953a5ab2-9b46-4210-a105-76c3dcecc632' },
provider: 'mailgun',
providerResponse: {
id: '<20220716190654.76885fd2914df840@mg.xx.xx>',
message: 'Queued. Thank you.'
},
reference: {
id: '<20220716190654.76885fd2914df840@mg.xx.xx>'
},
sent: 1657998414438,
status: 'SENT'
}