> ## Documentation Index
> Fetch the complete documentation index at: https://api.onlysocial.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Retry a failed account

> Publishes the post again on one account that failed. The post's other accounts are left alone. Items already live on this account are not sent again: when only the first comment failed, only the comment is sent. The account must have failed, and the post must not be publishing.

**Required permission:** `publishing:posts:publish`



## OpenAPI

````yaml /api-reference/publishing.openapi.json post /{workspace}/posts/retry/{post}/{account}
openapi: 3.1.0
info:
  title: Publishing API
  version: 1.0.0
  description: >-
    Social accounts, posts, scheduling, approval, tags, media and analytics for
    one workspace. Authenticate with a workspace API key or a personal access
    token; the workspace UUID is part of every URL.
servers:
  - url: https://app.onlysocial.io/os/api
    description: OnlySocial
security:
  - bearerAuth: []
  - apiKeyHeader: []
tags:
  - name: Diagnostics
  - name: Workspaces
  - name: Accounts
  - name: Posts
  - name: Media
  - name: Tags
  - name: Analytics
    description: >-
      Followers, reach, engagement and post performance, as the analytics
      dashboard shows them, plus when to post. Dates are UTC days unless a
      `timezone` is sent. Figures compared with the previous period of the same
      length are `{value, change}`, where `change` is a percentage (`100` when
      the previous period was zero, `null` when both are). Time series are lists
      of `{date, value}` points; breakdowns (ages, countries, keywords) are
      lists of `{label, value}`.
paths:
  /{workspace}/posts/retry/{post}/{account}:
    post:
      tags:
        - Posts
      summary: Retry a failed account
      description: >-
        Publishes the post again on one account that failed. The post's other
        accounts are left alone. Items already live on this account are not sent
        again: when only the first comment failed, only the comment is sent. The
        account must have failed, and the post must not be publishing.


        **Required permission:** `publishing:posts:publish`
      operationId: posts.retryAccount
      parameters:
        - name: workspace
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: >-
            Your workspace UUID. With a workspace API key it must be the key's
            workspace; a personal access token works in every workspace you
            belong to.
        - name: post
          in: path
          required: true
          schema:
            type: string
          description: Post UUID.
        - name: account
          in: path
          required: true
          schema:
            type: string
          description: Account UUID.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  status:
                    type: string
                    example: publishing
                    description: The post's status.
                  publish_progress:
                    type: object
                    description: How many of the post's accounts are done.
                    properties:
                      total:
                        type: integer
                      published:
                        type: integer
                      failed:
                        type: integer
        '422':
          description: >-
            The account is not in the post (`account`), the post is still
            publishing (`publishing`), or the account did not fail (`status`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
components:
  schemas:
    ValidationError:
      type: object
      properties:
        message:
          type: string
          example: The date range may span at most 366 days.
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          example:
            date_to:
              - The date range may span at most 366 days.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        A workspace API key (`Authorization: Bearer osk_...`) or a personal
        access token.
    apiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        A workspace API key in the `x-api-key` header. Personal access tokens
        must use `Authorization: Bearer`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.