Skip to main content

Create Mailbox

Creates a new mailbox under the specified network.

Endpoint​

POST /v2/mailboxes/create

Request Body​

FieldTypeRequiredConstraintsDescription
networkIdintegerYes—ID of the parent network that will own this mailbox
uniqueIdstringYesMax 12 characters, alphanumericShort unique identifier for this mailbox within the network
companyNamestringYes—Display name for the mailbox / company
{
"networkId": 1001,
"uniqueId": "ACMEMBOX02",
"companyName": "Acme Mailbox Two"
}

Response​

Returns the newly created MailboxIDInfo object, including the system-assigned mailboxId.

{
"success": true,
"data": {
"mailboxId": 5002,
"networkId": 1001,
"uniqueId": "ACMEMBOX02",
"companyName": "Acme Mailbox Two",
"status": "Active",
"created": "2026-05-07T10:00:00Z",
"modified": "2026-05-07T10:00:00Z"
},
"errorCode": null,
"message": null
}

Code Examples​

curl -X POST "https://rest.ecgrid.io/v2/mailboxes/create" \
-H "X-API-Key: $ECGRID_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "networkId": 1001, "uniqueId": "ACMEMBOX02", "companyName": "Acme Mailbox Two" }'

See Also​