Get filtered conversations
GET /api/2.0/mail/conversations
Request
Returns the conversations with the parameters specified in the request.
Authorization
An API key is a token that you provide when making API calls. Include the token in a header parameter called Authorization
.
Example: Authorization: 864FE52C-1C1C-469F-9308-51DAFEFE7436
.
Headers
- Accept
enum of string
Can be one of:
application/json
.- Content-Type
enum of string
Can be one of:
application/json
.
Body
- folder
array of integer
Folder type: 1 - inbox, 2 - sent, 3 - drafts, 4 - trash, 5 - spam
- unread
array of boolean
Conversation status: unread (true), read (false), or all (null) messages
- attachments
array of boolean
Defines if a conversation has attachments or not: with attachments (true), without attachments (false), or all (null) messages
- period_from
array of integer
Start search period date
- period_to
array of integer
End search period date
- important
array of boolean
Specifies if only important conversations will be displayed or not
- from_address
string
Mail address from which the conversation messages were received
- to_address
string
Mail address to which the conversation messages were sent
- mailbox_id
array of integer
Recipient mailbox ID
- tags
array of integer
IDs of tags linked to the target conversation
- search
string
Text to search in the conversation bodies and subjects
- page_size
array of integer
Number of conversations on the page
- sortorder
string
Sort order by date: "ascending" or "descending"
- from_date
string
Start date of conversation search
- from_message
array of integer
Message from which the conversations are searched
- with_calendar
array of boolean
Specifies if the conversations have a calendar or not
- user_folder_id
array of integer
User folder ID
- prev_flag
array of boolean
Direction sort of the conversation list: true for previous, false for next
Examples
GET /api/2.0/mail/conversations HTTP/1.1
Accept: application/json
Content-Type: application/json
Host: example.com
curl --request GET \
--url https://example.com/api/2.0/mail/conversations \
--header 'Accept: application/json' \
--header 'Content-Type: application/json'
Responses
200
List of filtered conversations
- Attachments
array of object
- fileId
integer
int32 - fileName
string
- size
integer
int64 - contentType
string
- needSaveToTemp
boolean
- contentId
string
- fileNumber
integer
int32 - storedName
string
- streamId
string
- attachedAsLink
boolean
- tempStoredUrl
string
- Introduction
string
- HtmlBody
string
- ContentIsBlocked
boolean
- Important
boolean
- Subject
string
- HasAttachments
boolean
- Bcc
string
- Cc
string
- To
string
- Address
string
- From
string
- ReplyTo
string
- Id
integer
int32 - ChainId
string
- ChainDateString
string
- DateString
string
- DateDisplay
string
- TagIds
array of integer
- LabelsInString
string
- IsNew
boolean
- IsAnswered
boolean
- IsForwarded
boolean
- TextBodyOnly
boolean
- Size
integer
int64 - EMLLink
string
- StreamId
string
- RestoreFolderId
enum of integer
int32 [0 - Sending, 1 - Inbox, 2 - Sent, 3 - Draft, 4 - Trash, 5 - Spam, 6 - UserFolder, 7 - Templates]
Can be one of:
Sending
,Inbox
,Sent
,Draft
,Trash
,Spam
,UserFolder
,Templates
.- Folder
enum of integer
int32 [0 - Sending, 1 - Inbox, 2 - Sent, 3 - Draft, 4 - Trash, 5 - Spam, 6 - UserFolder, 7 - Templates]
Can be one of:
Sending
,Inbox
,Sent
,Draft
,Trash
,Spam
,UserFolder
,Templates
.- UserFolderId
array of integer
- ChainLength
integer
int32 - WasNew
boolean
- IsToday
boolean
- IsYesterday
boolean
- ReceivedDate
string
- IsBodyCorrupted
boolean
- HasParseError
boolean
- MimeMessageId
string
- MimeReplyToId
string
- CalendarUid
string
- ReadRequestStatus
boolean
401
Unauthorized