Skip to main content

Create Carbon Copy

Creates a new carbon copy rule that automatically duplicates EDI traffic from one mailbox to another.

Endpoint

POST /v2/carboncopies/create

Request Body

FieldTypeRequiredConstraintsDescription
fromMailboxIdintegerYesMust be a valid mailboxSource mailbox whose traffic will be duplicated
toMailboxIdintegerYesMust be a valid mailboxDestination mailbox that receives the duplicated traffic
directionDirectionYesSee ENUMsTraffic direction to duplicate — InBox, OutBox, or NoDir (both)
{
"fromMailboxId": 101,
"toMailboxId": 202,
"direction": "InBox"
}

Response

Returns the newly created carbon copy rule.

{
"success": true,
"data": {
"ccId": 1043,
"fromMailboxId": 101,
"toMailboxId": 202,
"status": "Active",
"direction": "InBox",
"created": "2026-05-07T14:00:00Z"
}
}

ENUMs

This endpoint uses the Direction ENUM. See ENUMs Reference for all valid values.

Direction (summary)

ValueDescription
InBoxCopies inbound traffic received by the source mailbox
OutBoxCopies outbound traffic sent from the source mailbox
NoDirCopies both inbound and outbound traffic

Code Examples

curl -X POST "https://rest.ecgrid.io/v2/carboncopies/create" \
-H "X-API-Key: $ECGRID_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "fromMailboxId": 101, "toMailboxId": 202, "direction": "InBox" }'

See Also