Get Messages for a Thread
GET {{baseUrl}}/1/admin/messages/:thread_id?company_id=dolore&count=25&max_created_usec=57566125&sorted_by=DESC&sort_by=DESC&message_type=message&include_deleted=false
Returns a list of the most recent messages for the given thread, ordered reverse-chronologically. Can also be used to get edit history for a document.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
company_id | string | (Required) The ID of the company to use. | |
count | number | Number of messages to return. | |
max_created_usec | number | If given, we return messages updated before the given max_created_usec , which is a UNIX timestamp in microseconds. To use this argument for paging, you can use the created_usec field in the returned message objects. | |
sorted_by | string | ASC or DESC. Changes the order of the returned messages. | |
sort_by | string | Alias for sorted_by | |
message_type | string | Determines what will be returned by this call. |
message
: text messages and document comments will be returned. *edit
: Document edit records will be returned. | |include_deleted
| boolean | | If true, response includes deleted messages. |
RESPONSES
status: OK
[{"id":"FCKADA33rNg","author_id":"UTUAEAiZl6B","created_usec":1632348632519081,"updated_usec":1632348632596233,"visible":false,"author_name":"Jane Doe","text":"consectetur velit est amet","files":[{"hash":"vOTFW_A3Cp1zXNSjqsEIoA","name":"hello.txt"}],"annotation":{"id":"anim","highlighted_section_ids":["aliquip nostrud ad","est laboris"]},"parts":[["system","HTML1"],["status","HTML2"]],"apparent_user":{"user_id":"aute commodo Duis"},"diff_groups":[{"diffs":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]},{"diffs":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]}],"like_user_ids":["non","in Ut do ad"],"mention_user_ids":["dolore ex dolor","nostrud ut aliqua dolore"]},{"id":"FCKADA33rNg","author_id":"UTUAEAiZl6B","created_usec":1632348632519081,"updated_usec":1632348632596233,"visible":true,"author_name":"Jane Doe","text":"aliqua in incididunt labore","files":[{"hash":"vOTFW_A3Cp1zXNSjqsEIoA","name":"hello.txt"}],"annotation":{"id":"enim","highlighted_section_ids":["fugiat aliqua et id","exercitation commodo"]},"parts":[["system","HTML1"],["status","HTML2"]],"apparent_user":{"user_id":"adipisicing"},"diff_groups":[{"diffs":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]},{"diffs":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]}],"like_user_ids":["voluptate enim cupidatat magna","Ut pariatur sunt officia"],"mention_user_ids":["minim dolor et in ex","qui nisi proident in ut"]}]