Skip to main content
Conversationalist
September 17, 2024
Solved

Recipient clarification for custom channel outbound messages

  • September 17, 2024
  • 2 replies
  • 356 views

I’m currently using the custom channel API to send messages into a channel. When replies are made, we get a call on the outbound endpoint. I would like further clarification on what the recipients array is supposed to represent in the payload of that outbound call. It looks like there can be two recipients, with roles “from” and “to”. If I want the user handle of the original message that started the conversation, is it reliable to pull the recipient with role = “to”? Or is that meant to represent something else?

 

Thanks!

Kevin

 

Best answer by jason

Hi Kevin.

That’s exactly right!

If you’re catching an outbound message (from the channel to the recipient) the recipients array will show the “to” recipient as the external recipient, and the “from” recipient will be your channel info. 

 

2 replies

jason
jasonAnswer
Fronteer
September 17, 2024

Hi Kevin.

That’s exactly right!

If you’re catching an outbound message (from the channel to the recipient) the recipients array will show the “to” recipient as the external recipient, and the “from” recipient will be your channel info. 

 

kevinyAuthor
Conversationalist
September 17, 2024

Hi Jason,

Thanks for the quick reply and for confirming!

Kevin