---
title: "Record a product analytics event"
method: POST
path: "/api/analytics"
tags: ["Analytics"]
---

# Record a product analytics event

`POST /api/analytics`

## Request

- Base URL: `https://getmyluna.app`
- URL: `https://getmyluna.app/api/analytics`
- Auth: none required

Allowlisted event names only; no PII. Public so the marketing pages can call it.

## Request body

- AnalyticsRequest
  - `name` string, required: One of the allowlisted event names.
  - `props` object, nullable

## Response `200`

Success

- OkResponse
  - `ok` boolean

## Other responses

- `400`: Bad Request

---

[API](https://skmtc.dev/getmyluna/apis/luna-api.md) · [All operations](https://skmtc.dev/getmyluna/apis/luna-api/llms.txt) · [OpenAPI document](https://skmtc.dev/getmyluna/apis/luna-api/revisions/ef7b359c9648?raw)
