POST api/2.0/mailserver/mailboxes/addmy
Creates a mailbox with your own domain name.
Name |
Description |
Type |
Example |
name
sent in body
|
Mailbox name
|
string
|
some text
|
POST api/2.0/mailserver/mailboxes/addmy
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
{
"name": "some text"
}
Mailbox data associated with the tenant
application/json
{
"status": 0,
"response": {
"Id": 1234,
"UserId": "UserId",
"UserDisplayName": "UserDisplayName",
"Address": {
"Id": 1234,
"DomainId": 1234,
"Email": "Email@only.com"
},
"Name": "Name",
"Aliases": [
{
"Id": 1234,
"DomainId": 1234,
"Email": "Email@only.com"
}
]
}
}
text/xml
<result>
<status>0</status>
<response>
<Id>1234</Id>
<UserId>UserId</UserId>
<UserDisplayName>UserDisplayName</UserDisplayName>
<Address>
<Id>1234</Id>
<DomainId>1234</DomainId>
<Email>Email@only.com</Email>
</Address>
<Name>Name</Name>
<Aliases>
<Id>1234</Id>
<DomainId>1234</DomainId>
<Email>Email@only.com</Email>
</Aliases>
</response>
</result>