APIs

My OPSWAT Central Management provides different APIs to fetch device information (Hostname, Device ID, MAC/IP Address,...) and device security and compliance status, such as Antivirus, Antiphising, Public File Sharing, and Malware detection as well as account information.

These APIs require an access token as a parameter for security and authentication reasons. Without a valid access token provided, you will get HTTP code as 401 in response for each request. You are able to archive the access token for your application by using authentication methods we provide.

Request Example

Copy

Response Example

Copy

Response HTTP Code

HTTP CodeDescriptionNote
200Success
400Bad request. JSON format is invalid or input values are invalid
401Unauthorized. Your access_token is invalid or expired
404Not found
405Method not allowed

when a query specifies incorrect HTTP method.

For example: an OAuth API requires HTTP method as GET, but the query sets HTTP method as POST/PUT/DELETE

406"limit" parameter in the request parameter is greater than 50.This is only applied for old APIs.
413

Requested page number exceeds page limit

There is no data to return

415Unsupported Media Type
429The request exceeds the API rate limit.please limit the number of requests sent per minute
500Internal Server ErrorPlease contact OPSWAT support

Response Header

Response Parameters

KeyDatatypeDescription
X-RateLimit-Limitintrate limit of an account
X-RateLimit-Remainingintnumber of calls left in the limit duration
X-RateLimit-Reset-Timeintwhen the rate limit is reset in second

Example

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