Skip to main content

Count Partners

Returns the total count of interconnects associated with an ECGrid ID, optionally filtered by status.

Endpoint

POST /v2/partners/count

Request Body

FieldTypeRequiredConstraintsDescription
ecGridIdintegerYesMust be a valid ECGrid IDThe ECGrid ID to count interconnects for
statusstringNoSee Status enumFilter by interconnect lifecycle status
{
"ecGridId": 123456,
"status": "Active"
}

Response

Returns the total count as an integer.

{
"success": true,
"data": 14
}

ENUMs

Status

ValueDescription
DevelopmentInterconnects in development/testing phase
ActiveLive interconnects with active routing
PreproductionStaged but not yet live
SuspendedTemporarily disabled
TerminatedPermanently ended

See Enums reference for complete enum definitions.

Code Examples

curl -X POST "https://rest.ecgrid.io/v2/partners/count" \
-H "X-API-Key: $ECGRID_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "ecGridId": 123456, "status": "Active" }'

See Also