POST
/
templates
curl --request POST \
  --url http://base.url.com/templates \
  --header 'Content-Type: application/json' \
  --header 'x-phishy-api-key: <api-key>' \
  --data '[
  {
    "name": "<string>",
    "subject": "<string>",
    "text": "<string>",
    "html": "<string>",
    "is_check_email_opened": false,
    "is_check_clicked_link": false,
    "is_check_submitted_data": false,
    "is_check_file_downloaded": false,
    "is_check_file_executed": false,
    "addAttachment": false,
    "attachment_in_body": false,
    "attachmentRedirectToPhished": false,
    "attachment_name": "<string>"
  }
]'
{
  "id": "<string>",
  "name": "<string>",
  "content": "<string>"
}

Authorizations

x-phishy-api-key
string
header
required

Body

application/json · object[]

Details of the new template to create

The body is of type object[].

Response

200
application/json

Template created successfully

The response is of type object.