API Playground

Fetch a single family by id. This playground calls the live API with your account credentials.

Authentication Required

You need to Login to test the API playground

Get family

Return a single family of the active brand by id.

Endpoint URL
GET https://api.commerceclarity.com/api/2026-05/families/{id}

Path Parameters

ParameterTypeRequiredDescription
idstringRequiredThe family's family_id or Mongo _id.

Request Examples

curl -X GET "https://api.commerceclarity.com/api/2026-05/families/electronics" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"

Response Example

Success Response
{
  "status": "success",
  "data": {
    "_id": "507f1f77bcf86cd799439011",
    "name": "Electronics",
    "family_id": "electronics",
    "description": "Electronic devices and accessories",
    "is_enabled": true,
    "created_at": "2026-01-15T10:30:00Z",
    "updated_at": "2026-01-15T10:30:00Z"
  }
}
Error Response - Validation
{
  "status": "error",
  "message": "Family not found"
}