v1

latestOpenAPI 3.1.02026-08-06221222240.7 KB
Admin

Admin Retry Failed Lead Jobs

[ADMIN] Re-enqueue failed lead jobs for an org by failure reason.

Enqueues jobs to SQS with RetryJobID set. Does NOT delete the FailedLeadJob records — the SQS consumer handles cleanup:

  • On success: consumer deletes the FailedLeadJob
  • On failure: consumer increments retry_attempts on the existing record

This matches the recovery_executor.py pattern and prevents data loss if an SQS message is lost or processing fails.

post/v1/admin/failed-lead-jobs/retry

Request body

org_idstring required
failure_reasonstring required

Response

Successful Response

{"stackTrail":"paths:/v1/admin/failed-lead-jobs/retry:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}