API Playground

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

Authentication Required

You need to Login to test the API playground

Get attribute

Return a single attribute of the active brand, resolved by id, with its linked families.

The identifier may be either the attribute's attribute_id or its 24-character Mongo _id. The response includes the full attribute document together with the active families it is linked to.

Endpoint URL
GET https://api.commerceclarity.com/api/2026-05/attributes/{attribute_id}

Path Parameters

ParameterTypeRequiredDescription
attribute_idstringRequiredThe attribute's attribute_id or its Mongo _id.

Request Examples

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

Response Example

Success Response
{
  "success": true,
  "data": {
    "attribute": {
      "_id": "65a1f77bcf86cd7994390aa",
      "attribute_id": "color",
      "name": "Color",
      "norm_name": "color",
      "scope": "global",
      "type": "multi-select",
      "options": [
        { "value": "Black", "valueId": null },
        { "value": "Yellow", "valueId": null }
      ],
      "families": [
        { "id": "65a1f77bcf86cd7994390cc", "name": "Appliances", "description": "..." }
      ]
    }
  }
}
Error Response - Validation
{
  "success": false,
  "message": "Attribute not found"
}