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

# Get Shareable Chat Analytics



## OpenAPI

````yaml /openapi.json get /v1/shareable-chats/{chat_id}/analytics
openapi: 3.1.0
info:
  title: Ontora API
  description: >-
    Ontora's public API. Covers interview campaigns, transcripts, synthesis
    reports, graph queries, webhooks, and workspace management. 


    **Authentication**: endpoints accept either a Clerk JWT (`Authorization:
    Bearer <token>`) or a workspace API key (`X-API-Key: ont_...`). Workspace
    keys are managed via `/v1/api-keys`.
  version: 0.1.0
servers: []
security:
  - ClerkJWT: []
  - WorkspaceApiKey: []
tags:
  - name: interviews
    description: Campaign CRUD, lifecycle, contacts, question sets.
  - name: agent-templates
    description: Curated use-case templates for creating opinionated interview campaigns.
  - name: campaign-insights
    description: Synthesis outputs — cartography, roadmap, personas, conversations.
  - name: interview-query
    description: Graph RAG query over campaign data.
  - name: campaign-reports
    description: Versioned synthesis Reports — manual regenerate, version history.
  - name: interview-export
    description: Markdown / ZIP exports of transcripts and reports.
  - name: api-keys
    description: Manage workspace-scoped API keys for programmatic access.
  - name: webhook-endpoints
    description: Outbound webhook endpoints for automation.
  - name: booking
    description: Public self-scheduling endpoints for interview participants.
  - name: join
    description: Public QR-code / share-link self-registration for campaign participants.
  - name: workspaces
    description: Workspace and membership management.
  - name: vaults
    description: Context vault management.
paths:
  /v1/shareable-chats/{chat_id}/analytics:
    get:
      tags:
        - shareable-chats
      summary: Get Shareable Chat Analytics
      operationId: get_shareable_chat_analytics_v1_shareable_chats__chat_id__analytics_get
      parameters:
        - name: chat_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Chat Id
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 200
            minimum: 1
            default: 50
            title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ShareableChatAnalyticsOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    ShareableChatAnalyticsOut:
      properties:
        usage_summary:
          $ref: '#/components/schemas/ShareableChatUsageSummaryOut'
        recent_activity:
          items:
            $ref: '#/components/schemas/ShareableChatActivityOut'
          type: array
          title: Recent Activity
        daily_activity:
          items:
            $ref: '#/components/schemas/ShareableChatDailyActivityOut'
          type: array
          title: Daily Activity
        recipient_breakdown:
          items:
            $ref: '#/components/schemas/ShareableChatRecipientBreakdownOut'
          type: array
          title: Recipient Breakdown
      type: object
      required:
        - usage_summary
        - recent_activity
        - daily_activity
        - recipient_breakdown
      title: ShareableChatAnalyticsOut
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ShareableChatUsageSummaryOut:
      properties:
        session_count:
          type: integer
          title: Session Count
          default: 0
        message_count:
          type: integer
          title: Message Count
          default: 0
        unique_user_count:
          type: integer
          title: Unique User Count
          default: 0
        last_used_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Used At
        last_used_by:
          anyOf:
            - $ref: '#/components/schemas/LastUsedByOut'
            - type: 'null'
      type: object
      title: ShareableChatUsageSummaryOut
    ShareableChatActivityOut:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        type:
          type: string
          enum:
            - message
            - mcp_tool
          title: Type
        occurred_at:
          type: string
          format: date-time
          title: Occurred At
        recipient:
          $ref: '#/components/schemas/ActivityRecipientOut'
        session_id:
          type: string
          format: uuid
          title: Session Id
      type: object
      required:
        - id
        - type
        - occurred_at
        - recipient
        - session_id
      title: ShareableChatActivityOut
    ShareableChatDailyActivityOut:
      properties:
        date:
          type: string
          format: date
          title: Date
        messages:
          type: integer
          title: Messages
        mcp_tools:
          type: integer
          title: Mcp Tools
        total:
          type: integer
          title: Total
        active_recipients:
          type: integer
          title: Active Recipients
      type: object
      required:
        - date
        - messages
        - mcp_tools
        - total
        - active_recipients
      title: ShareableChatDailyActivityOut
    ShareableChatRecipientBreakdownOut:
      properties:
        recipient:
          $ref: '#/components/schemas/ActivityRecipientOut'
        messages:
          type: integer
          title: Messages
        mcp_tools:
          type: integer
          title: Mcp Tools
        total:
          type: integer
          title: Total
        last_used_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Used At
      type: object
      required:
        - recipient
        - messages
        - mcp_tools
        - total
      title: ShareableChatRecipientBreakdownOut
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    LastUsedByOut:
      properties:
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        email:
          type: string
          title: Email
      type: object
      required:
        - email
      title: LastUsedByOut
    ActivityRecipientOut:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        email:
          type: string
          title: Email
      type: object
      required:
        - id
        - email
      title: ActivityRecipientOut
  securitySchemes:
    ClerkJWT:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Clerk-issued RS256 JWT.
    WorkspaceApiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'Workspace-scoped API key (prefix: `ont_`).'
    HTTPBearer:
      type: http
      scheme: bearer

````