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

# List event log

> Returns a paginated, filterable log of all events for the organization. `email.sent` entries include a top-level `recipientEmail` field resolved from the delivery attempt; event payloads themselves carry identifiers only, never email addresses. Entries older than 90 days stay in the log with `archivedAt` set and their payloads reduced to identifier and classification fields; question and answer text is removed at that point.



## OpenAPI

````yaml /openapi.json get /api/notifications/events
openapi: 3.0.0
info:
  title: AI Presentations API
  version: 1.0.0
  description: >-
    REST API for AI Presentations — an AI-powered presentation platform with
    narrated slides, live Q&A, and deck management.


    **Authentication**: Most endpoints require a session cookie obtained from
    `POST /api/auth/login`. Presentation playback endpoints (`/api/qa`,
    `/api/narration/*`) also accept a `presentationId` for unauthenticated
    viewer access.
  contact:
    name: Demand IQ
    url: https://demand-iq.com
servers:
  - url: https://app.demand-iq.com
    description: Production
  - url: http://localhost:3000
    description: Local development
security: []
tags:
  - name: Decks
    description: Manage presentation decks
  - name: Slides
    description: Manage slides within a deck
  - name: FAQs
    description: Manage pre-built Q&A pairs
  - name: Branding
    description: Colors, logo, and call-to-action configuration
  - name: Q&A
    description: Live question answering and Q&A settings
  - name: Narration
    description: Text-to-speech synthesis
  - name: Presentations
    description: Create and manage personalized presentation instances
  - name: Generation
    description: AI-powered content generation from slide images
  - name: Images
    description: Image upload and management
  - name: Voices
    description: Available TTS voices
  - name: Utility
    description: Health check and diagnostics
  - name: Authentication
    description: Session-based login, logout, and identity
  - name: Company
    description: Organization contact info and knowledge base
  - name: Notifications
    description: Event subscriptions and delivery log
  - name: Contracts
    description: Contract template import and e-signature
  - name: Fonts
    description: Available Google Fonts for branding
  - name: Roof Measurements
    description: Request and track automated roof measurements
  - name: Actions
    description: Voice/text command detection for presentation control
  - name: Appointments
    description: Appointment scheduling for presentation viewers
  - name: Activity
    description: Recent presentation activity feed
  - name: Onboarding
    description: >-
      Per-user product onboarding milestones (ENG-641). Milestone endpoints are
      idempotent and are called by the app UI — they should not be treated as
      tenant-integration surface.
paths:
  /api/notifications/events:
    get:
      tags:
        - Notifications
      summary: List event log
      description: >-
        Returns a paginated, filterable log of all events for the organization.
        `email.sent` entries include a top-level `recipientEmail` field resolved
        from the delivery attempt; event payloads themselves carry identifiers
        only, never email addresses. Entries older than 90 days stay in the log
        with `archivedAt` set and their payloads reduced to identifier and
        classification fields; question and answer text is removed at that
        point.
      parameters:
        - in: query
          name: eventType
          schema:
            type: string
          description: Filter by event type
        - in: query
          name: aggregateType
          schema:
            type: string
        - in: query
          name: aggregateId
          schema:
            type: string
        - in: query
          name: since
          schema:
            type: string
            format: date-time
        - in: query
          name: until
          schema:
            type: string
            format: date-time
        - in: query
          name: limit
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 50
        - in: query
          name: offset
          schema:
            type: integer
            default: 0
      responses:
        '200':
          description: Event log
          content:
            application/json:
              schema:
                type: object
                properties:
                  events:
                    type: array
                    items:
                      $ref: '#/components/schemas/EventLogEntry'
                  pagination:
                    type: object
                    properties:
                      total:
                        type: integer
                      limit:
                        type: integer
                      offset:
                        type: integer
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - sessionCookie: []
components:
  schemas:
    EventLogEntry:
      type: object
      properties:
        id:
          type: string
          format: uuid
        eventType:
          type: string
        aggregateType:
          type: string
        aggregateId:
          type: string
        payload:
          type: object
          description: >-
            Event payload. Carries identifiers (e.g. `presentationId`,
            `deliveryId`), never contact details such as email addresses. On
            entries with `archivedAt` set, the payload is reduced to identifier
            and classification fields; question and answer text is removed.
        recipientEmail:
          type: string
          nullable: true
          description: >-
            Present on `email.sent` entries only. The recipient of that
            delivery, resolved from the delivery attempt referenced by the
            payload's `deliveryId`. `null` when the delivery attempt has no
            recipient on record.
        occurredAt:
          type: string
          format: date-time
        archivedAt:
          type: string
          format: date-time
          nullable: true
          description: >-
            Set when the entry has aged past the 90-day retention window. The
            entry stays in the log, but its payload keeps identifier and
            classification fields only. For `question.asked` and
            `question.escalated`, the question and answer text is removed.
            `null` for entries still inside the window.
      required:
        - id
        - eventType
        - aggregateType
        - aggregateId
        - occurredAt
    Error:
      type: object
      properties:
        error:
          type: string
      required:
        - error
  securitySchemes:
    sessionCookie:
      type: apiKey
      in: cookie
      name: session
      description: Session cookie obtained from `POST /api/auth/login`.

````