Get Single Attribute
Retrieve detailed information for a specific product attribute including all available options.
Endpoint
GET /api/shop/attributes/{id}Request Headers
| Header | Required | Description |
|---|---|---|
Content-Type | Yes | application/json |
X-STOREFRONT-KEY | Yes | Your storefront API key |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | Attribute ID |
Response Fields (200 OK)
| Field | Type | Description |
|---|---|---|
id | integer | Attribute ID |
code | string | Unique attribute code |
name | string | Attribute display name |
type | string | Attribute type (text, select, multiselect, textarea) |
isRequired | boolean | Whether attribute is required |
isVisibleOnFront | boolean | Visible to customers |
options | array | Available options |
Option Fields
| Field | Type | Description |
|---|---|---|
id | integer | Option ID |
label | string | Option display label |
value | string | Option value |
Use Cases
- Build product configuration forms
- Display attribute details
- Create attribute-based filters
- Load variant options for products
- Show size, color, or other variant choices

