Add Message to Issue as Agent
POST https://api.helpshift.com/v1/{{domain}}/chat/issues/{{issue_id}}/messages/agent
Add a message to an issue on behalf of an agent.
Request Body
[{"name"=>"profile-id", "value"=>"{{agent_id}}", "datatype"=>"string"}, {"name"=>"message-body", "value"=>"{{$randomPhrase}}\n\nThis message was added via the Helpshift API, on behalf of the agent.\n", "datatype"=>"string"}, {"name"=>"message-type", "value"=>"Text", "datatype"=>"string"}, {"name"=>"attachment", "value"=>nil, "datatype"=>"null"}]
RESPONSES
status: Created
{"type":"Text","state":"sent","author":{"name":"Agent1","id":"moana_profile_20201124080208068-6156715572149ac","emails":["moana_agent007@gmail.com"]},"id":"moana_message_20201130093635458-ff62350cf5d8599","origin":"helpshift","body":"We need to navigate the neural SCSI program!\n\nThis message was added via the Helpshift API, on behalf of the agent.\n","created_at":1606728995452}