cURL
curl --request POST \ --url http://base.url.com/targets \ --header 'Content-Type: application/json' \ --header 'x-phishy-api-key: <api-key>' \ --data '{ "first_name": "<string>", "last_name": "<string>", "email": "jsmith@example.com", "position": "<string>", "age": 123, "gender": "Male", "phone_number": "<string>", "groups": [ "<string>" ] }'
{ "name": "<string>", "surname": "<string>", "group": "<string>", "email": "jsmith@example.com", "position": "<string>", "phone": "<string>", "gender": "male", "age": 123 }
Creates a new target
Target to add
The body is of type object.
object
Target created successfully
The response is of type object.