Skip to main content

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

 

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. 

 


Hi Jason,

Thanks for the quick reply and for confirming!

Kevin


Reply