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

# Log event

> Create a tracked event (used by payload servers like Humble Chameleon)



## OpenAPI

````yaml /phishmonger-docs/phishmonger-openapi.json post /create_event
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:
  /create_event:
    post:
      tags:
        - Event
      summary: Log event
      description: Create a tracked event (used by payload servers like Humble Chameleon)
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - event_ip
                - target
                - event_type
                - event_data
              properties:
                event_ip:
                  type: string
                  description: Source IP address
                  example: 203.0.113.45
                target:
                  type: string
                  description: Target ID
                  example: a7k2m9
                event_type:
                  type: string
                  description: Event type
                  enum:
                    - CLICK
                    - POST_DATA
                    - COOKIE_DATA
                    - EMAIL_SENT
                    - ERROR
                  example: CLICK
                event_data:
                  type: string
                  description: Event-specific data
                  example: 'User-Agent: Mozilla/5.0...'
      responses:
        '200':
          description: Event created successfully
          content:
            text/plain:
              schema:
                type: string
                example: Event created
        '401':
          description: Not authorized
      security:
        - cookieAuth: []
components:
  securitySchemes:
    cookieAuth:
      type: apiKey
      in: cookie
      name: admin_cookie
      description: Admin cookie authentication (configurable in config.json)

````