Skip to main content

List Mailboxes

Returns a paginated list of mailboxes accessible to the caller, with optional filtering by network or status.

Endpoint

POST /v2/mailboxes/list

Request Body

FieldTypeRequiredConstraintsDescription
networkIdintegerNoFilter to mailboxes belonging to this network; 0 returns all accessible mailboxes
statusstringNoSee StatusLimit results to mailboxes in this status
pageNointegerNo≥ 1Page number for pagination (default: 1)
recordsPerPageintegerNo1–500Number of records per page (default: 25)
{
"networkId": 1001,
"status": "Active",
"pageNo": 1,
"recordsPerPage": 25
}

Response

Returns an array of MailboxIDInfo objects with pagination metadata.

{
"success": true,
"data": {
"totalRecords": 14,
"pageNo": 1,
"recordsPerPage": 25,
"mailboxes": [
{
"mailboxId": 5001,
"networkId": 1001,
"uniqueId": "ACMEMBOX01",
"companyName": "Acme Mailbox One",
"status": "Active",
"created": "2021-06-10T09:00:00Z",
"modified": "2025-02-14T11:30:00Z"
}
]
},
"errorCode": null,
"message": null
}

ENUMs

Status

The status filter uses the Status enum. See the full value table in Appendix: ENUMs.

Code Examples

curl -X POST "https://rest.ecgrid.io/v2/mailboxes/list" \
-H "X-API-Key: $ECGRID_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "networkId": 1001, "status": "Active", "pageNo": 1, "recordsPerPage": 25 }'

See Also