Get Threats

API version3.0
Last Update10/23/2018
AuthenticationYES
HTTP MethodPOST
Content Typeapplication/json
Rate limitedYES
Requests per rate limit10/min
Response FormatJSON

Use to fetch detected threats on a device

API URL

Copy

Request Parameters

KeyDatatypeParameter TypeRequiredDescriptionDefault
access_tokenstringURLYesaccess token which archived from OAuth authentication step
idstringBodyYesThe Device ID or MAC Address of a device you want to fetch detected threats.
limitintURLOptional

Specific maximum number of threats will be returned in the response.

The value should be in [1,50].

50
pageintURLOptionalSpecific page number which threats will be returned in. If the requested page exceeds the number of pages of threats, error code will be 413. It means that the requested page number is too large, no devices will be returned in this case.1
verboseobjectBodyOptionalSpecify what information you look for
verbose. antimalware_scanintBodyOptional

Specify if threats detected by daily anti-malware scan are included in the response Values can be:

  • 0: not include
  • 1: include
1
verbose. local_antimalware_threatsintBodyOptional

Specify if threats detected by local anti-malware products are included in the response Values can be:

  • 0: not include
  • 1: include
1

Response HTTP Code

See details in the Response HTTP Code section in this page

Response Parameters

KeyDataTypeReturned whenDescription
antimalware_scanarray<object>verbose. antimalware_scan =1An array of threats detected by daily anti-malware scan
antimalware_scan.criticalint

Indicate if the threat is critical based on the defined policy on MetaDefender IT Access console

Values are:

  • 0 – not critical
  • 1 – critical
antimalware_scan .scan_timestringtimestamp when found the threat
antimalware_scan .filestringFile was found the threat
antimalware_scan .hashstringIndicates the hash code of the scanning object if the object is a file or process
antimalware_scan .threat_namestringThreat name
antimalware_scan .detailsarray<object>An array of threats found with details information
antimalware_scan .details.threat_namestringThreat name which detected on a specific engine
antimalware_scan .details.av_namestringName of an engine which found the threat
local_antimalware_threatsarray<object>verbose. local_antimalware_threats =1Lists of threats ( threat details detected by local anti-malware applications )
local_antimalware_threats .scan_timestringLast timestamp when the threat was detected
local_antimalware_threats .repeatintNumber of times the threat was detected
local_antimalware_threats .filestringFile was detected as a threat
local_antimalware_threats .threat_namestringThreat name
local_antimalware_threats .product_namestringproduct name which found the threat
local_antimalware_threats .product_vendorstringVendor name
local_antimalware_threats .product_versionstringProduct version
local_antimalware_threats .actionstringIndicate an action the local anti-malware product took Value can be: unknown, cleaned, deleted, quarantined
local_antimalware_threats .existingint

to indicate if an infected file still exists on the system when the agent report the data.

  • 0 : not existing
  • 1 : existing

Example

Example Request: using Device ID

Copy

Example Response

Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard