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

# Add target

> Add a target to a campaign



## OpenAPI

````yaml /phishmonger-docs/phishmonger-openapi.json post /create_target
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_target:
    post:
      tags:
        - Target
      summary: Add target
      description: Add a target to a campaign
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - address
                - campaign
              properties:
                address:
                  type: string
                  description: Target email address
                campaign:
                  type: string
                  description: Campaign to add target to
                first_name:
                  type: string
                  description: First name
                last_name:
                  type: string
                  description: Last name
                position:
                  type: string
                  description: Job title
                custom:
                  type: string
                  description: Custom field (phone, etc.)
      responses:
        '200':
          description: Target created successfully
          content:
            application/json:
              schema:
                $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)

````