Get mail threads

GET {{baseUrl}}/mailbox/mailThreads?folder=inbox&start=0&limit=<integer>

Returns mail threads in a specified folder ordered by the most recent message within.

Request Params

KeyDatatypeRequiredDescription
folderstring(Required) The type of folder to fetch
startnumberPagination start
limitstringItems shown per page

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;success&quot;:true,&quot;data&quot;:[{&quot;id&quot;:1,&quot;parties&quot;:{&quot;to&quot;:[{&quot;id&quot;:2,&quot;name&quot;:&quot;&quot;,&quot;latest_sent&quot;:false,&quot;email_address&quot;:&quot;example@test.com&quot;,&quot;message_time&quot;:1574677850000,&quot;linked_person_id&quot;:3,&quot;linked_person_name&quot;:&quot;Tester&quot;,&quot;linked_organization_id&quot;:null,&quot;mail_message_party_id&quot;:5318}],&quot;from&quot;:[{&quot;id&quot;:3,&quot;name&quot;:&quot;&quot;,&quot;latest_sent&quot;:false,&quot;email_address&quot;:&quot;example@test.com&quot;,&quot;message_time&quot;:1574677850000,&quot;linked_person_id&quot;:2,&quot;linked_person_name&quot;:&quot;Tester&quot;,&quot;linked_organization_id&quot;:null,&quot;mail_message_party_id&quot;:5318}]},&quot;drafts_parties&quot;:[],&quot;folders&quot;:[&quot;inbox&quot;],&quot;account_id&quot;:&quot;123412jhfsaa221&quot;,&quot;user_id&quot;:232,&quot;version&quot;:9,&quot;subject&quot;:&quot;Example&quot;,&quot;snippet&quot;:&quot;Example Snippet&quot;,&quot;snippet_draft&quot;:null,&quot;snippet_sent&quot;:&quot;&quot;,&quot;has_attachments_flag&quot;:1,&quot;has_inline_attachments_flag&quot;:1,&quot;has_real_attachments_flag&quot;:0,&quot;has_draft_flag&quot;:0,&quot;has_sent_flag&quot;:0,&quot;archived_flag&quot;:0,&quot;deleted_flag&quot;:0,&quot;shared_flag&quot;:1,&quot;synced_flag&quot;:1,&quot;external_deleted_flag&quot;:0,&quot;smart_bcc_flag&quot;:0,&quot;first_message_to_me_flag&quot;:1,&quot;mail_link_tracking_enabled_flag&quot;:0,&quot;last_message_timestamp&quot;:&quot;2019-11-20T20:20:46.000Z&quot;,&quot;first_message_timestamp&quot;:&quot;2019-11-20T17:40:46.000Z&quot;,&quot;last_message_sent_timestamp&quot;:null,&quot;last_message_received_timestamp&quot;:&quot;2019-11-20T20:20:46.000Z&quot;,&quot;add_time&quot;:&quot;2019-11-20T17:40:59.000Z&quot;,&quot;update_time&quot;:&quot;2019-11-20T20:21:22.000Z&quot;,&quot;deal_id&quot;:null,&quot;deal_status&quot;:null,&quot;all_messages_sent_flag&quot;:0}]}