---
title: "Recover queued program chat processing"
method: POST
path: "/cron/program-chat"
tags: ["Cron"]
---

# Recover queued program chat processing

`POST /cron/program-chat`

## Request

- Base URL: `https://api.apphandoff.com/api`
- URL: `https://api.apphandoff.com/api/cron/program-chat`
- Auth: none required

Runs a bounded database-fenced sweep independent of chat viewers. Protected by CRON_SECRET via the x-cron-secret header.

## Response `200`

Sweep counts

- object
  - `processed` integer, required
  - `failed` integer, required

## Other responses

- `401`: Missing or invalid CRON_SECRET

---

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