SocialKit
APIPosts

Retry a failed account

Publishes a post again to one account where publishing failed, without touching the accounts that already published.

When a post goes to several accounts and some fail, use this to send it again to one failed account. The other accounts are left alone, so nothing is posted twice. A multi-part post continues from the part that failed; the parts already live stay as they are.

The call returns at once and publishing runs in the background. Poll Get a post and read publish_status of that account in accounts: published or failed when it ends.

Request

  • Method: POST
  • URL: https://app.socialk.it/core/api/<workspaceUuid>/posts/retry/<postUuid>/<accountUuid>
  • Authorization: Bearer <personal-key>
  • Roles: Admin, Member (see Permissions)

Path parameters

ParameterTypeDescription
workspaceUuidstringUUID of the workspace.
postUuidstringUUID of the post.
accountUuidstringUUID of the account to retry (the uuid field of the account, not the numeric id). The account must be one of the post's accounts and its publish_status must be failed.

Body

No body.

Example

curl -X POST 'https://app.socialk.it/core/api/<workspaceUuid>/posts/retry/<postUuid>/<accountUuid>' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer <personal-key>'

Response

{
  "success": true,
  "status": "publishing",
  "publish_progress": {
    "total": 2,
    "published": 1,
    "failed": 0
  }
}
FieldTypeDescription
successbooleanAlways true.
statusstringStatus of the post after the call; publishing once the retry has started.
publish_progressobjectHow many accounts the post has (total), and how many of them are published or failed now.
{
  "message": "Unauthenticated."
}

The other 422 errors are account (This account is not part of this post., including a UUID that matches no account) and publishing (This post is still publishing. Wait for it to finish before retrying.). The 403 also appears when the workspace's plan does not allow publishing.

On this page