HTTP API
TaskDaemon exposes a REST API for task management.Base URL
Endpoints
Queue Task
Queue a new task for processing.string
required
Handler name (must match a handler in
handlers.toml)object
required
Task data passed to the handler
integer
default:"50"
Task priority (0-100). Higher = processed first when using priority selection.
Get Task
Retrieve task details and status.List Tasks
List recent tasks.Delete Task
Delete a task from the queue.204 No Content on success, 404 Not Found if task doesn’t exist.
Redrive Task
Retry a failed task.200 OK on success, 404 Not Found if task doesn’t exist or isn’t failed.
Health Check
Check service health.Metrics
Prometheus metrics endpoint.Response
API Metrics
JSON metrics summary.Swagger UI
Interactive API documentation.Error Responses
Priority Tasks
When usingDAEMON_TASK_SELECTION=priority, tasks are processed in priority order:
Priority range is 0 (lowest) to 100 (highest). Default is 50 if not specified.