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

# Search events

> Search events with filters



## OpenAPI

````yaml /phishmonger-docs/phishmonger-openapi.json get /get_search_events
openapi: 3.0.0
info:
  title: Phishmonger API
  version: 2.0.0
  description: >-
    RESTful API for programmatic access to Phishmonger phishing platform
    functionality
servers:
  - url: https://yourdomain.com
    description: Phishmonger server
security:
  - cookieAuth: []
tags:
  - name: Template
    description: Email template management
  - name: Campaign
    description: Phishing campaign operations
  - name: Target
    description: Target recipient management
  - name: Event
    description: Event tracking and analytics
paths:
  /get_search_events:
    get:
      tags:
        - Event
      summary: Search events
      description: Search events with filters
      parameters:
        - name: campaign
          in: query
          required: true
          schema:
            type: string
          description: Campaign to search
        - name: timestamp
          in: query
          schema:
            type: string
          description: Timestamp filter
        - name: event_type
          in: query
          schema:
            type: string
          description: Event type filter
        - name: source
          in: query
          schema:
            type: string
          description: Source IP filter
        - name: target
          in: query
          schema:
            type: string
          description: Target ID filter
        - name: data
          in: query
          schema:
            type: string
          description: Event data search term
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Event'
        '401':
          description: Not authorized
      security:
        - cookieAuth: []
components:
  schemas:
    Event:
      type: object
      properties:
        event_timestamp:
          type: integer
          description: Unix timestamp of event
        event_ip:
          type: string
          description: Source IP address
        campaign:
          type: string
          description: Associated campaign name
        target:
          type: string
          description: Target ID
        event_type:
          type: string
          description: Event type (EMAIL_SENT, CLICK, POST_DATA, COOKIE_DATA, ERROR)
        event_data:
          type: string
          description: Event-specific data
        ignore:
          type: integer
          description: Ignore status for filtering (0 = show, 1 = hidden)
  securitySchemes:
    cookieAuth:
      type: apiKey
      in: cookie
      name: admin_cookie
      description: Admin cookie authentication (configurable in config.json)

````