---
title: "Track Event"
method: POST
path: "/analytics/track"
tags: ["analytics"]
---

# Track Event

`POST /analytics/track`

Track a single feature usage event.

This endpoint accepts events from both authenticated and anonymous users.
For anonymous users, use the session_id in batch endpoint for correlation.

## Request body

- FeatureEventCreate — Schema for creating a single feature usage event.
  - `feature_name` string, required
  - `action` string, required
  - `metadata` object, nullable
  - `duration_ms` integer, nullable
  - `success` boolean, nullable
  - `error_message` string, nullable

## Response `200`

Successful Response

- TrackResponse — Response for tracking endpoint.
  - `status` string
  - `count` integer, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/meganova/apis/fastapi.md) · [All operations](https://skmtc.net/meganova/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/meganova/fastapi/revisions/2b2bab8b9017/schema)
