Fetch a single attribute by id. This playground calls the live API with your account credentials.
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.
GET https://api.commerceclarity.com/api/2026-05/attributes/{attribute_id}| Parameter | Type | Required | Description |
|---|---|---|---|
attribute_id | string | Required | The attribute's attribute_id or its Mongo _id. |
curl -X GET "https://api.commerceclarity.com/api/2026-05/attributes/color" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
{
"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": "..." }
]
}
}
}{
"success": false,
"message": "Attribute not found"
}