Expand description
Background Tasks API - /api/background-tasks
Persistent background task queue for async work (email, report generation, etc.) In the desktop backend, background tasks are handled by the embedded scheduler; this REST surface mirrors the Next.js API for frontend compatibility.
GET /api/background-tasks - List tasks POST /api/background-tasks - Enqueue a new task POST /api/background-tasks/process - Process the next pending task GET /api/background-tasks/{id} - Get a task by ID PATCH /api/background-tasks/{id} - Update a task (PENDING only) DELETE /api/background-tasks/{id} - Cancel / delete a task POST /api/background-tasks/{id}/retry - Retry a failed task