Skip to content
Go to Micro

List saved views for an owner

GET/v2/prism/{teamId}/{objectType}/views

Returns saved view bundles for the path team. Pass ?list_id= to scope to a list (CRM) instead. Cursor pagination matches other Prism list endpoints.

Path ParametersExpand Collapse
teamId: optional string
formatuuid
objectType: "comment" or "action" or "deal" or 5 more
One of the following:
"comment"
"action"
"deal"
"engagement"
"document"
"event"
"identity"
"organization"
Query ParametersExpand Collapse
cursor: optional string

Opaque pagination cursor (from a prior response’s next_cursor); supersedes page/limit when present.

limit: optional number

Maximum items per page (<= 50; defaults to 50).

minimum0
maximum50
list_id: optional string

List (CRM) id to scope the listing to. When omitted, views owned by the path team are returned.

formatuuid
page: optional number

1-based page number. Prefer cursor.

minimum1
ReturnsExpand Collapse
data: array of object { name, view_type, id, 18 more }
name: string
view_type: string
id: optional string
formatuuid
aggregation_prop_def_id: optional string
formatuuid
aggregation_type: optional string
column_layout: optional map[unknown]
combinator: optional "AND" or "OR"
One of the following:
"AND"
"OR"
created_at: optional string
filter: optional array of map[unknown]

Each entry is { slug: { comparator: value } }

group_by: optional string

Property slug to group by

group_hidden_option_ids: optional array of unknown or unknown
One of the following:
array of unknown
unknown
group_hide_empty: optional boolean
group_sort: optional string
icon: optional string
list_id: optional string
formatuuid
select: optional array of string

Property slugs (dot-paths permitted for refs)

sort: optional array of map[unknown]

Each entry is { slug: ‘asc’ | ‘desc’ }

sort_order: optional number
team_id: optional string
formatuuid
updated_at: optional string
user_id: optional string
has_more: boolean

True if more views exist beyond this page.

next_cursor: optional string

Opaque cursor for the next page; null when has_more is false.

List saved views for an owner

curl https://developers.micro.so/v2/prism/$TEAM_ID/$OBJECT_TYPE/views \
    -H "x-api-key: $MICRO_API_KEY"
{
  "data": [
    {
      "name": "name",
      "view_type": "view_type",
      "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
      "aggregation_prop_def_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
      "aggregation_type": "aggregation_type",
      "column_layout": {
        "foo": "bar"
      },
      "combinator": "AND",
      "created_at": "created_at",
      "filter": [
        {
          "foo": "bar"
        }
      ],
      "group_by": "group_by",
      "group_hidden_option_ids": [
        {}
      ],
      "group_hide_empty": true,
      "group_sort": "group_sort",
      "icon": "icon",
      "list_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
      "select": [
        "string"
      ],
      "sort": [
        {
          "foo": "bar"
        }
      ],
      "sort_order": 0,
      "team_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
      "updated_at": "updated_at",
      "user_id": "user_id"
    }
  ],
  "has_more": true,
  "next_cursor": "next_cursor"
}
Returns Examples
{
  "data": [
    {
      "name": "name",
      "view_type": "view_type",
      "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
      "aggregation_prop_def_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
      "aggregation_type": "aggregation_type",
      "column_layout": {
        "foo": "bar"
      },
      "combinator": "AND",
      "created_at": "created_at",
      "filter": [
        {
          "foo": "bar"
        }
      ],
      "group_by": "group_by",
      "group_hidden_option_ids": [
        {}
      ],
      "group_hide_empty": true,
      "group_sort": "group_sort",
      "icon": "icon",
      "list_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
      "select": [
        "string"
      ],
      "sort": [
        {
          "foo": "bar"
        }
      ],
      "sort_order": 0,
      "team_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
      "updated_at": "updated_at",
      "user_id": "user_id"
    }
  ],
  "has_more": true,
  "next_cursor": "next_cursor"
}