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

# Get social calendar publish readiness

> <Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

Returns whether Base44 can publish the app's Facebook posts, and to which Page.

A Facebook connection can share several Pages. When it shares one, posts go to it. When it shares
more than one and none is chosen, `facebook_page_needs_choice` is `true` and Facebook posts wait,
reported as `needs_reconnect` on the calendar, until you choose one with
[Choose the social calendar Facebook Page](/api-reference/choose-the-social-calendar-facebook-page).
`facebook_page_missing` is `true` when Facebook is connected but shares no Page at all; reconnect
Facebook and share a Page then.

This reads the Pages from Facebook on every call, so don't poll it.

Authenticate with a user bearer token or a personal API key. You need editor access to the app.
Social calendar access must be enabled for your account. This API is in developer preview (beta).

Responses include `X-Request-Id`. Once authentication passes, rate-limit responses include
`X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset` (Unix seconds).
Wait for `Retry-After` before retrying a rate-limited request.

Shares a base limit of 40 requests per minute per requester and app with social calendar reads and scheduling.



## OpenAPI

````yaml /developers/references/app-management/app-management-openapi.json get /api/apps/{app_id}/social-calendar/publish-readiness
openapi: 3.1.0
info:
  title: Base44 App Management API
  version: 1.0.0
servers:
  - url: https://app.base44.com
security:
  - PersonalAccessTokenAuth: []
paths:
  /api/apps/{app_id}/social-calendar/publish-readiness:
    get:
      summary: Get social calendar publish readiness
      description: >-
        <Info>This API is in beta. Endpoints, fields, and behavior may still
        change, so avoid depending on it in production.</Info>


        Returns whether Base44 can publish the app's Facebook posts, and to
        which Page.


        A Facebook connection can share several Pages. When it shares one, posts
        go to it. When it shares

        more than one and none is chosen, `facebook_page_needs_choice` is `true`
        and Facebook posts wait,

        reported as `needs_reconnect` on the calendar, until you choose one with

        [Choose the social calendar Facebook
        Page](/api-reference/choose-the-social-calendar-facebook-page).

        `facebook_page_missing` is `true` when Facebook is connected but shares
        no Page at all; reconnect

        Facebook and share a Page then.


        This reads the Pages from Facebook on every call, so don't poll it.


        Authenticate with a user bearer token or a personal API key. You need
        editor access to the app.

        Social calendar access must be enabled for your account. This API is in
        developer preview (beta).


        Responses include `X-Request-Id`. Once authentication passes, rate-limit
        responses include

        `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`
        (Unix seconds).

        Wait for `Retry-After` before retrying a rate-limited request.


        Shares a base limit of 40 requests per minute per requester and app with
        social calendar reads and scheduling.
      operationId: >-
        get_publish_readiness_api_api_apps__app_id__social_calendar_publish_readiness_get
      parameters:
        - name: app_id
          in: path
          required: true
          schema:
            type: string
            description: ID of the app whose social calendar you want.
            title: App Id
          description: ID of the app whose social calendar you want.
          example: 6820f3a4e7b91d003c45a1f2
        - name: X-Active-Branch-Id
          in: header
          required: false
          schema:
            type: string
            description: >-
              ID of the branch the editor shows. Used when `branch_id` is
              omitted, for users who work on protected-main branches.
            title: X-Active-Branch-Id
          description: >-
            ID of the branch the editor shows. Used when `branch_id` is omitted,
            for users who work on protected-main branches.
          example: 68f1a2b3c4d5e6f708192a3b
      responses:
        '200':
          description: The app's publish readiness.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublishReadinessResponse'
              example:
                facebook_page_missing: false
                facebook_pages:
                  - id: '110494725341826'
                    name: Blue Bottle Coffee
                  - id: '204918334512077'
                    name: Blue Bottle Roasters
                facebook_page_needs_choice: true
          headers:
            X-Request-Id:
              description: Request identifier for support.
              schema:
                type: string
            X-RateLimit-Limit:
              description: Effective request limit for this window.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests left in this window.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: Window reset time in Unix seconds.
              schema:
                type: integer
        '401':
          description: '`unauthenticated`. Missing or invalid user credentials.'
          content:
            application/json:
              examples:
                unauthenticated:
                  summary: unauthenticated
                  value:
                    error:
                      code: unauthenticated
                      message: Authentication required
                      details: {}
              schema:
                $ref: '#/components/schemas/StandardErrorEnvelope'
          headers:
            X-Request-Id:
              description: Request identifier for support.
              schema:
                type: string
            X-RateLimit-Limit:
              description: Effective request limit for this window.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests left in this window.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: Window reset time in Unix seconds.
              schema:
                type: integer
        '403':
          description: '`forbidden`. You don''t have editor access to the app.'
          content:
            application/json:
              examples:
                forbidden:
                  summary: forbidden
                  value:
                    error:
                      code: forbidden
                      message: You don't have editor access to this app.
                      details: {}
              schema:
                $ref: '#/components/schemas/StandardErrorEnvelope'
          headers:
            X-Request-Id:
              description: Request identifier for support.
              schema:
                type: string
            X-RateLimit-Limit:
              description: Effective request limit for this window.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests left in this window.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: Window reset time in Unix seconds.
              schema:
                type: integer
        '404':
          description: >-
            `not_found`. The app doesn't exist, or social calendar access isn't
            enabled.
          content:
            application/json:
              examples:
                not_found:
                  summary: not_found
                  value:
                    error:
                      code: not_found
                      message: Not found
                      details: {}
              schema:
                $ref: '#/components/schemas/StandardErrorEnvelope'
          headers:
            X-Request-Id:
              description: Request identifier for support.
              schema:
                type: string
            X-RateLimit-Limit:
              description: Effective request limit for this window.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests left in this window.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: Window reset time in Unix seconds.
              schema:
                type: integer
        '429':
          description: '`rate_limited`. Wait for the interval in `Retry-After`.'
          content:
            application/json:
              examples:
                rate_limited:
                  summary: rate_limited
                  value:
                    error:
                      code: rate_limited
                      message: Rate limit exceeded.
                      details: {}
              schema:
                $ref: '#/components/schemas/StandardErrorEnvelope'
          headers:
            X-Request-Id:
              description: Request identifier for support.
              schema:
                type: string
            X-RateLimit-Limit:
              description: Effective request limit for this window.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests left in this window.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: Window reset time in Unix seconds.
              schema:
                type: integer
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
        '503':
          description: >-
            Database temporarily unavailable (`database_unavailable`): the data
            cluster did not answer in time. Retry after the `Retry-After`
            seconds.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardErrorEnvelope'
              examples:
                database_unavailable:
                  summary: database_unavailable
                  value:
                    error:
                      code: database_unavailable
                      message: Database temporarily unavailable, please retry
                      details: {}
      security:
        - PersonalAccessTokenAuth:
            - full_access
        - WorkspaceApiKeyAuth:
            - full_access
        - WorkspaceApiKeyBearerAuth:
            - full_access
components:
  schemas:
    PublishReadinessResponse:
      properties:
        facebook_page_missing:
          type: boolean
          title: Facebook Page Missing
          description: >-
            Whether Facebook is connected but shares no Page, so Facebook posts
            can't publish until the account is reconnected with a Page chosen.
          example: false
        facebook_pages:
          items:
            $ref: '#/components/schemas/FacebookPageOut'
          type: array
          title: Facebook Pages
          description: >-
            Pages the Facebook connection shares with Base44. Empty when
            Facebook isn't connected.
        facebook_page_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Facebook Page Id
          description: >-
            The Page Facebook posts publish to, or `null` when no Page is
            chosen, the chosen Page is no longer shared, or the Pages couldn't
            be read.
          example: '110494725341826'
        facebook_page_needs_choice:
          type: boolean
          title: Facebook Page Needs Choice
          description: >-
            Whether Facebook posts wait until someone chooses one of
            `facebook_pages`: several are shared and none is chosen, or the
            chosen Page is no longer shared.
          default: false
          example: false
      type: object
      required:
        - facebook_page_missing
      title: PublishReadinessResponse
      description: >-
        Connected accounts Base44 still can't publish to, and the Facebook Page
        posts go to.
    StandardErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/StandardError'
          description: What went wrong.
      type: object
      required:
        - error
      title: StandardErrorEnvelope
      description: The error body returned in the standard envelope.
    FacebookPageOut:
      properties:
        id:
          type: string
          title: Id
          description: Facebook Page ID.
          example: '110494725341826'
        name:
          type: string
          title: Name
          description: Page name as Facebook shows it.
          example: Blue Bottle Coffee
      type: object
      required:
        - id
        - name
      title: FacebookPageOut
    StandardError:
      properties:
        code:
          type: string
          title: Code
          description: >-
            Stable machine-readable cause of the failure. Match on this, not on
            `message`.
          example: not_found
        message:
          type: string
          title: Message
          description: Human-readable explanation. It isn't a stable contract.
          example: App not found
        details:
          additionalProperties: true
          type: object
          title: Details
          description: >-
            Structured context for the failure, or an empty object when there's
            none.
          example: {}
      type: object
      required:
        - code
        - message
      title: StandardError
  securitySchemes:
    PersonalAccessTokenAuth:
      type: http
      scheme: bearer
      description: >-
        Personal access token, sent as `Authorization: Bearer <token>`. Each
        operation lists the permission it needs: `read_only` or `full_access`. A
        full-access token can call every operation. A read-only token can call
        only the operations that list `read_only`; anything else returns 403
        `read_only_credential_route_not_allowed`.
    WorkspaceApiKeyAuth:
      type: apiKey
      in: header
      name: api_key
      description: >-
        Workspace API key, sent as `api_key: <key>`. Each operation that accepts
        one lists what the key needs: a permission, `read_only` or
        `full_access`, like a personal access token, or a scope. A key without
        the scope gets 403 `workspace_api_key_scope_required`.
    WorkspaceApiKeyBearerAuth:
      type: http
      scheme: bearer
      description: >-
        Workspace API key, sent as `Authorization: Bearer <key>`. Accepted
        wherever `api_key` is, with the same permission.

````

## Related topics

- [Choose the social calendar Facebook Page](https://docs.base44.com/api-reference/choose-the-social-calendar-facebook-page.md)
- [Get social calendar automation](https://docs.base44.com/api-reference/get-social-calendar-automation.md)
- [Get scheduled post](https://docs.base44.com/api-reference/get-scheduled-post.md)
- [Promoting your app on social media](https://docs.base44.com/promoting-your-app/social-content.md)
- [Building a website](https://docs.base44.com/Getting-Started/building-a-website.md)


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