Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
A unique identifier that allows for fetching the next set of audit events.
import Courier from '@trycourier/courier';
const client = new Courier({
apiKey: 'My API Key',
});
const auditEvents = await client.auditEvents.list();
console.log(auditEvents.paging);{
"paging": {
"cursor": "<string>",
"more": true
},
"results": [
{
"auditEventId": "<string>",
"actor": {
"id": "<string>",
"email": "<string>"
},
"target": "<string>",
"source": "<string>",
"timestamp": "<string>",
"type": "<string>"
}
]
}Fetch the list of audit events
import Courier from '@trycourier/courier';
const client = new Courier({
apiKey: 'My API Key',
});
const auditEvents = await client.auditEvents.list();
console.log(auditEvents.paging);{
"paging": {
"cursor": "<string>",
"more": true
},
"results": [
{
"auditEventId": "<string>",
"actor": {
"id": "<string>",
"email": "<string>"
},
"target": "<string>",
"source": "<string>",
"timestamp": "<string>",
"type": "<string>"
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
A unique identifier that allows for fetching the next set of audit events.