---
title: "Retrieve all views"
method: GET
path: "/views"
tags: ["Views"]
---

# Retrieve all views

`GET /views`

## Query parameters

- `section` string, required
- `fields` string
- `limit` number
- `skip` number

## Response `200`

Views Array

- object[]
  - `_id` string — Unique id
  - `accountId` string — Id of the user owning this view
  - `title` string — Title for the view
  - `filters` object[]
    - `field` string, required — Subject of the filter
    - `operator` string, required — Enhanced MongoDB comparison operator: $eq, $not, $contains, $notcontains, $gt, $lt, $between
    - `value` string, required — Value to filter by.
    - `context` string — Optional preprocessing. Options are now, createdAt, confirmedAt, canceledAt, alteredAt. When given, the date in value is relative to the context.
  - `fields` string — Selection of fields, separated by space
  - `sort` string — ascending sort , use - to descending sort
  - `createdAt` string
  - `updatedAt` string
  - `scheduledEmails` object[]
    - `days` unknown[] — Array of numbers 0-6, number per day
      - unknown
    - `recipient` string — Emails separated by comma
    - `hour` number, required — when the report should be sent
  - `shares` object[]
    - `contactId` string — Required Contact ID to share with

---

[API](https://skmtc.net/guesty/apis/guesty-open-api.md) · [All operations](https://skmtc.net/guesty/apis/guesty-open-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/guesty/guesty-open-api/revisions/7c62644070f2/schema)
