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

# Track Event

`POST /analytics/track`

## Request

- Base URL: `https://studio-api.meganova.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://studio-api.meganova.ai/analytics/track`
- Auth: OAuth 2
  - Password
  - Token URL: `auth/token`

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