Skip to main content

List Networks

Returns a paginated list of networks visible to the authenticated caller, with optional filters by network ID, mailbox ID, or status.

Endpoint

POST /v2/networks/list

Request Body

FieldTypeRequiredConstraintsDescription
networkIdintegerNoFilter to a specific network ID; 0 returns all accessible networks
mailboxIdintegerNoFilter networks that own the given mailbox
statusstringNoSee StatusLimit results to networks in this status
pageNointegerNo≥ 1Page number for pagination (default: 1)
recordsPerPageintegerNo1–500Number of records per page (default: 25)
{
"networkId": 0,
"mailboxId": 0,
"status": "Active",
"pageNo": 1,
"recordsPerPage": 25
}

Response

Returns an array of NetworkIDInfo objects along with pagination metadata.

{
"success": true,
"data": {
"totalRecords": 42,
"pageNo": 1,
"recordsPerPage": 25,
"networks": [
{
"networkId": 1001,
"uniqueId": "MYNETWORK",
"companyName": "Acme Corporation",
"status": "Active",
"created": "2020-03-15T08:00:00Z",
"modified": "2024-11-01T14:22:10Z"
}
]
},
"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/networks/list" \
-H "X-API-Key: $ECGRID_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "networkId": 0, "mailboxId": 0, "status": "Active", "pageNo": 1, "recordsPerPage": 25 }'

See Also