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

# Get analytics and insights across all event types

> Get analytics and insights across all event types



## OpenAPI

````yaml get /events/analytics
openapi: 3.0.1
info:
  title: OpenAPI spec for Swift Customer Data Processing and Risk Score
  description: A specification for Swift's customer data processing and risk score APIs
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: http://sandbox.mintlify.com
security:
  - bearerAuth: []
paths:
  /events/analytics:
    get:
      summary: Get analytics and insights across all event types
      description: Get analytics and insights across all event types
      parameters:
        - name: eventType
          in: query
          description: Filter by event type
          schema:
            type: string
        - name: timeframe
          in: query
          description: Analysis timeframe
          schema:
            type: string
            enum:
              - day
              - week
              - month
              - quarter
              - year
      responses:
        '200':
          description: Event analytics response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EventAnalytics'
components:
  schemas:
    EventAnalytics:
      type: object
      properties:
        totalEvents:
          description: Total number of events in the period
          type: integer
        eventsByType:
          description: Breakdown of events by type
          type: object
          additionalProperties:
            type: integer
        timeSeriesData:
          description: Time series of event counts
          type: array
          items:
            type: object
            properties:
              timestamp:
                type: string
                format: date-time
              count:
                type: integer
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````