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

# Sync social post publish status

> Sync social post publish status

**CLI:**

```bash theme={null}
puffle calendar post sync-status
puffle calendar post sync-status --post-id <post-id>
```

## Overview

Sync social post publish status

This page documents `post /api/calendar/posts/sync-status`. Use the request and response sections on this page for accepted parameters, payload fields, response fields, and authentication behavior.

## AI agent notes

* Confirm the operation matches the user's intent before calling it.
* For write operations, confirm the user intends to change state.
* Surface validation, permission, and not-found errors instead of retrying unchanged.


## OpenAPI

````yaml post /api/calendar/posts/sync-status
openapi: 3.0.3
info:
  title: Puffle API
  version: 1.0.0
  description: >-
    HTTP API for the Puffle GTM platform - strategy planning, campaign-backed
    Outbound execution, Puffle Agent runs, sender management, and Unibox reply
    workflows. Designed for operation by both humans and autonomous AI agents.
    Agents should start at the [Agent Playbook](/guides/agent-playbook) which
    prescribes a workspace-context check (`GET /api/context`) and core user
    journeys with exact call ordering.
  contact:
    name: Puffle Support
    url: https://puffle.ai
servers:
  - url: https://app.puffle.ai
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Campaigns
    description: >-
      Campaign-backed Outbound execution. These endpoints manage draft,
      launching, active, paused, and completed Outbound runs with sequence
      nodes, contacts, and sender accounts.
  - name: Accounts
    description: Signed-in user account, settings, and workspace context endpoints.
  - name: Senders
    description: >-
      Connected sender accounts, email inboxes, sending domains, DNS
      verification, warmup, and sender capacity.
  - name: Socials
    description: >-
      Social post scheduling and inbox — schedule, publish, archive, and delete
      posts across LinkedIn, Twitter, Threads, Bluesky via the Late (late.ai)
      integration. Connect social accounts via OAuth, pull analytics, monitor
      mentions.
paths:
  /api/calendar/posts/sync-status:
    post:
      tags:
        - Socials
      summary: Sync social post publish status
      description: >-
        Reconcile every channel delivery with the social provider. A logical
        post becomes posted only after every selected channel publishes. Legacy
        combined deliveries remain supported.
      operationId: syncSocialPostStatus
      parameters:
        - name: postId
          in: query
          required: false
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Sync completed. Counts in `synced`; flipped IDs in `updated`.
          content:
            application/json:
              schema:
                type: object
                properties:
                  synced:
                    type: integer
                    minimum: 0
                    maximum: 9007199254740991
                    description: >-
                      Number of scheduled posts inspected after filtering for
                      due or active provider-backed deliveries.
                  updated:
                    type: array
                    items:
                      type: string
                      format: uuid
                    description: >-
                      Post IDs successfully flipped from `scheduled` to `posted`
                      as a result of this sync.
                  postsUrl:
                    type: string
                    description: Posts page for reviewing synchronized state.
                required:
                  - synced
                  - updated
                  - postsUrl
                additionalProperties: false
              examples:
                nothingToSync:
                  summary: No posts needed syncing
                  value:
                    synced: 0
                    updated: []
                    postsUrl: /profile/socials
                someUpdated:
                  summary: Two posts flipped to posted
                  value:
                    synced: 5
                    updated:
                      - pst_aaaa1111
                      - pst_aaaa2222
                    postsUrl: /profile/socials
        '401':
          description: Missing or invalid Bearer token.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
              examples:
                default:
                  value:
                    error: Unauthorized
        '404':
          description: User has no calendar yet.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
              examples:
                default:
                  value:
                    error: Calendar not found
        '500':
          description: Database error while fetching scheduled posts.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
              examples:
                default:
                  value:
                    error: Internal server error
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: pk_live_...

````