// Recover failed social media publishing jobs

Recover failed social media publishing jobs

List failed publishing jobs, retry the retryable ones safely, and send your team one digest for the rest.

Recovery queue

3 jobs need attention

1 retry
!

job_9Ftq2w

provider failure · retryable

Retry
✓

job_8f2a

published · no action

Done
Retry budget1 / 5
01 / Build it in Claude

Start with the prompt, then make it yours.

Paste this into Claude, then give it your content plan and scheduling rules.

Claude / Recover failed social media publishing jobs
Build a failed social media post recovery flow. Connect to the InvisibleAPI REST API with an organization API key that has publishing:read and publishing:publish scopes. List failed and partially failed publishing jobs, read each failureCategory and failureInstruction, retry only the retryable jobs with POST /publishing/jobs/{publishJobId}/retry, cap retries at 5 per job, and email one digest for the jobs that still need action. Never create a duplicate post.

This failed social media post recovery template makes sure no publish stays silently broken. It sweeps your failed publishing jobs, retries the ones the API marks as retryable, and turns the rest into a single actionable digest for your team.

What it uses

  • GET /publishing/jobs filtered to failed and partially failed jobs
  • The failure classification on each job: failureCategory, failureCode, and failureInstruction
  • POST /publishing/jobs/{publishJobId}/retry for retryable failures: capped at 5 retries per job, never a duplicate post
  • InvisibleAPI's built-in failure emails as the trigger, or a scheduled sweep

How it works

  1. List jobs in failed or partial failure status.
  2. Read each job's failure category and code.
  3. Retry the retryable ones. The API guards against duplicates, so retries are safe.
  4. Collect the non-retryable jobs into one digest with each job's failure instruction.
  5. Report counts: recovered, retrying, needs attention.

Start from this template

Copy the ready-made agent prompt from the templates page and point your agent at the InvisibleAPI MCP server, or implement the same steps directly against the API.

// Related templates

Ship your first publish job today.

7-day free trial. Instagram and X, one API, MCP included.

Or talk to a human. support@invisibleapi.ai