All endpoints except health, Swagger, and POST /api/auth/token require JWT authentication.
Roles:
ADMIN: full accessOPERATOR: operational write accessVIEWER: read-only dashboard access
Development-only token endpoint controlled by APP_DEV_TOKEN_ENABLED.
Request:
{
"subject": "operator",
"roles": ["ADMIN", "OPERATOR", "VIEWER"]
}Response:
{
"accessToken": "eyJ...",
"tokenType": "Bearer",
"expiresAt": "2026-06-07T10:00:00Z"
}Creates immediate, delayed, or recurring jobs. Supports the Idempotency-Key header.
Request:
{
"name": "send-email",
"payload": {"to":"user@example.com"},
"queueName": "default",
"priority": 20,
"scheduledAt": "2026-06-07T12:00:00Z",
"cronExpression": "0 */5 * * * *",
"maxAttempts": 5,
"initialBackoffSeconds": 30,
"maxBackoffSeconds": 3600
}Behavior:
- No
scheduledAtand no cron expression creates aQUEUEDjob. - Future
scheduledAtcreates aSCHEDULEDjob. cronExpressionschedules the next occurrence and creates future occurrences after completion.
Returns one job.
Query parameters:
statequeueNamelimitoffset
Deletes a non-leased, non-running job.
{
"name": "email",
"description": "Outbound email work",
"deadLetterQueueName": "default-dlq"
}Lists queues.
Pauses future leasing from the queue.
Resumes future leasing.
{
"id": "worker-1",
"hostname": "worker-1.internal",
"capacity": 50,
"queues": ["default", "email"]
}Refreshes worker health.
{
"limit": 100
}Returns leased jobs ordered by priority then FIFO creation time.
Transitions a leased job to RUNNING.
{
"durationMs": 1250
}Transitions a running job to COMPLETED.
{
"reason": "HTTP 503 from dependency",
"durationMs": 500
}Transitions to RETRYING or DEAD_LETTERED depending on remaining attempts.
Lists workers.
Returns one worker.
Returns:
- job counts by state
- queue pause status
- worker counts by status
- throughput buckets
- average processing time
- failure rate
- retry rate