---
title: "Record app session duration"
method: POST
path: "/api/auth/session/end"
tags: ["Auth"]
---

# Record app session duration

`POST /api/auth/session/end`

## 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/auth/session/end`
- Auth: none declared

Called by the mobile app when it goes to background or closes. Logs the session duration so the admin dashboard can compute average time-in-app.

## Response `200`

- unknown

---

[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)
