> ## Documentation Index
> Fetch the complete documentation index at: https://docs.claap.io/llms.txt
> Use this file to discover all available pages before exploring further.

# List company views

> List the company views of the workspace. Only public views are returned; built-in default views are not included.

Lists the company views of the workspace. Only public views are returned; built-in default views are not included. The endpoint is not paginated as the number of views per workspace is capped.


## OpenAPI

````yaml GET /v1/companies/views
openapi: 3.1.0
info:
  title: Claap API
  description: Development documentation
  version: 0.0.0
servers:
  - url: https://api.claap.io/
security:
  - ApiKey: []
paths:
  /v1/companies/views:
    get:
      description: >-
        List the company views of the workspace. Only public views are returned;
        built-in default views are not included.
      operationId: getV1CompaniesViews
      parameters: []
      responses:
        '200':
          description: Company views were successfully retrieved
          content:
            application/json:
              schema:
                type: object
                properties:
                  result:
                    type: array
                    items:
                      $ref: '#/components/schemas/CompanyView'
                required:
                  - result
components:
  schemas:
    CompanyView:
      type: object
      properties:
        viewId:
          type: string
          description: The view identifier.
        name:
          type: string
          description: The view name.
        visibility:
          type: string
          enum:
            - Public
            - Private
          description: >-
            The view visibility. Only `Public` views are accessible through the
            API.
        icon:
          type: string
          description: The view icon.
        ownerId:
          type: string
          description: Claap user identifier of the view owner.
        columns:
          type: array
          items:
            $ref: '#/components/schemas/CompanyViewColumn'
          description: The columns of the companies table.
        filters:
          $ref: '#/components/schemas/CompanyViewFilters'
        sort:
          type: array
          items:
            $ref: '#/components/schemas/CompanyViewSortDimension'
          description: The sort order of the companies table.
      required:
        - viewId
        - name
        - visibility
        - ownerId
        - columns
        - filters
        - sort
      description: A saved view of the companies table.
    CompanyViewColumn:
      type: object
      properties:
        columnId:
          type: string
          description: The built-in column identifier.
        isHidden:
          type: boolean
          description: Whether the column is hidden in the table.
          default: false
        type:
          type: string
          enum:
            - Default
          description: The column type. Only `Default` is supported today.
          default: Default
        width:
          type: number
          description: The column width, in pixels.
      required:
        - columnId
      description: A column of the companies table.
    CompanyViewFilters:
      type: object
      properties:
        contactIdIn:
          type: array
          items:
            type: string
          description: >-
            Only include companies linked to one of these CRM contact
            identifiers.
          default: []
        contactIdNotIn:
          type: array
          items:
            type: string
          description: Exclude companies linked to one of these CRM contact identifiers.
          default: []
        dealIdIn:
          type: array
          items:
            type: string
          description: Only include companies linked to one of these deal identifiers.
          default: []
        dealIdNotIn:
          type: array
          items:
            type: string
          description: Exclude companies linked to one of these deal identifiers.
          default: []
        dealStatusIn:
          type: array
          items:
            type: string
            enum:
              - Lost
              - Open
              - Won
          description: Only include companies with a deal in one of these statuses.
          default: []
        dealStatusNotIn:
          type: array
          items:
            type: string
            enum:
              - Lost
              - Open
              - Won
          description: Exclude companies with a deal in one of these statuses.
          default: []
        hasInteraction:
          type: boolean
          description: >-
            Only include companies with (true) or without (false) at least one
            interaction.
      description: >-
        The filters applied by the view to the companies table. All set filters
        must match.
    CompanyViewSortDimension:
      type: object
      properties:
        field:
          type: string
          enum:
            - ContactName
            - CreatedAt
            - DealCreatedAt
            - DealName
            - Domain
            - LastInteraction
            - Name
          description: The field to sort companies by.
        order:
          type: string
          enum:
            - Asc
            - Desc
          description: The sort direction.
      required:
        - field
        - order
      description: A sort dimension of the companies table.
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: X-Claap-Key

````