I want to send a message to an interaction via API. But I got this error:
{
"message": "Bad request: Messages may only be sent for connected communications",
"code": "bad.request",
"status": 400,
"messageWithParams": "Bad request: {details}",
"messageParams": {
"details": "Messages may only be sent for connected communications"
},
"contextId": "ab31d6d1-07b6-4db7-aa17-92ad3d74acde",
"details": [],
"errors": []
}
or "Messages may only be sent by non-external communications".
The second message indicates that you can't send messages for communications that are external. I can't provide a more specific answer than that, but try other communications for the conversation that aren't external.
The first message seems to indicate that for communication you're sending a message to is not connected.
There's not a lot of info to go off here. What API is this? What are you trying to achieve? Strictly based on going off of what you said, it appears that you may be trying to send a message as an agent when you're not assigned the conversation. But that's only a guess based on the various blanks I have had to fill in, so I could be totally wrong.