---
title: "Create Audit Log Event"
method: POST
path: "/v1/audit-log-events"
tags: ["BackendService"]
---

# Create Audit Log Event

`POST /v1/audit-log-events`

## Request body

- AuditLogEvent — AuditLogEvent represents a record in the Project's audit log.
  - `id` string — The Audit Log Event ID. Starts with `audit_log_event_...`.
  - `organizationId` string — The Organization the event occurred within, if any.
  - `actorUserId` string — The User that performed the event, if any.
  - `actorSessionId` string — The Session that performed the event, if any.
  - `actorApiKeyId` string — The API Key that performed the event, if any.
  - `actorBackendApiKeyId` string — The Backend API key that performed the event, if any.
  - `actorIntermediateSessionId` string — The Intermediate Session that performed the action, if any.
  - `eventTime` string, date-time — When the event occurred.
  - `eventName` string — The name of the event.
  - `eventDetails` object — The event payload JSON.
  - `actorCredentials` string — Credentials for the actor performing the action. Input-only. Can be used as a shorthand for actor information when calling CreateAuditLogEvent.

## Response `200`

OK

- CreateAuditLogEventResponse
  - `auditLogEvent` AuditLogEvent — AuditLogEvent represents a record in the Project's audit log.
    - `id` string — The Audit Log Event ID. Starts with `audit_log_event_...`.
    - `organizationId` string — The Organization the event occurred within, if any.
    - `actorUserId` string — The User that performed the event, if any.
    - `actorSessionId` string — The Session that performed the event, if any.
    - `actorApiKeyId` string — The API Key that performed the event, if any.
    - `actorBackendApiKeyId` string — The Backend API key that performed the event, if any.
    - `actorIntermediateSessionId` string — The Intermediate Session that performed the action, if any.
    - `eventTime` string, date-time — When the event occurred.
    - `eventName` string — The name of the event.
    - `eventDetails` object — The event payload JSON.
    - `actorCredentials` string — Credentials for the actor performing the action. Input-only. Can be used as a shorthand for actor information when calling CreateAuditLogEvent.

## Other responses

- `400` — API Error
- `401` — API Error
- `403` — API Error
- `404` — API Error

---

[API](https://skmtc.net/tesseral-labs/apis/backendservice-api.md) · [All operations](https://skmtc.net/tesseral-labs/apis/backendservice-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tesseral-labs/backendservice-api/versions/fe83f78ae20a/schema)
