Skip to main content

Create Comm

Creates a new communication channel for a mailbox, defining the technical connection details for EDI delivery via AS2, FTP, SFTP, or another supported protocol.

Endpoint

POST /v2/comms/create

Request Body

FieldTypeRequiredConstraintsDescription
mailboxIdintegerYesMust be a valid mailboxMailbox to associate the new communication channel with
commTypeNetworkGatewayCommChannelYesSee ENUMsProtocol type for the channel (e.g., as2, sftp, ftp)
identifierstringYesChannel-specific identifier (AS2 ID, FTP username, SFTP host, etc.)
useTypeUseTypeNoSee ENUMsIntended use — Test, Production, or TestAndProduction
{
"mailboxId": 101,
"commType": "as2",
"identifier": "MYCOMPANY-AS2",
"useType": "Production"
}

Response

Returns the newly created CommIDInfo object.

{
"success": true,
"data": {
"commId": 5010,
"mailboxId": 101,
"commType": "as2",
"identifier": "MYCOMPANY-AS2",
"status": "Active",
"useType": "Production",
"privateKeyRequired": false,
"withCerts": false
}
}

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/create" \
-H "X-API-Key: $ECGRID_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "mailboxId": 101, "commType": "as2", "identifier": "MYCOMPANY-AS2", "useType": "Production" }'

See Also