---
title: "Close Stale Sessions"
method: POST
path: "/api/v1/internal/close-stale-sessions"
tags: ["v1", "Internal"]
---

# Close Stale Sessions

`POST /api/v1/internal/close-stale-sessions`

## Request

- Base URL: `https://api.jeevyfabrication.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jeevyfabrication.com/api/v1/internal/close-stale-sessions`
- Auth: none declared

Auto-close task_time_entries that have been open longer than the threshold. Safety net.

## Query parameters

- `hours_threshold` integer: Close entries open longer than this many hours

## Headers

- `X-Internal-Key` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

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