> ## 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 contact views

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

Lists the contact 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/contacts/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/contacts/views:
    get:
      description: >-
        List the contact views of the workspace. Only public views are returned;
        built-in default views are not included.
      operationId: getV1ContactsViews
      parameters: []
      responses:
        '200':
          description: Contact views were successfully retrieved
          content:
            application/json:
              schema:
                type: object
                properties:
                  result:
                    type: array
                    items:
                      $ref: '#/components/schemas/ContactView'
                required:
                  - result
components:
  schemas:
    ContactView:
      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/ContactViewColumn'
          description: The columns of the contacts table.
        filters:
          $ref: '#/components/schemas/ContactViewFilters'
        sort:
          type: array
          items:
            $ref: '#/components/schemas/ContactViewSortDimension'
          description: The sort order of the contacts table.
      required:
        - viewId
        - name
        - visibility
        - ownerId
        - columns
        - filters
        - sort
      description: A saved view of the contacts table.
    ContactViewColumn:
      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 contacts table.
    ContactViewFilters:
      type: object
      properties:
        companyIdIn:
          type: array
          items:
            type: string
          description: >-
            Only include contacts linked to one of these CRM company
            identifiers.
          default: []
        companyIdNotIn:
          type: array
          items:
            type: string
          description: Exclude contacts linked to one of these CRM company identifiers.
          default: []
        externalities:
          type: array
          items:
            type: string
            enum:
              - External
              - Internal
          description: >-
            Only include contacts matching one of these externalities.
            `External` matches contacts outside the workspace domain, `Internal`
            matches contacts within it.
          default: []
      description: >-
        The filters applied by the view to the contacts table. All set filters
        must match.
    ContactViewSortDimension:
      type: object
      properties:
        field:
          type: string
          enum:
            - Name
            - Email
            - Company
            - LastInteraction
          description: The field to sort contacts by.
        order:
          type: string
          enum:
            - Asc
            - Desc
          description: The sort direction.
      required:
        - field
        - order
      description: A sort dimension of the contacts table.
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: X-Claap-Key

````