BaptisteC | 2017-12-04 08:26:19 UTC | #1
Hello,
I try to use this operation : "Send an email reply" /api/v2/conversations/emails/{conversationId}/messages
I use a valid conversationId. I fill the body param like that :
{ "to": { "email": "valid@email.com", "name": "Baptiste" }, "from": { "email": "other@validemail.com", "name": "Test" }, "subject": "Subject email", "textBody": "Hi Baptiste" }
The answer i get is : <img src="//inin-prod-use1-developerforum.s3.amazonaws.com/original/1X/b16d135c65b00d4f29a03825ad4444aa4cb8a434.png" width="690" height="298">
Where is my mistake?
Thanks
tim.smith | 2017-12-04 19:38:39 UTC | #2
See this post: https://developer.mypurecloud.com/forum/t/email-reply-responds-with-malformed-syntax-error/2164/2
BaptisteC | 2017-12-05 07:19:57 UTC | #3
Thanks,
The correct JSON is :
{ "to":[ { "email": "valid@mail.com", "name": "Baptiste" }], "from": { "email": "other@validmail.com", "name": "Test SNI" }, "subject": "Subject email", "textBody": "Hi Baptiste" }
BaptisteC | 2017-12-05 07:38:55 UTC | #4
It is possible to send an email to conversation where the user has already disconnecting the interaction (after the agent clicked on "disconnect" button) ?
tim.smith | 2017-12-06 17:43:24 UTC | #5
I think that's possible. You can receive replies on a conversation that has ended previously. Give it a try and post back if you get an error.
system | 2018-01-06 17:43:26 UTC | #6
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: 2180