Skip to content

List product attributes​

GET
/public/attributes

Without categoryId, returns all defined attributes (e.g. Couleur, Taille) with their values for the resolved tenant. With categoryId, derives the attribute values from variants of the products the storefront LISTS in that category (its whole subtree — same visibility as GET /products: published, active listing, not hidden, X-Channel display mode), merging with canonical attribute metadata where available. A value carried only by unlisted products is not offered.

Values are ONE entry per normalised value — Noir / noir / NOIR are one entry (slug noir, labelled with the most frequent spelling); the slug is what GET /products attr[code]= / attributeValue match (in both forms of this endpoint, it is the normalised value — never a stored value slug). The brand attribute (the brand has its own filter), metadata axes and empty values are left out.

Auth: Public (no authentication).

Same route as GET /attributes under the explicit /public namespace: same handler, parameters, cache headers and X-Channel handling. Prefer this path.

Parameters​

Query Parameters

categoryId

Derive attributes from products in this category

Type
string

Responses​

Attribute list

application/json
JSON
{
  
"ok": true,
  
"data": {
  
  
"items": [
  
  
  
{
  
  
  
  
"id": "string",
  
  
  
  
"code": "string",
  
  
  
  
"name": "string",
  
  
  
  
"slug": "string",
  
  
  
  
"type": "string",
  
  
  
  
"values": [
  
  
  
  
  
{
  
  
  
  
  
  
"id": "string",
  
  
  
  
  
  
"value": "string",
  
  
  
  
  
  
"slug": "string",
  
  
  
  
  
  
"sortOrder": 0
  
  
  
  
  
}
  
  
  
  
]
  
  
  
}
  
  
]
  
}
}

Playground​

Variables
Key
Value

Samples​

Powered by VitePress OpenAPI

Tarifs : contactez-nous — contact@marketkit.ai