Skip to main content
POST
/
save_campaign
Create campaign
curl --request POST \
  --url https://yourdomain.com/save_campaign \
  --header 'Content-Type: application/json' \
  --cookie admin_cookie= \
  --data '
{
  "campaign_name": "<string>",
  "mail_data": "<string>",
  "supplied_mail_server": "<string>",
  "supplied_smtp_from": "<string>",
  "supplied_link": "<string>",
  "supplied_id_param": "<string>",
  "supplied_delay": "30",
  "secure_mail": false,
  "supplied_username": "<string>",
  "supplied_password": "<string>",
  "dkim": false,
  "market_id": 0
}
'
"Saved Campaign"

Authorizations

Admin cookie authentication (configurable in config.json)

Body

application/json
campaign_name
string

Campaign name

mail_data
string

Raw email message

supplied_mail_server
string

Mail server hostname

supplied_smtp_from
string

SMTP from address

Phishing link URL

supplied_id_param
string

Tracking parameter name

supplied_delay
string
default:30

Delay between emails in seconds

secure_mail
boolean
default:false

Use TLS

supplied_username
string

SMTP username

supplied_password
string

SMTP password

dkim
boolean
default:false

DKIM sign messages

market_id
number
default:0

Phishmarket template ID

Response

Campaign saved successfully

The response is of type string.

Example:

"Saved Campaign"