---
title: "Get Total Time Spent"
method: GET
path: "/api/time-spent"
tags: ["time-spent"]
---

# Get Total Time Spent

`GET /api/time-spent`

Get total time spent by the user across all sessions.
Returns time in minutes.

## Headers

- `x-user-id` string, nullable

## Response `200`

Successful Response

- TotalTimeSpentResponse — Response model for total time spent.
  - `total_minutes` integer, required — Total time spent in minutes
  - `total_sessions` integer, required — Total number of sessions

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/usecreed/apis/creed-api.md) · [All operations](https://skmtc.net/usecreed/apis/creed-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/usecreed/creed-api/versions/523833f9e819/schema)
