Discussions
Question about webhook subscriptions for channel messages
I am having trouble receiving webhooks for messages sent in Dialpad channels, and I want to understand what type of messages will trigger a webhook.
Here is the id and name of the channel I am trying to subscribe to:
{"id"=>"5263858227331072", "name"=>"COM-42205"}
Here is my SMS event subscription:
{"items"=>
[{"direction"=>"all",
"enabled"=>true,
"id"=>"5654932320010240",
"include_internal"=>true,
"status"=>false,
"target_id"=>"5263858227331072",
"target_type"=>"channel",
"webhook"=>
{"hook_url"=>"redacted",
"id"=>"6403636448575488",
"signature"=>
{"algo"=>"HS256",
"secret"=>"redacted",
"type"=>"jwt"}}}]
When I post a message into the channel from the Dialpad desktop application, my endpoint does not receive a webhook. I am wondering if this is because internal chat messages between our organization's team members are not 'SMS Events' and will not trigger a webhook. Is their a way to access the chat messages through the API?
I am looking for a way that our team members can reference a Project ID number with a hashtag and have that message post to an external system.