Add a Message

POST {{baseUrl}}/1/messages/new

Adds a required chat message, which can either be plain text content or contain attachments, to the given thread, posted as the authenticated user.

Request Body

[{"name"=>"thread_id", "value"=>"FCKAAAPEi7C", "datatype"=>"string"}, {"name"=>"frame", "value"=>"card", "datatype"=>"string"}, {"name"=>"content", "value"=>"Hello there!", "datatype"=>"string"}, {"name"=>"silent", "value"=>"false", "datatype"=>"boolean"}, {"name"=>"value", "value"=>"<Error: Could not resolve allOf schema", "datatype"=>"string"}, {"name"=>"attachments", "value"=>"Excepteur dolore", "datatype"=>"string"}, {"name"=>"annotation_id", "value"=>"tempor f", "datatype"=>"string"}, {"name"=>"section_id", "value"=>"nisi anim", "datatype"=>"string"}, {"name"=>"name", "value"=>"Ut cupidatat elit", "datatype"=>"string"}, {"name"=>"user_id", "value"=>"fugiat tempor", "datatype"=>"string"}, {"name"=>"profile_picture", "value"=>"sunt Excepteur anim nulla", "datatype"=>"string"}, {"name"=>"email", "value"=>"laborum proident dolore", "datatype"=>"string"}, {"name"=>"service_id", "value"=>"exercitation Ut ipsum", "datatype"=>"string"}, {"name"=>"url", "value"=>"nisi amet labore", "datatype"=>"string"}]

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;id&quot;:&quot;FCKADA33rNg&quot;,&quot;author_id&quot;:&quot;UTUAEAiZl6B&quot;,&quot;created_usec&quot;:1632348632519081,&quot;updated_usec&quot;:1632348632596233,&quot;visible&quot;:true,&quot;author_name&quot;:&quot;Jane Doe&quot;,&quot;text&quot;:&quot;in reprehenderit enim&quot;,&quot;files&quot;:[{&quot;hash&quot;:&quot;vOTFW_A3Cp1zXNSjqsEIoA&quot;,&quot;name&quot;:&quot;hello.txt&quot;}],&quot;annotation&quot;:{&quot;id&quot;:&quot;amet cupidatat ut laborum&quot;,&quot;highlighted_section_ids&quot;:[&quot;labore voluptate&quot;,&quot;deserunt pariatur&quot;]},&quot;parts&quot;:[[&quot;system&quot;,&quot;HTML1&quot;],[&quot;status&quot;,&quot;HTML2&quot;]],&quot;apparent_user&quot;:{&quot;user_id&quot;:&quot;sit id&quot;},&quot;diff_groups&quot;:[{&quot;diffs&quot;:[{&quot;rtml&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},{&quot;rtml&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}}]},{&quot;diffs&quot;:[{&quot;rtml&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},{&quot;rtml&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}}]}],&quot;like_user_ids&quot;:[&quot;aliqua ipsum est dolor ullamco&quot;,&quot;adipisicing in pariatur et deseru&quot;],&quot;mention_user_ids&quot;:[&quot;fugiat occaecat sed proident&quot;,&quot;sint velit Duis id&quot;]}