Skip to main content
GET
/
audit-events
JavaScript
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>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

cursor
string | null

A unique identifier that allows for fetching the next set of audit events.

Response

200 - application/json
paging
object
required
results
AuditEvent · object[]
required