-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathendpoints.http
34 lines (27 loc) · 1.07 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
@baseUrl = http://localhost:8080
### List all submitted emails for a given customer.
GET {{baseUrl}}/api/v1/customers/testing/emails?start=2024-03-22T02:29:03+00:00
### Get information for a particular email.
GET {{baseUrl}}/api/v1/customers/testing/emails/62f600b1-fbff-4bab-bba1-b3d82b270966
### Post a new email scan request.
POST {{baseUrl}}/api/v1/customers/testing/emails
Content-Type: application/json
{
"metadata": {
"spamhammer": "0|12"
},
"contents": {
"to": "me@uq.edu.au",
"from": "support@uq.edu.au",
"subject": "ah",
"body": "Dear Valued Person, Please click my links, https://scam-check.uq.edu.au?testing and https://scam-check2.uq.edu.au"
}
}
### Get malicious senders of emails.
GET {{baseUrl}}/api/v1/customers/testieng/reports/actors
### Get the domains that appeared in malicious emails.
GET {{baseUrl}}/api/v1//customers/{customer_id}/reports/domains
### Get users who have received malicious emails.
GET {{baseUrl}}/api/v1/customers/testieng/reports/recipients
### Health
GET {{baseUrl}}/api/v1/health