API Playground

List the saved views you can see in your active brand. This playground calls the live API with your account credentials.

Authentication Required

You need to Login to test the API playground

List views

Retrieve the saved views of the entities grid that you can see in the active brand.

A view saves a configuration of the entities grid (filters, sort and columns) under a name, so a recurring way of looking at the catalog ("EU products missing weight", "Shoes family, merch columns") can be reused in one click instead of rebuilt each time. A view is private to the user who created it by default, and can be shared with every member of its brand.

A view stores its filters in exactly the shape the List / Query entities endpoint takes: see Apply a view to the entities query.

Note: All requests are scoped to your active brand. Every views endpoint accepts an optional brand_id to target another brand you are a member of.
Endpoint URL
GET https://api.commerceclarity.com/api/2026-05/entities/views

Returns every view the caller can see in the brand: their own views (private and shared) plus every shared view of other members. Results are ordered by position, then created_at (see Ordering). Private and shared views come back as one flat list: group them on visibility, and on owner_user_id to tell your views from your teammates'.

Query Parameters

ParameterTypeRequiredDescription
brand_idstringOptionalList the views of this brand instead of the active one. You must be a member of it.

Request Examples

curl "https://api.commerceclarity.com/api/2026-05/entities/views" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"

Response Example

Success Response
{
  "status": "success",
  "results": [
    {
      "_id": "664f1a2b3c4d5e6f7a8b9c0d",
      "brand_id": "64f1a2b3c4d5e6f7a8b9c0d1",
      "workspace_id": "63a0f1a2b3c4d5e6f7a8b9c0",
      "owner_user_id": "62b1f1a2b3c4d5e6f7a8b9c0",
      "owner_email": "anna.rossi@example.com",
      "name": "EU products missing weight",
      "visibility": "shared",
      "position": 0,
      "definition": {
        "filters": {
          "operator": "and",
          "conditions": [
            { "field": "country", "op": "in", "value": ["it", "de", "fr"] },
            { "field": "attr.peso", "op": "is empty" }
          ]
        },
        "sort": [{ "field": "attr.cc_title", "dir": "asc" }],
        "columns": [
          { "colId": "cc_title", "visible": true,  "width": 240, "pinned": "left", "order": 0 },
          { "colId": "code",     "visible": true,  "width": 120, "pinned": null,   "order": 1 },
          { "colId": "peso",     "visible": false, "width": 100, "pinned": null,   "order": 2 }
        ]
      },
      "created_at": "2026-07-01T10:00:00.000000Z",
      "updated_at": "2026-07-01T10:00:00.000000Z"
    }
  ]
}

The view object

Every views endpoint that returns a view uses this shape.

FieldTypeDescription
_idstringView id.
brand_idstringBrand the view belongs to.
workspace_idstringWorkspace of the brand.
owner_user_idstringUser who created the view.
owner_emailstringEmail of the owner, useful to show who created a shared view.
namestringDisplay name, unique among the views the caller can see in the brand.
visibilitystringprivate or shared. See Visibility and permissions.
positionintegerManual sort order, ascending. See Ordering.
definition.filtersobject|nullThe filter tree, in the same shape the entities query takes. Stored and returned as is.
definition.sortarraySort spec: [{ "field": "...", "dir": "asc"|"desc" }], where field is a standard field or attr.<norm_name>.
definition.columnsarrayColumn layout: { colId, visible, width?, pinned?, order } per column. See Columns and attributes.
created_at / updated_atstringISO 8601 timestamps.

Columns and attributes

definition.columns is the list of attributes (and entity fields) the view shows, in grid order:

  • colId is either an attribute norm_name (for example cc_title or peso) or a top-level entity field (code, sku, status, …).
  • order is the column position. visible: false marks a column the user hid: hidden columns stay in the list so the layout round-trips.
  • To get each attribute's display name, type and families, match colId against norm_name in List attributes. The views API does not resolve attributes itself.
  • A view can reference an attribute deleted after the view was saved. Its colId and any filter on it are still returned as stored, so check them against the attribute list before using them.

Visibility and permissions

  • Owned by one user. Every view has an owner_user_id: the user who created it. Ownership never changes, even when someone else edits a shared view.
  • Visibility decides who can read it. private (the default): only the owner sees it. shared: every member of the brand sees it.
  • Brand-scoped. A view belongs to one brand and is never readable or writable under another brand: its filters reference that brand's attributes.
  • No leaks. A request for another user's private view returns 404, exactly like a view that doesn't exist.

Three roles matter, all evaluated inside the view's brand: the owner (who created the view); a brand manager (a CommerceClarity staff user, the workspace owner, or a brand admin); a contributing member (a brand manager or a brand editor).

ActionPrivate viewShared view
List, fetch, duplicate, set as last-activeOwner onlyEvery brand member
Update, deleteOwner onlyOwner or brand manager
Create as shared, or promote to shared—Contributing member
ReorderOwner onlyNot reorderable through the API

A plain editor can therefore share views and edit the shared views they created, but not a teammate's shared view.

Ordering

Views are returned by position ascending, then created_at. Private and shared views keep separate sequences, both starting at 0:

  • Private: per owner. New private views go to the end; Reorder views rewrites this sequence.
  • Shared: brand-wide, across all owners. New or newly shared views go to the end. There is no API to reorder shared views.

Group the list on visibility before relying on position.