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

# Lister les vues

> Returns the saved contact views you can see: your private views and your team's shared views. `page` below 1 or `size` outside 1..100 returns 400 `INVALID_PAGE_SIZE`.

> [!NOTE]
>
> **Scope requis :** `CRM_READ`

Renvoie les vues que vous pouvez voir : vos vues privées et les vues partagées de votre équipe.

## Paramètres de requête

| Paramètre | Type | Défaut | Description |
| - | - | - | - |
| `page` | integer | `1` | Numéro de page, à partir de 1 |
| `size` | integer | `20` | Éléments par page, de 1 à 100 |

Voir [Pagination](https://help.withallo.com/fr/v2/api-reference/guides/pagination.md).

```json theme={null}
{
  "data": [
    {
      "id": "cvw_2abc",
      "name": "Hot leads",
      "filters": [
        {
          "field": "company",
          "operator": "CONTAINS",
          "value": "Acme"
        }
      ],
      "sort": [
        {
          "field": "created_at",
          "order": "desc"
        }
      ],
      "owner_type": "USER",
      "user_id": "usr_2abc",
      "team_id": null,
      "created_at": "2026-10-23T10:00:00",
      "updated_at": "2026-10-23T10:00:00"
    }
  ],
  "pagination": {
    "page": 1,
    "size": 20,
    "total_count": 1,
    "total_pages": 1,
    "has_more": false
  }
}
```

## Erreurs

| Statut | Code | Quand |
| - | - | - |
| `400` | `INVALID_PAGE_SIZE` | `page` est inférieur à 1 ou `size` n'est pas compris entre 1 et 100. `param` vaut `size` |
| `403` | `API_KEY_INSUFFICIENT_SCOPE` | La clé n'a pas le scope `CRM_READ` |


## OpenAPI

````yaml GET /v2/api/crm/views
openapi: 3.0.3
info:
  title: Allo API
  description: >-
    Allo API provides programmatic access to your Allo account, allowing you to
    manage webhooks, retrieve calls and contacts, and send SMS messages.


    All requests to `/v1/api/**` endpoints automatically go through quota
    checking and scope validation.
  version: 1.0.0
  contact:
    name: Allo Support
servers:
  - url: https://api.withallo.com
    description: Production server
security: []
tags:
  - name: Summary Templates
    description: >-
      Manage call summary templates that control how AI-generated call summaries
      are structured for your team.
  - name: Webhooks
    description: >-
      Manage webhook endpoints to receive real-time notifications about events
      in your Allo account. Each endpoint subscribes to one or more event topics
      and is verified with a signing secret.
  - name: Calls
    description: >-
      Retrieve and search call records with filtering and pagination. Filter
      calls by your Allo phone number.
  - name: Contacts
    description: >-
      Search and retrieve contact information with sorting and pagination.
      Includes engagement level tracking.
  - name: SMS
    description: Send SMS messages to phone numbers using your Allo numbers.
  - name: Phone Numbers
    description: Retrieve information about your Allo phone numbers.
  - name: Analytics
    description: Pre-computed call metrics, team performance, and outbound dial funnel
  - name: CRM
    description: Manage people, companies, and deals in your CRM.
  - name: Notes
    description: >-
      Internal team notes on conversations and CRM people, with @mention
      support. Notes are never visible to the contact.
  - name: Threads
    description: >-
      Team discussion threads attached to a conversation item (call, SMS, or
      conversation note). One thread per item.
  - name: AI Receptionist
    description: >-
      Read and write the AI receptionist configuration of a phone line: business
      details, voice, prompt, capabilities, business hours, transfer rules,
      scheduling calendars and knowledge sources.
paths:
  /v2/api/crm/views:
    get:
      tags:
        - CRM
      summary: List contact views
      description: >-
        Returns the saved contact views you can see: your private views and your
        team's shared views. `page` below 1 or `size` outside 1..100 returns 400
        `INVALID_PAGE_SIZE`.
      operationId: listCrmViews
      parameters:
        - $ref: '#/components/parameters/Page'
        - $ref: '#/components/parameters/Size'
      responses:
        '200':
          description: List of views
          content:
            application/json:
              schema:
                allOf:
                  - type: object
                    properties:
                      data:
                        type: array
                        items:
                          $ref: '#/components/schemas/CrmView'
                  - $ref: '#/components/schemas/PaginatedResponse'
              example:
                data:
                  - id: cvw_2abc
                    name: Hot leads
                    filters:
                      - field: company
                        operator: CONTAINS
                        value: Acme
                    sort:
                      - field: created_at
                        order: desc
                    owner_type: USER
                    user_id: usr_2abc
                    team_id: null
                    created_at: '2026-10-23T10:00:00'
                    updated_at: '2026-10-23T10:00:00'
                pagination:
                  page: 1
                  size: 20
                  total_count: 1
                  total_pages: 1
                  has_more: false
        '400':
          $ref: '#/components/responses/ApiValidationError'
        '401':
          $ref: '#/components/responses/ApiUnauthorized'
        '403':
          $ref: '#/components/responses/ApiForbidden'
        '429':
          $ref: '#/components/responses/ApiRateLimited'
      security:
        - ApiKeyAuth: []
components:
  parameters:
    Page:
      name: page
      in: query
      description: Page number (1-indexed)
      schema:
        type: integer
        default: 1
        minimum: 1
    Size:
      name: size
      in: query
      description: Results per page
      schema:
        type: integer
        default: 20
        minimum: 1
        maximum: 100
  schemas:
    CrmView:
      type: object
      description: >-
        A saved view: a named filter and sort over people. Views created in the
        Allo app and with the API are the same objects.
      properties:
        id:
          type: string
          description: Public ID of the view
          example: cvw_2abc
        name:
          type: string
          example: Hot leads
        filters:
          type: array
          items:
            $ref: '#/components/schemas/CrmViewFilter'
        sort:
          type: array
          items:
            $ref: '#/components/schemas/CrmViewSort'
        owner_type:
          type: string
          enum:
            - USER
            - TEAM
          description: >-
            `USER` is private to the API key's user. `TEAM` is shared with the
            user's team.
          example: USER
        user_id:
          type: string
          nullable: true
          description: ID of the user who owns a `USER` view
          example: usr_2abc
        team_id:
          type: string
          nullable: true
          description: ID of the team a `TEAM` view belongs to
        created_at:
          type: string
          example: '2026-10-23T10:00:00'
        updated_at:
          type: string
          example: '2026-10-23T10:00:00'
    PaginatedResponse:
      type: object
      properties:
        pagination:
          $ref: '#/components/schemas/Pagination'
    CrmViewFilter:
      type: object
      required:
        - field
        - operator
        - value
      description: One condition of a view. All conditions of a view are combined with AND.
      properties:
        field:
          type: string
          description: >-
            A built-in person field (`name`, `company`, `job_title`, `emails`,
            `phone_numbers`, `website`, `addresses`, `created_at`, `updated_at`,
            `last_activity`, `activity_history`, `sms_content` (only when the
            team has SMS)) or the `key` of a custom field from `GET
            /v2/api/crm/attributes`. An unknown field returns 400
            `INVALID_FILTER_FIELD`
          example: company
        operator:
          type: string
          enum:
            - IS
            - IS_NOT
            - CONTAINS
            - NOT_CONTAINS
            - EMPTY
            - NOT_EMPTY
            - STARTS_WITH
            - ENDS_WITH
            - BEFORE
            - AFTER
            - DATE_EQUALS
            - GREATER_THAN
            - GREATER_THAN_OR_EQUAL
            - LESS_THAN
            - LESS_THAN_OR_EQUAL
            - HAS
          description: >-
            Comparison operator. It must match the type of the field, otherwise
            the request returns 400 `INVALID_FILTER_OPERATOR`
          example: CONTAINS
        value:
          type: string
          description: >-
            Value to compare to. It must be readable for the type of the field,
            otherwise the request returns 400 `INVALID_FILTER_VALUE`: numeric
            for a number field, an ISO 8601 date such as `2026-01-31` or
            date-time such as `2026-01-31T00:00:00Z` for a date field. Ignored
            for `EMPTY` and `NOT_EMPTY`
          example: Acme
    CrmViewSort:
      type: object
      required:
        - field
        - order
      properties:
        field:
          type: string
          description: >-
            A sortable built-in person field (`name`, `company`, `job_title`,
            `website`, `created_at`, `updated_at`, `last_activity`) or the `key`
            of a sortable custom field from `GET /v2/api/crm/attributes`
          example: created_at
        order:
          type: string
          enum:
            - asc
            - desc
          example: desc
    Pagination:
      type: object
      properties:
        page:
          type: integer
        size:
          type: integer
        total_count:
          type: integer
        total_pages:
          type: integer
        has_more:
          type: boolean
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
            code:
              type: string
            message:
              type: string
            retryable:
              type: boolean
            request_id:
              type: string
            retry_after_seconds:
              type: integer
              nullable: true
  responses:
    ApiValidationError:
      description: Invalid request parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    ApiUnauthorized:
      description: Invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    ApiForbidden:
      description: API key lacks the required scope or access to the resource
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    ApiRateLimited:
      description: Rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.