> ## 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.

# Retrieve chat events

> Retrieve chat events



## OpenAPI

````yaml get /events/chat
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/chat:
    get:
      tags:
        - Support Activity
      summary: Retrieve chat events
      description: Retrieve chat events
      parameters:
        - name: customerId
          in: query
          description: Filter by customer ID
          schema:
            type: string
      responses:
        '200':
          description: List of chat events
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ChatEvent'
components:
  schemas:
    ChatEvent:
      required:
        - sessionId
        - userId
        - messageType
        - timestamp
      type: object
      properties:
        sessionId:
          description: Unique identifier for the chat session
          type: string
        userId:
          description: ID of the user in the chat
          type: string
        messageType:
          description: Type of chat message
          type: string
          enum:
            - text
            - file
            - system
        content:
          description: Content of the message
          type: string
        timestamp:
          description: When the message was sent
          type: string
          format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````