TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/xcoder-es/media-cleaner-pro/llms.txt
Use this file to discover all available pages before exploring further.
/api/progress endpoint opens a persistent Server-Sent Events (SSE) connection and pushes a StateResponse snapshot to the client every 500 milliseconds. This is the recommended way to drive live progress indicators in a frontend UI without polling. The server also emits a keep-alive ping every second so that proxies and firewalls do not close the idle connection between updates.
The
log_messages array is always empty in SSE payloads to keep event sizes small. Use GET /api/logs to retrieve the full log history, or GET /api/status for a one-shot snapshot that includes logs.Response format
The endpoint responds withContent-Type: text/event-stream. Each push is a standard SSE message with the event name progress and a JSON-encoded StateResponse as the data payload.
StateResponse payload contains the same fields as GET /api/status — stages, stats, is_running, and is_paused — with log_messages omitted (always an empty array).
The stream runs indefinitely until the client closes the connection. There is no terminal event. Close the
EventSource (or the TCP connection for curl) when you no longer need updates.Keep-alive
The server sends a keep-alive comment every 1 second to prevent proxies from timing out the connection:message event handler.