api
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
api [2017/09/19 17:33] – created lucy | api [2021/08/18 16:30] – [Detailed Documentation] lucysecurity | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== LUCY REST API - Background Info ===== | ===== LUCY REST API - Background Info ===== | ||
- | Lucy API is a RESTful web service. The API does not keep the client' | + | Lucy API is a RESTful web service. The API does not keep the client' |
+ | |||
+ | {{ api1.png? | ||
===== Requirements ===== | ===== Requirements ===== | ||
Line 28: | Line 30: | ||
Resources are used when getting some data from Lucy API or creating/ | Resources are used when getting some data from Lucy API or creating/ | ||
server expects when you are creating a new campaign. The only difference is links - when you are posting/ | server expects when you are creating a new campaign. The only difference is links - when you are posting/ | ||
+ | |||
+ | |||
+ | ===== Example Usage ===== | ||
+ | |||
+ | First you need to auth: | ||
+ | |||
+ | POST /api/auth HTTP/1.1 | ||
+ | Host: phish.local | ||
+ | Content-Type: | ||
+ | Cache-Control: | ||
+ | | ||
+ | {" | ||
+ | |||
+ | You will get the token in response, use it in all subsequent requests: | ||
+ | |||
+ | {" | ||
+ | |||
+ | Then create a group for example: | ||
+ | |||
+ | PUT / | ||
+ | Host: phish.local | ||
+ | Authorization: | ||
+ | Content-Type: | ||
+ | Cache-Control: | ||
+ | | ||
+ | {" | ||
+ | |||
+ | You will get something like this in response: | ||
+ | |||
+ | {" | ||
+ | |||
+ | Then you may create a recipient in that group: | ||
+ | |||
+ | PUT / | ||
+ | Host: phish.local | ||
+ | Authorization: | ||
+ | Content-Type: | ||
+ | Cache-Control: | ||
+ | | ||
+ | {" | ||
+ | |||
+ | You will get this response: | ||
+ | |||
+ | {" | ||
+ | |||
+ | ===== API End Points ===== | ||
+ | |||
+ | The complete list of API End Points supported by LUCY can be found [[api_end_points|here]] | ||
+ | |||
+ | ===== Detailed Documentation ===== | ||
+ | |||
+ | More detailed documentation can be found {{:: | ||
api.txt · Last modified: 2022/03/05 18:12 by lucysecurity