When records are created, updated or deleted within your account, an audit log is created. Use the audit log API to retrieve the last 30 days worth of data corresponding to changes within your account.
Returns a list of audit logs.
List of audit logs
Access denied to this resource
Resource not found
curl -i -X GET \ 'https://api.whosonlocation.com/v1/audit?q=string&limit=0'
[- {
- "id": 823431,
- "audit_timestamp": "2021-08-12T10:54:13+12:00",
- "audit_event": "UPDATE",
- "audit_table": "staff",
- "user_name": "john@example.com",
- "user_type": "staff",
- "record_id": 823431,
- "data_changed": [
- {
- "column_name": "name",
- "change_from": "John Smith",
- "change_to": "John B Smith"
}, - {
- "column_name": "from",
- "change_from": "Smith Corp",
- "change_to": "Smith Corporation"
}
], - "data_old": {
- "id": 588,
- "from": "Smith Corp",
- "name": "John Smith",
- "created": "2022-05-06 00:23:48.000000",
- "modified": null
}, - "data_new": {
- "id": 588,
- "from": "Smith Corporation",
- "name": "John B Smith",
- "created": "2022-05-06 00:23:48.000000",
- "modified": "2022-05-07 10:33:19.000000"
}
}
]