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

# List campaign targets

> Get all targets for a campaign



## OpenAPI

````yaml /phishmonger-docs/phishmonger-openapi.json get /get_targets
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_targets:
    get:
      tags:
        - Target
      summary: List campaign targets
      description: Get all targets for a campaign
      parameters:
        - name: campaign
          in: query
          required: true
          schema:
            type: string
          description: Campaign name
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Target'
        '401':
          description: Not authorized
      security:
        - cookieAuth: []
components:
  schemas:
    Target:
      type: object
      properties:
        target_id:
          type: string
          description: Unique target identifier
        address:
          type: string
          description: Target email address
        campaign:
          type: string
          description: Associated campaign name
        first_name:
          type: string
          description: Target first name
        last_name:
          type: string
          description: Target last name
        position:
          type: string
          description: Target job title/position
        custom:
          type: string
          description: Custom field (phone number, etc.)
        phished:
          type: integer
          description: Email sent status (0 = not sent, 1 = sent)
  securitySchemes:
    cookieAuth:
      type: apiKey
      in: cookie
      name: admin_cookie
      description: Admin cookie authentication (configurable in config.json)

````