Authorizations
Body
application/json
Target to add
The body is of type object
.
Response
Target created successfully
The response is of type object
.
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": "[email protected]",
"position": "<string>",
"age": 123,
"gender": "Male",
"phone_number": "<string>",
"groups": [
"<string>"
]
}'
{
"name": "<string>",
"surname": "<string>",
"group": "<string>",
"email": "[email protected]",
"position": "<string>",
"phone": "<string>",
"gender": "male",
"age": 123
}
Creates a new target
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": "[email protected]",
"position": "<string>",
"age": 123,
"gender": "Male",
"phone_number": "<string>",
"groups": [
"<string>"
]
}'
{
"name": "<string>",
"surname": "<string>",
"group": "<string>",
"email": "[email protected]",
"position": "<string>",
"phone": "<string>",
"gender": "male",
"age": 123
}
Target to add
The body is of type object
.
Target created successfully
The response is of type object
.