Skip to main content

List Carbon Copies

Returns a paginated list of carbon copy rules for a given mailbox, optionally filtered by status.

Endpoint

POST /v2/carboncopies/list

Request Body

FieldTypeRequiredConstraintsDescription
mailboxIdintegerNoMust be a valid mailboxFilter results to rules associated with this mailbox
statusStatusNoSee ENUMsFilter by rule status (e.g., Active, Suspended)
pageNointegerNo>= 1, default 1Page number for paginated results
recordsPerPageintegerNo1–1000, default 100Number of records returned per page
{
"mailboxId": 101,
"status": "Active",
"pageNo": 1,
"recordsPerPage": 50
}

Response

Returns a paginated array of carbon copy rule objects.

{
"success": true,
"data": [
{
"ccId": 1042,
"fromMailboxId": 101,
"toMailboxId": 202,
"status": "Active",
"direction": "InBox",
"created": "2025-01-15T10:30:00Z"
},
{
"ccId": 1043,
"fromMailboxId": 101,
"toMailboxId": 303,
"status": "Active",
"direction": "OutBox",
"created": "2025-03-22T08:15:00Z"
}
],
"pageNo": 1,
"recordsPerPage": 50,
"totalRecords": 2
}

ENUMs

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

Code Examples

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

See Also