List the saved views you can see in your active brand. This playground calls the live API with your account credentials.
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.
brand_id to target another brand you are a member of.
GET https://api.commerceclarity.com/api/2026-05/entities/viewsReturns 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'.
| Parameter | Type | Required | Description |
|---|---|---|---|
brand_id | string | Optional | List the views of this brand instead of the active one. You must be a member of it. |
curl "https://api.commerceclarity.com/api/2026-05/entities/views" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
{
"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"
}
]
}Every views endpoint that returns a view uses this shape.
| Field | Type | Description |
|---|---|---|
_id | string | View id. |
brand_id | string | Brand the view belongs to. |
workspace_id | string | Workspace of the brand. |
owner_user_id | string | User who created the view. |
owner_email | string | Email of the owner, useful to show who created a shared view. |
name | string | Display name, unique among the views the caller can see in the brand. |
visibility | string | private or shared. See Visibility and permissions. |
position | integer | Manual sort order, ascending. See Ordering. |
definition.filters | object|null | The filter tree, in the same shape the entities query takes. Stored and returned as is. |
definition.sort | array | Sort spec: [{ "field": "...", "dir": "asc"|"desc" }], where field is a standard field or attr.<norm_name>. |
definition.columns | array | Column layout: { colId, visible, width?, pinned?, order } per column. See Columns and attributes. |
created_at / updated_at | string | ISO 8601 timestamps. |
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.colId against norm_name in List attributes. The views API does not resolve attributes itself.colId and any filter on it are still returned as stored, so check them against the attribute list before using them.owner_user_id: the user who created it. Ownership never changes, even when someone else edits a shared view.private (the default): only the owner sees it. shared: every member of the brand sees it.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).
| Action | Private view | Shared view |
|---|---|---|
| List, fetch, duplicate, set as last-active | Owner only | Every brand member |
| Update, delete | Owner only | Owner or brand manager |
| Create as shared, or promote to shared | — | Contributing member |
| Reorder | Owner only | Not 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.
Views are returned by position ascending, then created_at. Private and shared views keep separate sequences, both starting at 0:
Group the list on visibility before relying on position.