POST api/2.0/mailserver/notification/address/add This function requires authentication

Description

Creates an address for the tenant notifications with the parameters specified in the request.

Parameters
Name Description Type Example
name
sent in body
Address name string some text
password
sent in body
Address password string some text
domain_id
sent in body
Domain ID number 1234
Example
POST api/2.0/mailserver/notification/address/add
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "name": "some text",
  "password": "some text",
  "domain_id": 1234
}
Returns

Notification address data associated with the tenant

Example Response

application/json

{
  "status": 0,
  "response": {
    "Email": "Email",
    "smtp_server": "smtp_server",
    "smtp_port": 33,
    "smtp_account": "smtp_account",
    "smtp_auth": true,
    "smtp_encryption_type": "smtp_encryption_type",
    "smtp_auth_type": "smtp_auth_type"
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <Email>Email</Email>
    <smtp_server>smtp_server</smtp_server>
    <smtp_port>33</smtp_port>
    <smtp_account>smtp_account</smtp_account>
    <smtp_auth>True</smtp_auth>
    <smtp_encryption_type>smtp_encryption_type</smtp_encryption_type>
    <smtp_auth_type>smtp_auth_type</smtp_auth_type>
  </response>
</result>