List mail messages associated with an organization

GET {{baseUrl}}/organizations/:id/mailMessages?start=0&limit=<integer>

Lists mail messages associated with an organization.

Request Params

KeyDatatypeRequiredDescription
startnumberPagination start
limitstringItems shown per page

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;success&quot;:true,&quot;data&quot;:[{&quot;object&quot;:&quot;mailMessage&quot;,&quot;timestamp&quot;:&quot;2020-09-16 13:38:17&quot;,&quot;data&quot;:{&quot;id&quot;:1,&quot;from&quot;:[{&quot;id&quot;:1,&quot;email_address&quot;:&quot;mail@example.org&quot;,&quot;name&quot;:&quot;Test&quot;,&quot;linked_person_id&quot;:1,&quot;linked_person_name&quot;:&quot;&quot;,&quot;mail_message_party_id&quot;:1}],&quot;to&quot;:[{&quot;id&quot;:1,&quot;email_address&quot;:&quot;mail@example.org&quot;,&quot;name&quot;:&quot;Test&quot;,&quot;linked_person_id&quot;:1,&quot;linked_person_name&quot;:&quot;&quot;,&quot;mail_message_party_id&quot;:1}],&quot;cc&quot;:[{&quot;id&quot;:1,&quot;email_address&quot;:&quot;mail@example.org&quot;,&quot;name&quot;:&quot;Test&quot;,&quot;linked_person_id&quot;:1,&quot;linked_person_name&quot;:&quot;&quot;,&quot;mail_message_party_id&quot;:1}],&quot;bcc&quot;:[{&quot;id&quot;:1,&quot;email_address&quot;:&quot;mail@example.org&quot;,&quot;name&quot;:&quot;Test&quot;,&quot;linked_person_id&quot;:1,&quot;linked_person_name&quot;:&quot;&quot;,&quot;mail_message_party_id&quot;:1}],&quot;body_url&quot;:&quot;https://example.org&quot;,&quot;nylas_id&quot;:&quot;8cfw8n7l4iy24xxxxxxxxx&quot;,&quot;account_id&quot;:&quot;ao5gpry0zykr1xxxxxxxxx&quot;,&quot;user_id&quot;:1,&quot;mail_thread_id&quot;:1,&quot;subject&quot;:&quot;test subject&quot;,&quot;snippet&quot;:&quot;test subject&quot;,&quot;mail_tracking_status&quot;:&quot;opened&quot;,&quot;mail_link_tracking_enabled_flag&quot;:0,&quot;read_flag&quot;:1,&quot;draft&quot;:&quot;&quot;,&quot;s3_bucket&quot;:&quot;pipedrive-mail-live-fr&quot;,&quot;s3_bucket_path&quot;:&quot;e9cf-6081745/77777/nylas/111/1111/body&quot;,&quot;draft_flag&quot;:0,&quot;synced_flag&quot;:1,&quot;deleted_flag&quot;:0,&quot;external_deleted_flag&quot;:false,&quot;has_body_flag&quot;:1,&quot;sent_flag&quot;:0,&quot;sent_from_pipedrive_flag&quot;:0,&quot;smart_bcc_flag&quot;:0,&quot;message_time&quot;:&quot;2019-11-14T06:02:06.000Z&quot;,&quot;add_time&quot;:&quot;2019-11-14T06:02:06.000Z&quot;,&quot;update_time&quot;:&quot;2019-11-14T07:15:49.000Z&quot;,&quot;has_attachments_flag&quot;:1,&quot;has_inline_attachments_flag&quot;:0,&quot;has_real_attachments_flag&quot;:1,&quot;mua_message_id&quot;:&quot;8cfw8n7l4iy24lfhnexxxxxx-0@mailer.nylas.com&quot;,&quot;template_id&quot;:1,&quot;item_type&quot;:&quot;mailMessage&quot;,&quot;timestamp&quot;:&quot;2020-09-16T13:37:50.000Z&quot;,&quot;company_id&quot;:6081745}}],&quot;additional_data&quot;:{&quot;pagination&quot;:{&quot;start&quot;:0,&quot;limit&quot;:100,&quot;more_items_in_collection&quot;:true}}}