Account
A new account should be initiated for each mailbox. Each mailbox, label and message belong to a specific account. It is possible to store accounts for multiple domains on a single ElasticInbox instance.
Add account
POST /rest/v2/:domain/:user
Response
Status: 201 Created
Location: http://host:8181/rest/v2/domain.tld/user/mailbox
{
"ok": true
}
Get account information
Note: This method has not been implemented yet.
GET /rest/v2/:domain/:user
Response
Status: 200 OK
{
"attr": "val"
}
Delete account
Deletes all account data including messages from BLOB store and metadata.
DELETE /rest/v2/:domain/:user
Response
Status: 204 No Content