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

# List enterprise survey results

> List post-call customer survey results across the enterprise's accessible teams, ordered by creation time ascending for incremental ingestion. Test surveys are excluded. Requires an `enterprise_all_teams` key with the `read:surveys` permission; single-team and portfolio keys receive 403 (use the team-scoped endpoint instead).



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/enterprise/{enterpriseId}/surveys
openapi: 3.1.0
info:
  title: Avoca Enterprise API
  description: >-
    Read-only programmatic access to Avoca data: calls and recordings,
    transcripts, leads, coach evaluations, Simple Scheduler sessions and
    analytics, outbound texting activity, enterprise support tickets, and
    customer survey results.
  version: 1.5.0
servers:
  - url: https://enterprise-api.avoca.ai
security:
  - bearerAuth: []
tags:
  - name: Calls
    description: Call records, recordings, transcripts, and pre-call transfers
  - name: Leads
    description: Unified leads (v0) and the canonical leads feed (v1)
  - name: Teams
    description: Teams accessible to the API key
  - name: Coach
    description: Coach (QA) call evaluations and rubrics
  - name: Scheduler Analytics (v0)
    description: Simple Scheduler analytics — legacy flat endpoints
  - name: Sessions & Bookings
    description: v1 scheduling-widget sessions and completed bookings
  - name: Analytics (v1)
    description: v1 funnel, UTM, service-area, and issue-type analytics
  - name: Outbound Texting
    description: Campaign text and subscription-event feeds for BI ingestion
  - name: Support Tickets
    description: Customer-safe enterprise support-ticket feed
  - name: Surveys
    description: >-
      Post-call customer survey results (CSAT, resolution, feedback) for BI
      ingestion
paths:
  /api/v1/enterprise/{enterpriseId}/surveys:
    get:
      tags:
        - Surveys
      summary: List enterprise survey results
      description: >-
        List post-call customer survey results across the enterprise's
        accessible teams, ordered by creation time ascending for incremental
        ingestion. Test surveys are excluded. Requires an `enterprise_all_teams`
        key with the `read:surveys` permission; single-team and portfolio keys
        receive 403 (use the team-scoped endpoint instead).
      operationId: listEnterpriseSurveyResults
      parameters:
        - name: enterpriseId
          in: path
          required: true
          description: The enterprise ID
          schema:
            type: integer
        - name: team_id
          in: query
          description: Filter to one accessible team
          schema:
            type: integer
            minimum: 1
        - $ref: '#/components/parameters/startDate'
        - $ref: '#/components/parameters/endDate'
        - $ref: '#/components/parameters/includeTestTeams'
        - $ref: '#/components/parameters/cursor'
        - name: limit
          in: query
          description: Results per page (default 50, max 100)
          schema:
            type: integer
            default: 50
            minimum: 1
            maximum: 100
      responses:
        '200':
          description: Paginated survey results across the enterprise
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/SurveyResult'
                  pagination:
                    $ref: '#/components/schemas/CursorPagination'
                  meta:
                    type: object
                    properties:
                      enterprise_id:
                        type: integer
                      team_ids:
                        type: array
                        items:
                          type: integer
        '400':
          $ref: '#/components/responses/BadRequest'
        '403':
          $ref: '#/components/responses/Forbidden'
components:
  parameters:
    startDate:
      name: start_date
      in: query
      description: Only rows on/after this ISO 8601 timestamp
      schema:
        type: string
        format: date-time
    endDate:
      name: end_date
      in: query
      description: Only rows before this ISO 8601 timestamp
      schema:
        type: string
        format: date-time
    includeTestTeams:
      name: include_test_teams
      in: query
      description: >-
        Include designated internal QA/test teams in multi-team aggregations
        (default false)
      schema:
        type: boolean
        default: false
    cursor:
      name: cursor
      in: query
      description: >-
        Opaque pagination cursor from the previous response's
        `pagination.cursor`
      schema:
        type: string
  schemas:
    SurveyResult:
      type: object
      description: >-
        One post-call customer survey result. The caller's phone number and the
        survey transcript are omitted; join on `call_id` against the calls
        endpoints for call-level detail.
      properties:
        id:
          type: string
          format: uuid
        team_id:
          type: integer
        created_at:
          type: string
          format: date-time
        call_id:
          type:
            - string
            - 'null'
          description: >-
            The originating Avoca call; null when the survey could not be
            attributed to a call.
        csat_score:
          type:
            - integer
            - 'null'
          minimum: 1
          maximum: 5
          description: Customer satisfaction score (1–5)
        resolved:
          type:
            - boolean
            - 'null'
          description: Whether the customer said they got what they needed
        feedback:
          type:
            - string
            - 'null'
          description: Free-text customer feedback
    CursorPagination:
      type: object
      properties:
        cursor:
          type:
            - string
            - 'null'
          description: >-
            Pass back as the `cursor` query parameter to fetch the next page;
            `null` on the last page
        has_more:
          type: boolean
        limit:
          type: integer
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error type
        message:
          type: string
          description: Human-readable description (newer endpoints)
      required:
        - error
  responses:
    BadRequest:
      description: Invalid parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: API key lacks the required permission or team access
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key in the format `avoca_<64 hex characters>`

````