POST /filteringlog/getReport
The /filteringlog/getReport endpoint allows you to retrieve the list of filtering log events for inbound or outbound SMTP traffic.
Requestcurl -X POST \
'https://cloud.vadesecure.com/rest/v3.0/filteringlog/getReport' \
-H 'x-vrc-authorization: "LOGIN:TOKEN"' \
-H 'Content-type: application/json' \
--data '{
"userId": your_accountID,
"pageSize": 10,
"pageToGet": 0,
"streamType": "Inbound",
"period":"DAYS_07",
"sortOrder":1,
"sortFieldName": "date",
"startDate":"1614836482000"
}'; echo
- x-vrc-authorization - Required
- string
- Accept
- application/json
- userId - Required
- integer
- pageSize - Required
- integer
- pageToGet - Required
- integer
- streamType
- string
- period
- string
- streamType
- string
- period
- string
- startDate - Required
- integer
- sortOrder
-
integer
Sorting logs on ascending order or descending order.
sortOrder: 0 = ASC
sortOrder: 1 = DESC
- period - Required
- string
- messageType
- string
- operationType
- string
- rejectType
- string
- sender
- string
- recipient
- string
-
200
OK
application/json
- The response body contains a JSON blob which can be parsed to retrieve the Account ID. 400 Error application/json
- In case an error occurred, a 400 error is returned along with a JSON object
containing a description of the error, typically:
{"error": "error description"}
401
Unauthorized
application/json
- There was a problem authenticating your request.
- logs
- array
- availablePages
- integer
- currentPage
- integer
- analyzingPercent
- integer
- analyzingPhase
- string
- complete
- boolean
- limit
- integer
{
"analyzingPercent": 100,
"analyzingPhase": "Creating report",
"availablePages": 50,
"complete": true,
"currentPage": 0,
"limit": 10,
"logs": [
{
"date": 1615440980000,
"domain": "domain.fr",
"filterReason": "nil",
"filterType": "UNKNWON",
"from": "sender@sdomain.fr",
"hostname": "vcfr1mtai06p.internal.vadesecure.com",
"ip": "1.2.3.4",
"message": "2021-03-11T06:36:20+01:00 vcfr1mtai06p.internal.vadesecure.com ulog[21682]: [0049D9D1] \
qid=4DwyNh2Symz1y3J,ip=80.12.242.134,sender=sender@sdomain.fr, \
site=VRC1350570,domain=domain.fr,recipient=rcpt@domain.fr: \
action=tag,status=social,spamlevel=unknwon,tag=[SOCIAL],stop=nil,reply=nil, \
subject=\"\ud83c\udf82 It\u2019s Sophie\u2019s birthday today\"",
"messageId": "4DwyNh2Symz1y3J",
"messageType": "SOCIAL",
"operationType": "TAG",
"sandboxed": false,
"site": "VRC1350570",
"spamLevel": "UNKNWON",
"subject": "\ud83c\udf82 It\u2019s Sophie\u2019s birthday today",
"tag": "[SOCIAL]",
"to": "rcpt@domain.fr"
},
...
]
}