MailboxAdd
Creates a new mailbox within the specified network and returns the newly created mailbox record.
:::caution Established API The SOAP API is in maintenance mode. For new integrations use the REST equivalent. :::
Method Signature
MailboxIDInfo MailboxAdd(string SessionID, int NetworkID, string UniqueID, string CompanyName, string Address1, string Address2, string City, string State, string Zip, string Phone, string AdminEmail)
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
SessionID | string | Yes | Active session token from Login() with NetworkAdmin or higher authority |
NetworkID | int | Yes | Numeric identifier of the parent network |
UniqueID | string | Yes | Unique string identifier (slug) for the new mailbox; must be unique within the network |
CompanyName | string | Yes | Display name of the mailbox company |
Address1 | string | Yes | Primary street address |
Address2 | string | No | Secondary address line (suite, floor, etc.) |
City | string | Yes | City |
State | string | Yes | State or province code |
Zip | string | Yes | Postal code |
Phone | string | Yes | Primary contact phone number |
AdminEmail | string | Yes | Email address for the mailbox administrator |
Response Object — MailboxIDInfo
| Field | Type | Description |
|---|---|---|
MailboxID | int | System-assigned numeric identifier for the new mailbox |
NetworkID | int | Numeric identifier of the parent network |
UniqueID | string | Unique string identifier as provided |
CompanyName | string | Display name as provided |
Status | Status | Initial status of the mailbox (typically Active) |
Created | dateTime | UTC timestamp of mailbox creation |
Modified | dateTime | UTC timestamp of the record (same as Created on initial add) |
<!-- Example response XML -->
<MailboxIDInfo>
<MailboxID>200</MailboxID>
<NetworkID>1</NetworkID>
<UniqueID>NEWMAILBOX</UniqueID>
<CompanyName>New Mailbox Corp</CompanyName>
<Status>Active</Status>
<Created>2026-05-07T14:00:00</Created>
<Modified>2026-05-07T14:00:00</Modified>
</MailboxIDInfo>
Code Examples
- C#
- Java
- Node.js
- Python
// .NET 10 — dotnet-svcutil generated proxy
// Create a new mailbox under network 1 — requires NetworkAdmin authority
var newMailbox = await client.MailboxAddAsync(
sessionID,
networkId: 1,
uniqueID: "NEWMAILBOX",
companyName: "New Mailbox Corp",
address1: "789 Commerce Dr",
address2: "Suite 400",
city: "Chicago",
state: "IL",
zip: "60601",
phone: "312-555-9000",
adminEmail: "admin@newmailbox.com");
Console.WriteLine($"Created MailboxID: {newMailbox.MailboxID}");
Console.WriteLine($"Status: {newMailbox.Status}");
// JAX-WS generated client
// wsimport -s src https://os.ecgrid.io/v4.1/prod/ECGridOS.asmx?WSDL
ECGridOS service = new ECGridOS();
ECGridOSPortType port = service.getECGridOSPort();
var result = port.MailboxAdd(sessionID /*, additional params */);
System.out.println(result);
// npm install soap
import soap from 'soap';
const WSDL = 'https://os.ecgrid.io/v4.1/prod/ECGridOS.asmx?WSDL';
const client = await soap.createClientAsync(WSDL);
const [result] = await client.MailboxAddAsync({
SessionID: sessionId,
// additional params
});
console.log(result);
# pip install zeep
from zeep import Client
WSDL = 'https://os.ecgrid.io/v4.1/prod/ECGridOS.asmx?WSDL'
client = Client(WSDL)
result = client.service.MailboxAdd(
SessionID=session_id,
# additional params
)
print(result)
See Also
- MailboxInfo — retrieve the mailbox after creation
- Create a Mailbox — step-by-step guide covering both REST and SOAP
REST Equivalent
See Create Mailbox — POST /v2/mailboxes/create.