-
Notifications
You must be signed in to change notification settings - Fork 0
/
endpoints.http
36 lines (27 loc) · 1.06 KB
/
endpoints.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
@baseUrl = http://127.0.0.1:6400
### Health
GET {{baseUrl}}/health
### emails
GET {{baseUrl}}/customers/1111f12/emails
### Info about a specific email_id from customer_id
GET {{baseUrl}}/customers/1111f12/emails/Jh5KD8ZELBF3TAWMUBaU6Y
### Scan request from customer_id
POST {{baseUrl}}/customers/1111f12/emails
Content-Type: application/json
{
"metadata" : {
"spamhammer" : "1|14"
},
"contents" : {
"subject" : "Important information about your account.",
"from" : "[email protected]",
"to": "[email protected]",
"body" : "Dear customer,\nWe have https://vg.no noticed some suspicious activity on your account. Please click [here](https://scam-check.uq.edu.au?userId=uqehugh3) to reset your password."
}
}
### Domains for specific customer_id. Testcase of customer_id=1111f12
GET {{baseUrl}}/customers/1111f12/reports/domains
### Actors for a specific customer_id: Get the senders of malicious emails
GET {{baseUrl}}/customers/1111f12/reports/actors
### Recipients of malicious emails
GET {{baseUrl}}/customers/1111f12/reports/recipients