---
title: "Log Events"
method: POST
path: "/events"
---

# Log Events

`POST /events`

Log multiple events to the database (atomic - all succeed or all fail).

## Request body

- BatchEventLogRequest
  - `events` EventLogRequest[], required
    - `event_type` string, required
    - `event_data` object, nullable
    - `user_id` string, nullable

## Response `200`

Successful Response

- SimpleStatusResponse
  - `status` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/stardrift/apis/fastapi.md) · [All operations](https://skmtc.dev/stardrift/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/stardrift/fastapi/revisions/00746572572a/schema)
