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

# Log Events

`POST /events`

## Request

- Base URL: `https://stardrift.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://stardrift.ai/events`
- Auth: none declared

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/stardrift-api.md) - [All operations](https://skmtc.dev/stardrift/apis/stardrift-api/llms.txt) - [OpenAPI document](https://skmtc.dev/stardrift/apis/stardrift-api/revisions/be9ed1e6c38a?raw)
