← Docs

📬 Dead Letter Queue

Capture failed agent tasks, inspect error payloads, and retry via webhook.

Capture a Failure

curl -X POST https://www.agent-utils.com/api/dlq \

-H "x-api-key: au_your_key" \

-H "Content-Type: application/json" \

-d '{

"agentName": "email-agent",

"taskType": "send_email",

"payload": {"to": "user@example.com", "subject": "Welcome"},

"error": "SMTP timeout after 30s",

"retryWebhook": "https://myapp.com/api/retry"

}'

List Failures

# List all (paginated)

curl https://www.agent-utils.com/api/dlq \

-H "x-api-key: au_your_key"

# Filter by status

curl "https://www.agent-utils.com/api/dlq?status=pending" \

-H "x-api-key: au_your_key"

Retry

# Forward original payload to retry webhook

curl -X POST https://www.agent-utils.com/api/dlq/{id}/retry \

-H "x-api-key: au_your_key"

Parameters

ParamMethodTypeDescription
agentNamePOSTstringName of the agent that failed
taskTypePOSTstringType of task that failed
payloadPOSTobjectOriginal task input data
errorPOSTstringError message
retryWebhookPOSTstringURL to POST payload on retry
statusGETqueryFilter: pending, retried, resolved, dismissed
page / limitGETqueryPagination (default: page=1, limit=20)