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

# List integration surveys

> List metadata-only surveys on the upstream platform for this integration. Pagination is always cursor-based (`cursor` + `limit`); Program adapters translate provider-native offset or cursor schemes into opaque `pagination.next_cursor` values. Platforms that cannot catalog-list surveys return 501; look up a survey by id instead.



## OpenAPI

````yaml /openapi/program.openapi.json get /integrations/{integrationId}/surveys
openapi: 3.1.0
info:
  title: Questra Program API
  version: 0.0.1
  description: >-
    REST API for the Questra Program product. Browser users authenticate through
    Questra Auth SSO; automation uses workspace-scoped API keys (`Authorization:
    Bearer qpk_live_…`). API keys carry scopes enforced before handlers.
    Outbound webhooks follow Standard Webhooks (at-least-once delivery;
    consumers must be idempotent).
servers:
  - url: /v1
    description: Program API base path
security: []
paths:
  /integrations/{integrationId}/surveys:
    get:
      tags:
        - Integration surveys
      summary: List integration surveys
      description: >-
        List metadata-only surveys on the upstream platform for this
        integration. Pagination is always cursor-based (`cursor` + `limit`);
        Program adapters translate provider-native offset or cursor schemes into
        opaque `pagination.next_cursor` values. Platforms that cannot
        catalog-list surveys return 501; look up a survey by id instead.
      parameters:
        - schema:
            type: string
            minLength: 1
            example: community-decipher
          required: true
          name: integrationId
          in: path
        - schema:
            type: integer
            exclusiveMinimum: 0
            maximum: 100
            description: Page size (default 25, max 100).
          required: false
          description: Page size (default 25, max 100).
          name: limit
          in: query
        - schema:
            type: string
            description: >-
              Opaque pagination cursor from a previous response
              `pagination.next_cursor`. Do not invent or parse this value.
          required: false
          description: >-
            Opaque pagination cursor from a previous response
            `pagination.next_cursor`. Do not invent or parse this value.
          name: cursor
          in: query
        - schema:
            type: string
            description: >-
              Case-insensitive name search (provider search semantics may vary;
              Program normalizes to name contains).
          required: false
          description: >-
            Case-insensitive name search (provider search semantics may vary;
            Program normalizes to name contains).
          name: q
          in: query
        - schema:
            allOf:
              - $ref: '#/components/schemas/IntegrationSurveyStatus'
              - description: Filter by normalized status.
          required: false
          description: Filter by normalized status.
          name: status
          in: query
      responses:
        '200':
          description: Paginated survey list
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IntegrationSurveyList'
        '400':
          description: Validation error (e.g. invalid cursor)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorBody'
        '404':
          description: Integration not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '501':
          description: Upstream platform does not support catalog listing
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
components:
  schemas:
    IntegrationSurveyStatus:
      type: string
      enum:
        - draft
        - test
        - live
        - active
        - paused
        - closed
        - archived
    IntegrationSurveyList:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/IntegrationSurvey'
        pagination:
          $ref: '#/components/schemas/CursorPagination'
      required:
        - data
        - pagination
    ValidationErrorBody:
      type: object
      properties:
        error:
          type: string
          enum:
            - validation_error
        message:
          type: string
        details: {}
      required:
        - error
    ErrorBody:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
        resource:
          type: string
        slug:
          type: string
        file_id:
          type: string
        endpoint_id:
          type: string
        event_id:
          type: string
        delivery_id:
          type: string
        api_key_id:
          type: string
        integration_id:
          type: string
        audit_id:
          type: string
        status:
          type: string
        details: {}
        question_ids:
          type: array
          items:
            type: string
        survey_ids:
          type: array
          items:
            type: string
        revisions:
          type: array
          items:
            type: number
      required:
        - error
    IntegrationSurvey:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          example: SV_9K2mPqLx1aBcDeF
          description: >-
            Provider's unique survey id. Opaque string — format varies by
            platform (UUID, SV_*, path segments, etc.).
        name:
          type: string
          example: Brand Tracker Q3
        status:
          $ref: '#/components/schemas/IntegrationSurveyStatus'
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
        - id
        - name
        - status
        - created_at
        - updated_at
    CursorPagination:
      type: object
      properties:
        next_cursor:
          type:
            - string
            - 'null'
          description: >-
            Opaque cursor for the next page. Pass as `cursor` on the subsequent
            list request. Null when there is no next page.
        has_more:
          type: boolean
          description: True when another page is available via `next_cursor`.
      required:
        - next_cursor
        - has_more

````