Export audit log as CSV (owner/admin only; bounded; itself audited)
GET
/admin/v1/audit-log/export
const url = 'https://your-store.example.com/admin/v1/audit-log/export';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://your-store.example.com/admin/v1/audit-log/exportParameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” actorId
string format: uuid
resourceType
string
resourceId
string format: uuid
action
string
dateFrom
string
dateTo
string