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

# Export chat analytics data as CSV



## OpenAPI

````yaml /openapi-components.json get /api/v1/chat-analytics/export
openapi: 3.0.0
info:
  title: StudyFetch API
  description: API documentation for StudyFetch
  version: '1.0'
  contact: {}
servers:
  - url: https://studyfetchapi.com
    description: Production API Server
security: []
tags: []
paths:
  /api/v1/chat-analytics/export:
    get:
      tags:
        - Chat Analytics
      summary: Export chat analytics data as CSV
      operationId: exportChatAnalytics
      parameters:
        - name: componentId
          required: false
          in: query
          description: Component ID to analyze
          schema:
            type: string
        - name: organizationId
          required: false
          in: query
          description: Organization ID to filter by
          schema:
            type: string
        - name: userId
          required: false
          in: query
          description: User ID to filter by
          schema:
            type: string
        - name: groupIds
          required: false
          in: query
          description: Group IDs to filter by
          schema:
            type: array
            items:
              type: string
        - name: startDate
          required: false
          in: query
          description: Start date for analysis
          schema:
            type: string
            format: date-time
        - name: endDate
          required: false
          in: query
          description: End date for analysis
          schema:
            type: string
            format: date-time
        - name: modelKey
          required: false
          in: query
          description: AI model to use for analysis
          schema:
            example: gpt-4o-mini
            type: string
      responses:
        '200':
          description: CSV export of chat analytics
          content:
            text/csv:
              schema:
                type: string
                format: binary
      security:
        - x-api-key: []
components:
  securitySchemes:
    x-api-key:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API Key for server-to-server authentication. Resolves to the owning
        organization.

````