---
title: "Retry a publication's failed targets"
method: POST
path: "/api/v1/publications/{publicationId}/retry"
tags: ["Posts"]
---

# Retry a publication's failed targets

`POST /api/v1/publications/{publicationId}/retry`

## Request

- Base URL: `https://app.tryadeli.com`
- URL: `https://app.tryadeli.com/api/v1/publications/{publicationId}/retry`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/adeli/apis/adeli-api/docs/api/v1/publications/:publicationId/retry/post.ts> (a function with typed inputs; its response is checked against the schema)

Re-runs only `failed` targets with their original inputs. A target that may already be live (`outcome_unknown`) is never retried. Answers 409 while the publication is running or when nothing failed.

## Path parameters

- `publicationId` string, uuid, required

## Response `202`

Success

- object
  - `id` string, uuid, required
  - `profileId` string, uuid, required
  - `status` 'queued' | 'processing' | 'published' | 'partial' | 'failed', required
  - `progress` number, required
  - `statusUrl` string, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required
  - `completedAt` string, date-time, nullable, required
  - `targets` object[], required
    - `id` string, uuid, required
    - `platform` 'instagram' | 'facebook' | 'tiktok' | 'youtube' | 'x' | 'bluesky' | 'linkedin', required
    - `accountId` string, uuid, required
    - `status` 'queued' | 'submitting' | 'processing' | 'published' | 'failed' | 'outcome_unknown', required
    - `attempts` integer, required
    - `result` object, nullable, required
    - `error` object, nullable, required
      - `code` string, required
      - `message` string, required

## Other responses

- `400`: Invalid request or provider failure
- `401`: Missing or invalid API key
- `402`: Billing is required: a card is needed to connect more accounts or use X (`billing_required`, `x_billing_required`), or the workspace has used its free monthly allowance (`usage_limit_reached`)
- `404`: Profile, account, or object not found
- `409`: The request conflicts with existing state
- `502`: Invalid request or provider failure

---

[API](https://skmtc.dev/adeli/apis/adeli-api.md) - [All operations](https://skmtc.dev/adeli/apis/adeli-api/llms.txt) - [OpenAPI document](https://skmtc.dev/adeli/apis/adeli-api/revisions/ed680dfa9033?raw)
