Skip to main content
Solved

Search for conversation with message ID

  • June 15, 2023
  • 1 reply
  • 229 views

Front Developer
Forum|alt.badge.img+2

I’d like to search for conversations using the message-id form the source message. Any way to do this?

Best answer by Javier - Developer Relations

Hi,

 

While you can’t directly search for conversations using a message ID, you can retrieve a message via ID from an endpoint like Get Message, and then check the links object for the conversation property. This conversation property will contain a link that you can then use to retrieve the conversation. Note that if you are importing messages, you can also perform the lookup of the message using the UID as a resource alias instead of the ID.

1 reply

Javier - Developer Relations
Forum|alt.badge.img+9

Hi,

 

While you can’t directly search for conversations using a message ID, you can retrieve a message via ID from an endpoint like Get Message, and then check the links object for the conversation property. This conversation property will contain a link that you can then use to retrieve the conversation. Note that if you are importing messages, you can also perform the lookup of the message using the UID as a resource alias instead of the ID.