Retrieve the audit logs of an organization.
If large amounts of data are being retrieved, your call could time out after 30 seconds. To prevent this from occurring, we recommend using pagination in the query parameters.
When using a partner token:
Successful operation
Bad request error
Unauthorized error
Forbidden error
Not found error
Internal server error
curl -i -X GET \ 'https://api-prod.surfsight.net/v2/audit-logs?limit=1&offset=1&start=2020-01-01T14%3A48%3A00.000Z&end=2020-01-01T14%3A48%3A00.000Z&userId=32&partnerId=62&userType=partnerContact&orgId=17&imei=12345678&entityId=123456&entityType=device&entityOrganizationId=17&entityPartnerId=62' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{- "data": [
- {
- "id": 461,
- "message": "devicePrivacySettingsModification",
- "reason": "updateDevicePrivacyConfig",
- "createdAt": "2021-08-10T10:35:00.000Z",
- "value": "{\\\"gpsEnabled\\\":true,\\\"mvaiEnabled\\\":true,\\\"liveStreamEnabled\\\":true}",
- "previousValue": "{\\\"gpsEnabled\\\":false,\\\"mvaiEnabled\\\":false,\\\"liveStreamEnabled\\\":false}",
- "organizationId": "311",
- "organizationName": "Amazing organization",
- "partnerId": "13",
- "partnerName": "James",
- "userId": "23",
- "userName": "Harry",
- "imei": "468771212171905",
- "entityId": "468771212171905",
- "entityTpe": "device",
- "entityOrganizationId": "311",
- "entityPartnerId": "13",
- "source": "whiteLabelPortal",
- "method": "GET",
- "endpoint": "/devices/357660101000198/device-config",
- "queryParams": "{\"imei\":\"357660101000198\", userId: \"12345\"}",
- "requestId": "06327cae-e075-42ca-b620-c5cfdd3b4e37"
}
], - "metadata": {
- "count": 56,
- "limit": 60,
- "offset": 10
}
}