This API endpoint creates a custom event in your workspace.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
⚠️ Enterprise plan required: This endpoint is only available to workspaces on an enterprise plan. Requests from workspaces on any other plan return.401 Unauthorized with the message "Creating audit log events requires an enterprise plan."
Notes:
Context
The context parameter is a JSON object of arbitrary key-value pairs that describe the event. Keys are strings; values can be strings, numbers, booleans, arrays, or nested objects. The object is stored as-is on the audit log entry and returned in the response.
For example, an event logging a testing session might include:
{
"context": {
"clientName": "ari",
"topic": "testing"
}
}Event Type Prefix
The eventType value you submit is automatically prefixed withcustomEvent. in the stored event. For example, submitting eventType: "testing" results in a stored eventType of customEvent.testing.

