Mail360 API Guide

Mail360 offers a platform to connect and/or host the mailboxes in your application. The universal APIs ensure that you are able to access multiple providers from a single place. We offer a wide range of APIs to work with accounts, messages, attachments, folders, and labels.

Accounts API

Accounts in Mail360 are nothing but the mailboxes you connect or host with us. Accounts APIs provide you with the capability to manage and perform actions on the accounts you've integrated with Mail360.

APIURLMethodOAuth Scope
Add native account/api/accountsPOST       MailApps.accounts
Add sync account /api/accountsPOST
Add sync account using OAuth/api/accounts/oauthPOST
Enable account/api/accounts/{account_key}PUT
Disable account/api/accounts/{account_key}PUT
Get all Accounts/api/accountsGET
Get specific account/api/accounts/{account_key}GET
Update password/api/accounts/{account_key}PUT
Delete account/api/accounts/{account_key}DELETE

Messages API

 In this context, emails are referred to as messages. The Messages APIs give you the tools to manage and conduct operations related to the messages within your accounts.

APIURLMethodOAuth Scope
Send emails /api/accounts/{account_key}/messagesPOST       MailApps.messages
Send reply/api/accounts/{account_key}/messages/{messageId}POST
Mark emails as read /api/accounts/{account_key}/messagesPUT
Mark emails as unread /api/accounts/{account_key}/messagesPUT
List emails in a folder/api/accounts/{account_key}/messagesGET
List emails based on search key /api/accounts/{account_key}/messages/{messageId}GET
Get specific email /api/accounts/{account_key}/messages/{messageId}GET
Get specific message content/api/accounts/{account_key}/messages/{messageId}GET
Get specific message header/api/accounts/{account_key}/messages/{messageId}GET
Get attachment details

/api/accounts/{account_key}/messages/{messageId}/
attachments

GET
Move emails /api/accounts/{account_key}/messagesPUT
Flag emails /api/accounts/{account_key}/messagesPUT
Apply labels /api/accounts/{account_key}/messagesPUT
Remove specific labels/api/accounts/{account_key}/messagesPUT
Remove all labels/api/accounts/{account_key}/messages/PUT
Delete email/api/accounts/{account_key}/messages/{messageId}DELETE

Attachments API

The Attachments APIs provide you with the capability to upload and download the attachments in your emails. 

APIURLMethodOAuth Scope
Download attachment/api/accounts/{account_key}/messages/
{messageId}/attachments/{attachmentId}
GET       MailApps.attachments
Upload attachment /api/accounts/{account_key}/attachmentsPOST

Folders API

Folders allow you to organize your emails in your account. The Folders APIs provide you with the capability to manage and perform actions on the folders.

APIURLMethodOAuth Scope
Create folder/api/accounts/{account_key}/foldersPOST       MailApps.folders
Get all folders/api/accounts/{account_key}/foldersGET
Get specific folder/api/accounts/{account_key}/folders/{folderId}GET
Mark folder as read/api/accounts/{account_key}/folders/{folderId}PUT
Move folder/api/accounts/{account_key}/folders/{folderId}PUT
Rename folder/api/accounts/{account_key}/folders/{folderId}PUT
Delete emails in a folder/api/accounts/{account_key}/folders/{folderId}PUT
Delete folder/api/accounts/{account_key}/folders/{folderId}DELETE

​Labels API

Labels allow you to categorize your emails in your account. The Labels APIs provide you with the capability to manage and perform actions on the labels.

APIURLMethodOAuth Scope
Create label/api/accounts/{account_key}/labelsPOST       MailApps.tags
Get all labels/api/accounts/{account_key}/labelsGET
Get specific label/api/accounts/{account_key}/labels/{labelId}GET
Update label/api/accounts/{account_key}/labels/{labelId}PUT
Delete label /api/accounts/{account_key}/labels/{labelId}DELETE

Drafts API

Drafts enable you to save and review unfinished messages before sending, ensuring both clarity and completeness. The Drafts API allows you to manage these drafts and perform actions on them.

APIURLMethodOAuth Scope
Create draft/api/accounts/{account_key}/draftsPOST       MailApps.messages
Send email using draft/api/accounts/{account_key}/drafts/{draftId}POST
Get all drafts/api/accounts/{account_key}/draftsGET
Get specific draft/api/accounts/{account_key}/drafts/{draftId}GET
Update draft/api/accounts/{account_key}/drafts/{draftId}PUT
Delete draft /api/accounts/{account_key}/drafts/{draftId}DELETE

Templates API

An email template is a ready-to-use format that you can customize by replacing its content with your own. The Templates API allows you to manage these templates and perform actions on them.

APIURLMethodOAuth Scope
Create template/api/accounts/{account_key}/templatesPOST       MailApps.messages
Get all templates/api/accounts/{account_key}/templatesGET
Get specific template /api/accounts/{account_key}/templates/{templateId}GET
Update template /api/accounts/{account_key}/templates/{templateId}PUT
Delete template /api/accounts/{account_key}/templates/{templateId}DELETE

Threads API

While the Messages APIs focus on individual messages, the Threads APIs deal with entire conversation threads, each of which contains multiple messages. The Threads APIs allow you to manage these threads and perform actions on them.

APIURLMethodOAuth Scope
Get all threads/api/accounts/{account_key}/threadsGET       MailApps.messages
Get specific thread /api/accounts/{account_key}/threads/{threadId}GET
Mark threads as read/unread /api/accounts/{account_key}/threadsPUT
Move threads /api/accounts/{account_key}/threadsPUT
Flag threads /api/accounts/{account_key}/threadsPUT
Label threads /api/accounts/{account_key}/threadsPUT
Remove specific labels/api/accounts/{account_key}/threadsPUT
Remove all labels/api/accounts/{account_key}/threadsPUT
Delete a thread/api/accounts/{account_key}/threads/{threadId}DELETE
Delete threads/api/accounts/{account_key}/threadsDELETE