cURL
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>" }
Creates a new template with provided details
Details of the new template to create
The body is of type object[].
object[]
Template created successfully
The response is of type object.
object