- Mailbox API – Authentication and Authorization
- Mailbox API – Schemas
- Mailbox API – Versioning
- Mailbox API – Account
- Mailbox API – Account Settings
- Mailbox API – Account Filters
- Mailbox API – Folders
- Mailbox API – Mails
- Mailbox API – Mails Create and Send
- Mailbox API – Mails Search
- Mailbox API – Mails Counters
- Mailbox API – Conversations
- Mailbox API – Labels
- Mailbox API – Contacts
- Mailbox API – Batch Operations
- Mailbox API – Undo
- Mailbox API – Error Handling
The Mailbox API is available starting with Axigen X4 (10.4).
List
Query parameters
Name |
Type |
Required |
Values |
Description |
---|---|---|---|---|
|
|
* |
The folder ID |
|
|
|
|
"subject", "from", "to", "date", "size", "isUnread", "isFlagged", "importance", "hasAttachments", “folderName” |
The sorting field. Note that “folderName” can be used for listing temporary search folders only. Default value: last provided value or "date" if not yet set |
|
|
|
"ASC", "DESC" |
The sorting direction Default value: last provided value or "DESC" if not yet set |
|
|
|
|
The starting position Default value: 0 |
|
|
|
|
The maximum number of retrieved items Default value: the WebMailData pageSize |
|
|
|
|
The active mail ID is used to generate the activeRowIndex property. Note: this is used to compute server-side the absolute index in the list for the provided mail item (used mainly for clients to restore selections etc.) |
|
|
|
|
When true, the endpoint should only return the syncToken without the folder list. Default value: false |
Response
Get
URL parameters
Name |
Type |
Required |
Values |
Description |
---|---|---|---|---|
|
|
* |
|
The mail ID |
Response
If successful, the response will contain an instance of mail.
Update
URL parameters
Name |
Type |
Required |
Values |
Description |
---|---|---|---|---|
|
|
* |
|
The mail ID |
Request body (JSON)
Name |
Type |
Required |
Values |
Description |
---|---|---|---|---|
|
|
|
|
The unread / read value |
|
|
|
|
The flagged / not flagged value |
Response
If successful, the response will contain an instance of mail.
Move
URL parameters
Name |
Type |
Required |
Values |
Description |
---|---|---|---|---|
|
|
* |
|
The mail ID |
Request body (JSON)
Name |
Type |
Required |
Values |
Description |
---|---|---|---|---|
|
|
* |
|
The destination folder ID |
Response
If successful, the response will contain an instance of mail.
Copy
URL parameters
Name |
Type |
Required |
Values |
Description |
---|---|---|---|---|
|
|
* |
|
The mail ID |
Request body (JSON)
Name |
Type |
Required |
Values |
Description |
---|---|---|---|---|
|
|
|
|
The destination folder ID |
Response
If successful, the response will contain an instance of mail.
Delete
URL parameters
Name |
Type |
Required |
Values |
Description |
---|---|---|---|---|
|
|
* |
|
The mail ID |
Response
If successful, the response will be empty.
Body
Get
URL parameters
Name |
Type |
Required |
Values |
Description |
---|---|---|---|---|
|
|
* |
The mail ID |
Query parameters
Name |
Type |
Required |
Values |
Description |
---|---|---|---|---|
|
|
"text", "html" Default value: "html" |
The preferred body type |
|
|
|
Default value: depending on the body filtering level – |
Controls the automatic download of external images |
Response
Get Full Body
This endpoint should be called for emails with a long body – i.e. the Get body returns "isTruncated": true
URL parameters
Name |
Type |
Required |
Values |
Description |
---|---|---|---|---|
|
|
* |
|
The mail ID |
Response
The full email body (raw).
Attachments
List
URL parameters
Name |
Type |
Required |
Values |
Description |
---|---|---|---|---|
|
|
* |
|
The mail ID |
Response
Download All
Response
A zip archive containing all the non-inline attachments.
Get
URL parameters
Name |
Type |
Required |
Values |
Description |
---|---|---|---|---|
|
|
* |
|
The mail ID |
|
|
* |
The attachment ID |
Response
The attachment – served using Content-Disposition: inline
in the response header.
Download
The Get and Download endpoints have the same response except for the Content-Disposition
HTTP header.
If you want to display the attachment (or delegate the decision to the browser, if you are working with the Mailbox API from a browser based application), use the Get
endpoint.
Alternatively, to force the attachment download, use the Download
endpoint.
It’s also possible to make this decision based on the attachment’s Content-Type
– i.e. show some attachments vs. download others, in which case you can rely on the List
endpoint.
URL parameters
Name |
Type |
Required |
Values |
Description |
---|---|---|---|---|
|
|
* |
|
The mail ID |
|
|
* |
The attachment ID |
Response
The attachment – served using Content-Disposition: attachment
in the response header.
Get Thumbnail
URL parameters
Name |
Type |
Required |
Values |
Description |
---|---|---|---|---|
|
|
* |
|
The mail ID |
|
|
* |
The attachment ID |
Query parameters
Name |
Type |
Required |
Values |
Description |
---|---|---|---|---|
|
|
10-1024 |
The needed width / height in pixels. If the actual size of the image is bigger (in both width and height), it will be resized so that its dimensions cover the given width / height while maintaining its original aspect ratio. If the actual size of the image is smaller (in either width or height), its original size will be kept, with no resizing being performed. Note: the width / height of the returned thumbnail will be 1024px. Examples:
|
|
|
|
10-1024 |
Response
The attachment thumbnail, for images only; empty for all other attachments.
Get EML Attachment
This endpoint can be used for loading Content-Type: message/rfc822
attachments.
URL parameters
Name |
Type |
Required |
Values |
Description |
---|---|---|---|---|
|
|
* |
|
The mail ID |
|
|
* |
The attachment ID |
Response
If successful, the response will contain an instance of mail.
Source
Get
URL parameters
Name |
Type |
Required |
Values |
Description |
---|---|---|---|---|
|
|
* |
|
The mail ID |
Response
The raw email source.
Download
URL parameters
Name |
Type |
Required |
Values |
Description |
---|---|---|---|---|
|
|
* |
|
The mail ID |
Response
The raw email in message/rfc822
format (eml) – served using Content-Disposition: attachment
in the response header.
Get Headers
URL parameters
Name |
Type |
Required |
Values |
Description |
---|---|---|---|---|
|
|
* |
|
The mail ID |
Response
The raw email source headers.
Labels
Add
URL parameters
Name |
Type |
Required |
Values |
Description |
---|---|---|---|---|
|
|
* |
The mail ID |
Request body (JSON)
Name |
Type |
Required |
Values |
Description |
---|---|---|---|---|
|
|
* |
The label ID |
Response
If successful, the response will be empty.
Remove
URL parameters
Name |
Type |
Required |
Values |
Description |
---|---|---|---|---|
|
|
* |
The mail ID |
|
|
|
* |
The label ID |
Response
If successful, the response will be empty.
Spam Marker
Starting with version 10.5.25.
Mark as Spam
URL parameters
Name |
Type |
Required |
Values |
Description |
---|---|---|---|---|
|
|
* |
The mail ID |
Response
If successful, the response will contain an instance of mail.
Mark as Not Spam
URL parameters
Name |
Type |
Required |
Values |
Description |
---|---|---|---|---|
|
|
* |
The mail ID |
Request body (JSON)
Name |
Type |
Required |
Values |
Description |
---|---|---|---|---|
|
|
Default value: Inbox folder ID |
The destination folder ID |
Response
If successful, the response will contain an instance of mail.