import Courier from '@trycourier/courier';
const client = new Courier({
apiKey: process.env['COURIER_API_KEY'], // This is the default and can be omitted
});
const auditEvent = await client.auditEvents.retrieve('audit-event-id');
console.log(auditEvent.actor);
import Courier from '@trycourier/courier';
const client = new Courier({
apiKey: process.env['COURIER_API_KEY'], // This is the default and can be omitted
});
const auditEvent = await client.auditEvents.retrieve('audit-event-id');
console.log(auditEvent.actor);