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

# Log custom event

> Log custom/unstructured events



## OpenAPI

````yaml post /events/custom
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/custom:
    post:
      summary: Log custom event
      description: Log custom/unstructured events
      requestBody:
        description: Custom event details
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomEvent'
        required: true
      responses:
        '201':
          description: Custom event logged
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EventResponse'
components:
  schemas:
    CustomEvent:
      required:
        - eventType
        - timestamp
      type: object
      properties:
        eventType:
          description: Custom event type identifier
          type: string
        source:
          description: Source system or application
          type: string
        data:
          description: Custom event payload
          type: object
        metadata:
          description: Additional event metadata
          type: object
        timestamp:
          description: When the event occurred
          type: string
          format: date-time
    EventResponse:
      required:
        - eventId
        - status
      type: object
      properties:
        eventId:
          description: Unique identifier for the logged event
          type: string
        status:
          description: Status of the event logging
          type: string
          enum:
            - success
            - failed
        timestamp:
          description: Time when the event was logged
          type: string
          format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````