---
title: "Record finished foreground sessions (client time in app, V2-02). Stored for clients only; resending is harmless."
method: POST
path: "/api/app-sessions"
tags: ["App sessions"]
---

# Record finished foreground sessions (client time in app, V2-02). Stored for clients only; resending is harmless.

`POST /api/app-sessions`

## Request

- Base URL: `https://api.rewritelifestyle.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.rewritelifestyle.ai/api/app-sessions`
- Auth: HTTP bearer

## Request body

- RecordAppSessionsDto
  - `sessions` AppSessionDto[], required
    - `startedAt` string, required
    - `endedAt` string, required

## Response `200`

## Changes

- **2026-10-19** `0c72870a5acb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/changes/api/app-sessions/post.md)

---

[API](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api.md) - [All operations](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/revisions/28695827f27a?raw)
