> ## 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.

# Get contact view details

> Retrieve a contact view.

Private views cannot be accessed through the API and are reported as not found.


## OpenAPI

````yaml GET /v1/contacts/views/{viewId}
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/{viewId}:
    get:
      description: Retrieve a contact view.
      operationId: getV1ContactsViewsByViewId
      parameters:
        - in: path
          name: viewId
          schema:
            type: string
            description: Contact view identifier
          required: true
      responses:
        '200':
          description: Contact view was successfully retrieved
          content:
            application/json:
              schema:
                type: object
                properties:
                  result:
                    $ref: '#/components/schemas/ContactView'
                required:
                  - result
        '404':
          description: >-
            Contact view was not found. Note that private views cannot be
            accessed through the API and are reported as not found.
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

````