---
title: "Record Product Event"
method: POST
path: "/api/events"
---

# Record Product Event

`POST /api/events`

## Request

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

## Request body

- ProductEventRequest
  - `eventId` string, required
  - `anonymousSessionId` string, nullable
  - `visitorId` string, nullable
  - `sessionId` string, nullable
  - `freeChartRunId` string, nullable
  - `eventName` string, required
  - `channel` string, nullable
  - `keySessionId` string, nullable
  - `properties` object
  - `landingContext` object
  - `internal` boolean
  - `locale` 'zh-CN' | 'zh-Hant' | 'en'

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/yuanzizhiyi/apis/yuanzi-zhiyi.md) · [All operations](https://skmtc.dev/yuanzizhiyi/apis/yuanzi-zhiyi/llms.txt) · [OpenAPI document](https://skmtc.dev/yuanzizhiyi/apis/yuanzi-zhiyi/revisions/d063fae7ac16?raw)
