---
title: "Track Session Event"
method: POST
path: "/api/analytics/session"
tags: ["analytics"]
---

# Track Session Event

`POST /api/analytics/session`

## Request

- Base URL: `https://api.maritime.sh` (the document declares no server; this is the origin it was published from)
- URL: `https://api.maritime.sh/api/analytics/session`
- Auth: HTTP bearer

## Headers

- `user-agent` string, nullable

## Request body

- SessionEventRequest
  - `action` string, required
  - `session_id` string, required
  - `path` string, nullable
  - `occurred_at` string, date-time, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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