Skip to main content

List Comms

Returns a list of communication channels, optionally filtered by type, use type, and other criteria.

Endpoint

POST /v2/comms/list

Request Body

FieldTypeRequiredConstraintsDescription
commTypeNetworkGatewayCommChannelNoSee ENUMsFilter by channel type (e.g., as2, sftp, ftp)
privateKeyRequiredbooleanNoWhen true, returns only channels that require a private key
useTypeUseTypeNoSee ENUMsFilter by intended use (Test, Production, TestAndProduction)
showInactivebooleanNoDefault falseWhen true, includes suspended and terminated channels
withCertsbooleanNoWhen true, returns only channels that have certificates attached
{
"commType": "as2",
"useType": "Production",
"showInactive": false,
"withCerts": true
}

Response

Returns an array of CommIDInfo objects matching the specified filters.

{
"success": true,
"data": [
{
"commId": 5001,
"mailboxId": 101,
"commType": "as2",
"identifier": "MYCOMPANY-AS2",
"status": "Active",
"useType": "Production",
"privateKeyRequired": true,
"withCerts": true
},
{
"commId": 5002,
"mailboxId": 102,
"commType": "as2",
"identifier": "DIVISION-AS2",
"status": "Active",
"useType": "Production",
"privateKeyRequired": true,
"withCerts": true
}
]
}

ENUMs

This endpoint uses the NetworkGatewayCommChannel and UseType ENUMs. See ENUMs Reference for all valid values.

Code Examples

curl -X POST "https://rest.ecgrid.io/v2/comms/list" \
-H "X-API-Key: $ECGRID_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "commType": "as2", "useType": "Production", "showInactive": false, "withCerts": true }'

See Also