We need to track who changed a queue routing configuration for a legal discovery audit.
Does the platform maintain a full chain of custody for administrative changes? If a supervisor modifies the bullseye routing expansion rings at 2 AM and calls start dropping, we need to prove who made the change and exactly when.
Yes, the Audit Log API covers this. You can query it programmatically:
// React component to fetch audit trail
const fetchAudit = async (entityId) => {
const response = await fetch(
`/api/v2/audits/query`,
{
method: 'POST',
body: JSON.stringify({
interval: '2024-01-01T00:00:00Z/2024-12-31T23:59:59Z',
filters: [{ property: 'EntityId', value: entityId }]
})
}
);
return response.json();
};
The response includes the user.id of who made the change, the timestamp, and the before/after values of the modified properties.