josmiguelv | 2020-06-10 00:59:47 UTC | #1
Hi there, I need this data How i can query this? I am using /api/v2/conversations/chats/{conversationId}/messages but this api does't show the name of who is sending it. I need to relate the message to who is sending it. Best regards Miguel Velasquez
anon39326996 | 2020-06-10 01:05:13 UTC | #2
How are you starting the chat conversation? The POST API to start a new chat allows you to provide a display name.
josmiguelv | 2020-06-10 01:40:43 UTC | #3
Hi lucie I need this data to integrate it the client's CRM. I export the conversation chat but I can't relate it to the participants. I am using /api/v2/conversations/chats/{conversationId}/messages with this Api, I have the messages but not the participants. Do I have to change the POST API and it could show the name in the query? Best regards
anon28885283 | 2020-06-10 05:54:01 UTC | #4
Hi,
For every message in the conversation there would be a property "sender.id"
You need to cross reference this with the participant's chats id when you query the conversation using /api/v2/conversations/{conversationId}
After determining the participant that sent the message you can get the name property for the sender's name.
Ex: Message in the chat conversation of a participant saying "hi"
That same id is shown in this participant's chat property.
NOTE:
To get the chats property use: /api/v2/conversations/{conversationId} not /api/v2/conversations/chats/{conversationId}
system | 2020-07-11 05:53:02 UTC | #5
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 7990