---
title: "Track User Activity"
method: POST
path: "/analytics/track/activity"
tags: ["analytics"]
---

# Track User Activity

`POST /analytics/track/activity`

Track user activity in their current session.
Automatically creates or updates the current session.

Sync (def, not async def) so FastAPI runs it in its threadpool — the body
is pure sync DB (no awaits) and the client doesn't consume the response
body, just response.ok. Keeps the event loop free for call/WS traffic.

## Headers

- `authorization` string, nullable

## Request body

- ActivityTrackingRequest
  - `activity_type` string, required
  - `page_path` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/fluentea/apis/aurqa-language-learning-platform-refactored.md) · [All operations](https://skmtc.dev/fluentea/apis/aurqa-language-learning-platform-refactored/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/fluentea/aurqa-language-learning-platform-refactored/revisions/78f314acd8bf/schema)
