Add Message to Issue as User

POST https://api.helpshift.com/v1/{{domain}}/chat/issues/{{issue_id}}/messages/user

Add a message to the issue on behalf of the end-user. The user must be the original author of the issue.

Request Body

[{"name"=>"identifier", "value"=>"{{user.identifier}}", "datatype"=>"string"}, {"name"=>"message-body", "value"=>"{{$randomPhrase}}\n\nThis message was added via the Helpshift API, on behalf of the end-user.", "datatype"=>"string"}, {"name"=>"message-type", "value"=>"Text", "datatype"=>"string"}, {"name"=>"attachment", "value"=>nil, "datatype"=>"null"}]

RESPONSES

status: Created

{"type":"Text","state":"sent","author":{"name":"Maui","id":"moana_profile_20201130064411019-3fd7c17767e89e9","emails":["visitor@example.net"]},"id":"moana_message_20201130093832285-6948172123699c6","origin":"end-user","body":"backing up the pixel won't do anything, we need to bypass the back-end PCI matrix!\n\nThis message was added via the Helpshift API, on behalf of the end-user.","created_at":1606729112250}