Retrieve the audit logs of an organization.
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&orgId=17&imei=12345678' \ -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}",
- "previousValue": "{\\\"gpsEnabled\\\":false,\\\"mvaiEnabled\\\":false}",
- "organizationId": "311",
- "organizationName": "Amazing organization",
- "partnerId": "13",
- "partnerName": "James",
- "userId": "23",
- "userName": "Harry",
- "imei": "468771212171905"
}
], - "metadata": {
- "count": 56,
- "limit": 60,
- "offset": 10
}
}