Skip to main content
POST
/
create_target
Add target
curl --request POST \
  --url https://yourdomain.com/create_target \
  --header 'Content-Type: application/json' \
  --cookie admin_cookie= \
  --data '
{
  "address": "<string>",
  "campaign": "<string>",
  "first_name": "<string>",
  "last_name": "<string>",
  "position": "<string>",
  "custom": "<string>"
}
'
{
  "target_id": "<string>",
  "address": "<string>",
  "campaign": "<string>",
  "first_name": "<string>",
  "last_name": "<string>",
  "position": "<string>",
  "custom": "<string>",
  "phished": 123
}

Authorizations

Admin cookie authentication (configurable in config.json)

Body

application/json
address
string
required

Target email address

campaign
string
required

Campaign to add target to

first_name
string

First name

last_name
string

Last name

position
string

Job title

custom
string

Custom field (phone, etc.)

Response

Target created successfully

target_id
string

Unique target identifier

address
string

Target email address

campaign
string

Associated campaign name

first_name
string

Target first name

last_name
string

Target last name

position
string

Target job title/position

custom
string

Custom field (phone number, etc.)

phished
integer

Email sent status (0 = not sent, 1 = sent)