Retry a failed post

Re-run publishing immediately for a post's failed accounts - all of them, or only the subset listed in accounts - without changing scheduledAt.

Re-run publishing immediately for a post's failed accounts - all of them, or only the subset listed in accounts - without changing scheduledAt. Accounts that already published are never republished, so retrying a partially published post is safe; only the accounts reset by this request are attempted. Retry is only allowed once a publishing attempt has finished: the request is rejected with 409 while any account on the post is still pending, which includes scheduled posts that have not run yet, and for drafts. TikTok Business (tiktok-business) destinations cannot be retried; create a new post instead. The body is optional: send none to retry every failed account, or a JSON object with accounts to retry only those. A non-empty body must be sent as application/json (otherwise 415) and may only contain accounts; unknown keys are rejected with 400. Fix the cause of the failure before retrying, for example by reconnecting the social account, or by editing the post with PATCH /v1/posts/{id} if it has not published to any account (PATCH is rejected once any account has published; rescheduling or un-drafting with PATCH also re-attempts the failed accounts at the new time). The request returns 202 as soon as the attempt is queued and the retried accounts are back in pending; in rare cases the 202 omits post, so read retriedAccounts or fetch the post. The result arrives through the usual post.published and post.error webhooks, which list only the accounts attempted in that run, or by polling GET /v1/posts/{id}. A failure that may have actually gone live on the platform (for example a timeout) can produce a duplicate post on that platform if it is retried.

Permissions: Requires posts:update and posts:publish. Access is limited by the API key creator's current organization membership and stored key ceiling. See Organization permissions.

POST
/v1/posts/{id}/retry

Path Parameters

id*string

Request Body

application/json
  1. body

Optional request body for retrying a failed post. An empty body retries every failed account on the post. A non-empty body must be JSON sent as application/json, and keys other than accounts are rejected.

accounts?array<>

Social account ids to retry, in the same form as the id returned by GET /v1/social-accounts and in the post's socialAccounts[].id. Every id must be a target of this post whose status is failed. Omit the field (or send an empty body) to retry every failed account on the post.

Items1 <= items <= 50

Response Body

Retry queued. The listed accounts are back in pending and will be attempted immediately.

application/json
  1. response

Retry accepted. Publishing runs asynchronously; the outcome arrives through the post.published / post.error webhooks or by polling GET /v1/posts/{id}.

success*boolean

Whether the retry was queued

post?

The post after the retry was queued. The retried accounts are back in pending status until the new publishing attempt finishes. Can be absent if the post could not be re-read after the retry was queued; the retry is still accepted, so use retriedAccounts or fetch the post with GET /v1/posts/{id}.

retriedAccounts*array<string>

Social account ids (in the public form used by socialAccounts[].id) that were reset to pending and will be attempted in this run.

Example Request
curl -X POST 'https://api.outstand.so/v1/posts/string/retry' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "success": true,  "post": {    "id": "string",    "orgId": "string",    "publishedAt": "2019-08-24T14:15:22Z",    "scheduledAt": "2019-08-24T14:15:22Z",    "isDraft": true,    "createdAt": "2019-08-24T14:15:22Z",    "socialAccounts": [      {        "id": "string",        "nickname": "string",        "network": "string",        "username": "string",        "status": "pending",        "error": "string",        "platformPostId": "string",        "platformPostUrl": "string",        "publishedAt": "2019-08-24T14:15:22Z"      }    ],    "containers": [      {        "id": "string",        "content": "string",        "media": [          {            "url": "string",            "filename": "string",            "processing": {              "status": "pending",              "sourceStatus": "pending",              "error": "string",              "probe": {                "containerFormat": "string",                "durationMs": 0,                "width": 0,                "height": 0,                "fps": 0,                "videoCodec": "string",                "audioCodec": "string",                "sizeBytes": 0,                "rotation": 0,                "moovAtFront": true,                "hasEditLists": true,                "property1": null,                "property2": null              },              "renditions": [                {                  "kind": "string",                  "status": "queued",                  "url": "string",                  "error": "string"                }              ],              "issues": [                {                  "level": "error",                  "code": "string",                  "message": "string",                  "network": "string",                  "fixableByTranscode": true                }              ]            }          }        ],        "publishResults": [          {            "accountId": "string",            "status": "published",            "platformCommentId": "string",            "error": "string",            "publishedAt": "2019-08-24T14:15:22Z"          }        ]      }    ]  },  "retriedAccounts": [    "string"  ]}