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

# Get target events

> Retrieve all events for a specific target



## OpenAPI

````yaml /phishmonger-docs/phishmonger-openapi.json get /get_target_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_target_events:
    get:
      tags:
        - Event
      summary: Get target events
      description: Retrieve all events for a specific target
      parameters:
        - name: target_id
          in: query
          required: true
          schema:
            type: string
          description: Unique target ID
      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)

````