Skip to main content

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.
Status values:

List Tasks

List recent tasks.

Delete Task

Delete a task from the queue.
Returns 204 No Content on success, 404 Not Found if task doesn’t exist.

Redrive Task

Retry a failed task.
Returns 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
See Prometheus Monitoring for all available metrics.

API Metrics

JSON metrics summary.

Swagger UI

Interactive API documentation.

Error Responses

Priority Tasks

When using DAEMON_TASK_SELECTION=priority, tasks are processed in priority order:
Priority range is 0 (lowest) to 100 (highest). Default is 50 if not specified.