Skip to main content
GET
/
audit-events
/
{audit-event-id}
JavaScript
import Courier from '@trycourier/courier';

const client = new Courier({
  apiKey: 'My API Key',
});

const auditEvent = await client.auditEvents.retrieve('audit-event-id');

console.log(auditEvent.actor);
{
  "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.

Path Parameters

audit-event-id
string
required

A unique identifier associated with the audit event you wish to retrieve

Response

200 - application/json
auditEventId
string
required
actor
object
required
target
string
required
source
string
required
timestamp
string
required
type
string
required