Skip to main content
Solved

Recipient clarification for custom channel outbound messages

  • September 17, 2024
  • 2 replies
  • 192 views

Forum|alt.badge.img

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
Forum|alt.badge.img+8
  • Fronteer
  • Answer
  • 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. 

 


Forum|alt.badge.img
  • Author
  • Conversationalist
  • September 17, 2024

Hi Jason,

Thanks for the quick reply and for confirming!

Kevin