Environments
An "environment" is the incarnating features of a phishing topic (logo, fake website, fake email).
Environment have the following structure:
{
"id" : int,
"name" : string,
"status_service_used": string,
"description" : string,
"logo_url" : string,
"customer" : {}Customer,
"customer_id" : int,
"from_envelope" : string,
"domain" : string,
"landingpage" : {}LandingPage,
"landingpage_id" : int,
"targets" : []Target,
"targets_count" : int,
"generic" : bool,
"service_type" : string
}
Get Environments
GET /api/serviceuseds/
Returns a list of environments.
Headers
Get Environment
GET /api/serviceuseds/:id
Returns an environment given an ID.
Path Parameters
id*
integer
The environment ID
Headers
Authorization*
string
A valid API key
Returns a 404 error if the specified environment isn't found.
Get Suggested Environments
GET /api/serviceusedsuggest/?customer_id=X
X is the ID for the customer. If you choose these suggested environments, you don't need to create an associated landing page, as it is
Create Environment
POST /api/serviceuseds/
Creates an environment.
Headers
Authorization*
string
A valid API key
Request Body
Payload*
object
The JSON representation of the environment to be created
For generic environnement (environnement for all the employees of the customer), targets need to be set to null. Service_type can be simulation or explanation. In most of the case simulation need to be choice.
Modify Environment
PUT /api/serviceuseds/:id
Modifies an existing environment.
Path Parameters
id*
integer
The ID of the environment to modify
Headers
Authorization*
string
A valid API key
Request Body
Payload*
object
The JSON representation of the environment to be modified
Returns a 404 error if the specified environment isn't found.
Delete Environment
DELETE /api/serviceuseds/:id
Deletes an environment.
Path Parameters
id*
integer
The ID of the environment to delete
Headers
Authorization*
string
A valid API key
Returns a 404 error if the specified environment isn't found.
This method returns a status message indicating the environment was deleted successfully.
Last updated