Frontend API

Retrieve product attributes to display in a storefront.

Returns a list of product attributes, with offset pagination using limit and page.

List attributes
await swell.attributes.list({
  limit: 25,
  page: 1
})

Returns a single attribute.

Get an attribute
// By slug
await swell.attributes.get('color')

// By ID
await swell.attributes.get('5c15505200c7d14d851e510g')