---
schema_version: "1"
id: 220abb4be79d2863aa312e47b549b3ff346e7aa531a8d5ba14dd537fa51c8834
title: Lenses List Resource
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/bi_dev_guide_rest/bi_resources_lenses.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_resources_lenses.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 6c11935a2283ac45618a1cd553fe755a107ef9f8307923950d8cdd67a8d53f41
description: Returns a list of Analytics lenses or creates a lens.
---
# Lenses List Resource

Returns a list of Analytics lenses or creates a lens.

## Resource URL

/wave/lenses

## Formats

JSON

## Available Version

36.0

## Available in Postman

To view and test a working example of this resource, see [getLensCollection](https://www.postman.com/salesforce-developers/workspace/salesforce-developers/request/12721794-e5608103-f2d8-44dd-b3fb-c60195df2ec6?action=share&source=copy-link&creator=26106753 "HTML (New Window)") in Postman. For information about how to authenticate your org with Postman, see the [CRM Analytics Rest API Quick Start](https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/crma_rest_api_quick_start.htm "Connect to a Salesforce Trailhead org and authenticate. Then make a request to the CRM Analytics REST API in Postman, and look at the response.").

## Available Components

- Apex — [Wave.Lenses.getLenses()](https://developer.salesforce.com/docs/atlas.en-us.264.0.bi_dev_guide_sdk.meta/bi_dev_guide_sdk/bi_sdk_apex_query.htm)
- Aura — [<wave:sdk> listLenses()](https://developer.salesforce.com/docs/atlas.en-us.264.0.bi_dev_guide_sdk.meta/bi_dev_guide_sdk/bi_sdk_asset.htm)

## HTTP Methods

GET POST

## GET Request Parameters

<table class="featureTable sort_table" summary="">





          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader vertical-align-top " id="d290826e140">Parameter Name</th>

              <th class="featureTableHeader vertical-align-top " id="d290826e143">Type</th>

              <th class="featureTableHeader vertical-align-top " id="d290826e146">Description</th>

              <th class="featureTableHeader vertical-align-top " id="d290826e149">Required or Optional</th>

              <th class="featureTableHeader vertical-align-top " id="d290826e152">Available Version</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d290826e140" data-title="Parameter Name"><samp class="codeph nolang">folderId</samp></td>

              <td class="entry" headers="d290826e143" data-title="Type">ID</td>

              <td class="entry" headers="d290826e146" data-title="Description">Filters the results to include only the contents of a specific folder.
                The id can be the requesting user’s ID for items in the user’s private
                folder.</td>

              <td class="entry" headers="d290826e149" data-title="Required or Optional">Optional</td>

              <td class="entry" headers="d290826e152" data-title="Available Version">36.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d290826e140" data-title="Parameter Name"><samp class="codeph nolang">page</samp></td>

              <td class="entry" headers="d290826e143" data-title="Type">String</td>

              <td class="entry" headers="d290826e146" data-title="Description">A generated token that indicates the view of the lenses to be
                returned.</td>

              <td class="entry" headers="d290826e149" data-title="Required or Optional">Optional</td>

              <td class="entry" headers="d290826e152" data-title="Available Version">36.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d290826e140" data-title="Parameter Name"><samp class="codeph nolang">page​Size</samp></td>

              <td class="entry" headers="d290826e143" data-title="Type">Integer</td>

              <td class="entry" headers="d290826e146" data-title="Description">The number of items to be returned in a single page. Minimum is 1,
                maximum is 200, and default is 25.</td>

              <td class="entry" headers="d290826e149" data-title="Required or Optional">Optional</td>

              <td class="entry" headers="d290826e152" data-title="Available Version">36.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d290826e140" data-title="Parameter Name"><samp class="codeph nolang">q</samp></td>

              <td class="entry" headers="d290826e143" data-title="Type">String</td>

              <td class="entry" headers="d290826e146" data-title="Description">Search terms. Individual terms are separated by spaces. A wildcard is
                automatically appended to the last token in the query string. If the user’s
                search query contains quotation marks or wildcards, those symbols are
                automatically removed from the query string in the URI along with any other
                special characters.</td>

              <td class="entry" headers="d290826e149" data-title="Required or Optional">Optional</td>

              <td class="entry" headers="d290826e152" data-title="Available Version">36.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d290826e140" data-title="Parameter Name"><samp class="codeph nolang">scope</samp></td>

              <td class="entry" headers="d290826e143" data-title="Type">Connect​Wave​Scope​Type​Enum</td>

              <td class="entry" headers="d290826e146" data-title="Description">The type of scope to be applied to the returned collection. Valid values are: <ul class="ul bulletList">
                  <li class="li"><samp class="codeph nolang">Created​By​Me</samp></li>



                  <li class="li">
                    <samp class="codeph nolang">Mru</samp> (Most Recently Used)
                  </li>

                  <li class="li"><samp class="codeph nolang">Shared​With​Me</samp></li>

                </ul>
              </td>

              <td class="entry" headers="d290826e149" data-title="Required or Optional">Optional</td>

              <td class="entry" headers="d290826e152" data-title="Available Version">38.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d290826e140" data-title="Parameter Name"><samp class="codeph nolang">sort</samp></td>

              <td class="entry" headers="d290826e143" data-title="Type">Connect​Wave​Sort​Order​Type​Enum</td>

              <td class="entry" headers="d290826e146" data-title="Description">The type of sort order to be applied to the returned collection. Valid values are: <ul class="ul bulletList">
                  <li class="li"><samp class="codeph nolang">App</samp></li>

                  <li class="li"><samp class="codeph nolang">Created​By</samp></li>

                  <li class="li"><samp class="codeph nolang">Created​Date</samp></li>

                  <li class="li"><samp class="codeph nolang">Last​Modified</samp></li>

                  <li class="li"><samp class="codeph nolang">Last​Modified​By</samp></li>

                  <li class="li">
                    <samp class="codeph nolang">Mru</samp> (Most Recently Used, last viewed date)
                  </li>

                  <li class="li"><samp class="codeph nolang">Name</samp></li>

                  <li class="li"><samp class="codeph nolang">Type</samp></li>

                </ul>
              </td>

              <td class="entry" headers="d290826e149" data-title="Required or Optional">Optional</td>

              <td class="entry" headers="d290826e152" data-title="Available Version">38.0</td>

            </tr>

          </tbody>

        </table>

## GET Response Body

[Lens Collection](https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_responses_lens_collection.htm "A collection of Analytics lenses.")

## POST Response Body

[Lens](https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_responses_lens.htm "Am Analytics lenses.")