Create Issue
POST https://api.helpshift.com/v1/{{domain}}/chat/issues
Create Issue. Note: Even though the endpoint is different, the request parameters and response are identical to the core Create Issue API.
Request Body
[{"name"=>"platform-type", "value"=>"ios", "datatype"=>"string"}, {"name"=>"platform-id", "value"=>"{{platform_android}}", "datatype"=>"string"}, {"name"=>"email", "value"=>"{{user.email}}", "datatype"=>"string"}, {"name"=>"identifier", "value"=>"{{user.identifier}}", "datatype"=>"string"}, {"name"=>"attachment", "value"=>nil, "datatype"=>"null"}, {"name"=>"attachments", "value"=>nil, "datatype"=>"null"}, {"name"=>"meta", "value"=>"{\"Cheese\":\"Wensleydale\"}", "datatype"=>"string"}, {"name"=>"tags", "value"=>"[\"foo\"]", "datatype"=>"string"}, {"name"=>"title", "value"=>"Issue Created Using Helpshift API ({{$randomColor}} {{$randomNoun}})", "datatype"=>"string"}, {"name"=>"message-body", "value"=>"{{$randomPhrase}}", "datatype"=>"string"}, {"name"=>"author-name", "value"=>"{{user.name}}", "datatype"=>"string"}, {"name"=>"app-id", "value"=>"{{app_id}}", "datatype"=>"string"}, {"name"=>"custom_fields", "value"=>"{\"gdpr\":{\"type\":\"checkbox\",\"value\":\"true\"},\"region\":{\"type\":\"dropdown\",\"value\":\"APAC\"}}", "datatype"=>"string"}, {"name"=>"cc", "value"=>"[\"cc-user@example.og\"]", "datatype"=>"string"}, {"name"=>"end_user_id", "value"=>"127322", "datatype"=>"number"}, {"name"=>"language", "value"=>"en", "datatype"=>"string"}]
RESPONSES
status: Created
{"tags":[],"meta":{},"cc":[],"title":"The GB system is down, reboot the redundant circuit so we can input the SAS pane...","messages":[{"type":"Text","state":"sent","author":{"name":"visitor","id":"moana_profile_ae968698504ea6f3f9370e9c8c3a7344276929bd","emails":["visitor@example.net"]},"id":"moana_message_20201130064607089-8390e272502758b","origin":"end-user","body":"The GB system is down, reboot the redundant circuit so we can input the SAS panel!","created_at":1606718767085}],"id":"5","custom_fields":{},"created_at":1606718767085}