# Get a browser's compliance details on a device Retrieves the per-rule compliance status of a browser on a device against the default BSP compliance rules. ## Endpoint `GET /bsp/api/v1/bmp/devices/{device_id}/browsers/{browser_id}/compliance` ## Request URL `https://{serverurl}/bsp/api/v1/bmp/devices/{device_id}/browsers/{browser_id}/compliance` [Server URL](https://www.manageengine.com/products/desktop-central/help/api/cloud/oauth-authentication-endpoint-domain.html) ## Scope `DesktopCentralCloud.BrowserManager.READ` ## Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Accept** `string` — **Mandatory** - `application/json` ### Path Parameters - **browser_id** `string` — **Mandatory` - Browser ID from [List Browsers](https://www.manageengine.com/products/desktop-central/help/api/cloud/inventory-list-browsers.html) response (`browser_type` field) - **device_id** `string` — **Mandatory` - Device resource ID from [List Devices](https://www.manageengine.com/products/desktop-central/help/api/cloud/inventory-list-devices.html) response (`device_id` field) ## Sample Request ```curl curl --request GET \ --url https://appdomains/bsp/api/v1/bmp/devices/{device_id}/browsers/{browser_id}/compliance \ --header 'Accept: application/json' \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' ``` ## Response Parameters ### HTTP Code 200 Response body: `application/json` `JSON Object` — Compliance details for a device, wrapped in a devices array. - **devices** `JSON Array` - Device compliance objects ### HTTP Code 401 Response body: `application/json` `JSON Object` - **errorCode** `long` - Unauthorized error code returned when authentication credentials are missing, expired, or invalid (authentication=required) - **errorMsg** `string` - Authentication failure reason ### HTTP Code 403 Response body: `application/json` `JSON Object` — RBCA scope violation when device is not in the user's managed scope. - **errorCode** `string` - Error code indicating the device is outside the user's managed scope - **errorMsg** `string` - Message indicating the device is not accessible to the current user - **url** `string` - Request URL that triggered the error ### HTTP Code 429 Response body: `application/json` `JSON Object` - **errorCode** `long` - Rate limit error code returned when the API call threshold (configured via threshold/duration in security XML) is exceeded; client is locked out for lock-period minutes - **errorMsg** `string` - Rate limit exceeded message with retry guidance ### HTTP Code 500 Response body: `application/json` `JSON Object` — Internal server error during device operations. - **error_description** `string` - Message describing the server-side failure - **error_code** `string` - Internal server error code ## Sample Response: HTTP 200 ### Empty compliance ```json { "devices": [] } ``` ### Browser compliance details ```json { "devices": [ { "compliance_details": [ { "category_details": [ { "rule_id": "1", "non_compliant_rules": [ 6, 12, 14 ], "rule_name": "Data Leakage Prevention", "security_percentage": "6.6666669845581055", "yet_to_scan": [], "compliant_rules": [ 18 ] }, { "rule_id": "2", "non_compliant_rules": [ 16, 5 ], "rule_name": "Threat Prevention", "security_percentage": "27.272727966308594", "yet_to_scan": [], "compliant_rules": [ 10 ] } ], "security_percentage": "12.195121765136719", "compliance_id": "1", "rule_status": [ { "rule_id": "6", "rule_name": "IE_warn_cert_addr_mismatch", "compliant_status": "0", "criticality": "3" }, { "rule_id": "10", "rule_name": "critical_permissions", "compliant_status": "1", "criticality": "3" }, { "rule_id": "18", "rule_name": "sideload_extensions", "compliant_status": "1", "criticality": "2" } ] } ], "device_id": "999" } ] } ``` ## Sample Response: HTTP 401 ### Unauthorized ```json { "errorCode": "UNAUTHORIZED", "errorMsg": "You are not authorized to perform this action" } ``` ## Sample Response: HTTP 403 ### Device not in scope ```json { "errorCode": "FORBIDDEN", "url": "/bsp/api/v1/bmp/devices/{device_id}/browsers/{browser_id}/compliance", "errorMsg": "The requested device is not in your managed scope" } ``` ## Sample Response: HTTP 429 ### Rate limit exceeded ```json { "errorCode": "RATE_LIMIT_EXCEEDED", "errorMsg": "You have exceeded the maximum number of API calls. Please try again later." } ``` ## Sample Response: HTTP 500 ### Server error ```json { "error_description": "Internal Server error, Please try again in a moment.", "error_code": "COM0004" } ``` ## Rate Limits **Duration:** 1 minute | **Threshold:** 60 | **Lock period:** 5 minutes Duration — Time window for the threshold. Threshold — Number of API calls allowed within the specified duration. Lock Period — Wait time before consecutive API requests.