Automattic Publicize API

The publicize API from Automattic — 15 operation(s) for publicize.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 24

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /wpcom/v2/sites/{wpcom_site}/publicize/connection-test-results Test social connections for Publicize · GET /wpcom/v2/sites/{wpcom_site}/publicize/connection-test-results #
Ask an LLM
“Are my social media connections for Publicize working?”
“How do I test a Publicize connection?”
Tell an agent
Test the Publicize connections on site {wpcom_site}.
Check Publicize connection test results for site {wpcom_site}.
GET /wpcom/v2/sites/{wpcom_site}/publicize/connections List social connections for Publicize · GET /wpcom/v2/sites/{wpcom_site}/publicize/connections #
Ask an LLM
“Which social media accounts are connected to Publicize?”
“Can I test the Publicize connections while listing them?”
Tell an agent
List Publicize connections on site {wpcom_site}.
List Publicize connections on site {wpcom_site} with connections tested set to {test_connections}.
POST /wpcom/v2/sites/{wpcom_site}/publicize/connections Connect a social account to Publicize · POST /wpcom/v2/sites/{wpcom_site}/publicize/connections #
Ask an LLM
“How do I connect a new social media account to Publicize?”
“Can I connect a Facebook account to Publicize?”
Tell an agent
Connect keyring connection {keyring_connection_ID} to Publicize on site {wpcom_site}.
Connect keyring connection {keyring_connection_ID} to Publicize on site {wpcom_site} for user {external_user_ID}.
POST /wpcom/v2/sites/{wpcom_site}/publicize/connections/{connection_id} Re-share a Publicize connection · POST /wpcom/v2/sites/{wpcom_site}/publicize/connections/{connection_id} #
Ask an LLM
“Can I re-share a Publicize connection I already connected?”
“What does re-sharing a Publicize connection do?”
Tell an agent
Re-share Publicize connection {connection_id} on site {wpcom_site} with shared set to {shared}.
Re-share Publicize connection {connection_id} on site {wpcom_site}.
PUT /wpcom/v2/sites/{wpcom_site}/publicize/connections/{connection_id} Share a Publicize connection · PUT /wpcom/v2/sites/{wpcom_site}/publicize/connections/{connection_id} #
Ask an LLM
“Can I make a Publicize connection shared with other users?”
“How do I change the sharing setting of one Publicize connection?”
Tell an agent
Set Publicize connection {connection_id} on site {wpcom_site} to shared {shared}.
Make Publicize connection {connection_id} on site {wpcom_site} shared.
PATCH /wpcom/v2/sites/{wpcom_site}/publicize/connections/{connection_id} Edit a Publicize connection · PATCH /wpcom/v2/sites/{wpcom_site}/publicize/connections/{connection_id} #
Ask an LLM
“Can I change the sharing setting of an existing Publicize connection?”
“How do I edit a Publicize connection?”
Tell an agent
Update Publicize connection {connection_id} on site {wpcom_site} to shared {shared}.
Edit Publicize connection {connection_id} on site {wpcom_site}.
DELETE /wpcom/v2/sites/{wpcom_site}/publicize/connections/{connection_id} Disconnect a social account from Publicize · DELETE /wpcom/v2/sites/{wpcom_site}/publicize/connections/{connection_id} #
Ask an LLM
“How do I disconnect a social media account from Publicize?”
“Can I remove a Publicize connection?”
Tell an agent destructive · confirm first
Disconnect Publicize connection {connection_id} from site {wpcom_site}.
Remove Publicize connection {connection_id} on site {wpcom_site}.
GET /wpcom/v2/sites/{wpcom_site}/publicize/keyring-result Check a Publicize connection request · GET /wpcom/v2/sites/{wpcom_site}/publicize/keyring-result #
Ask an LLM
“Is my Publicize connection request still pending?”
“How do I check the result of a Publicize connection attempt?”
Tell an agent
Check Publicize connection request {request_id} on site {wpcom_site}.
Get the Publicize keyring result for request {request_id} on site {wpcom_site}.
GET /wpcom/v2/sites/{wpcom_site}/publicize/message-templates/placeholders List Publicize message template placeholders · GET /wpcom/v2/sites/{wpcom_site}/publicize/message-templates/placeholders #
Ask an LLM
“What placeholders can I use in Publicize post messages?”
“Which message template variables does Publicize support?”
Tell an agent
List Publicize message template placeholders for site {wpcom_site}.
Show the message template variables Publicize accepts on site {wpcom_site}.
GET /wpcom/v2/sites/{wpcom_site}/publicize/published-actions List Publicize posts already shared · GET /wpcom/v2/sites/{wpcom_site}/publicize/published-actions #
Ask an LLM
“Which posts has Publicize already shared?”
“Can I see the Publicize history of a site?”
Tell an agent
List Publicize posts already shared on site {wpcom_site}.
Show the Publicize history for site {wpcom_site}.
POST /wpcom/v2/sites/{wpcom_site}/publicize/render-messages Preview Publicize messages for a post · POST /wpcom/v2/sites/{wpcom_site}/publicize/render-messages #
Ask an LLM
“How will a Publicize post look before I share it?”
“Can I preview Publicize messages for a post?”
Tell an agent
Render Publicize messages for post {post_id} on site {wpcom_site} with inputs {items}.
Preview Publicize messages for post {post_id} on site {wpcom_site} using {items} and intent {post_intent}.
GET /wpcom/v2/sites/{wpcom_site}/publicize/scheduled-actions List scheduled Publicize posts · GET /wpcom/v2/sites/{wpcom_site}/publicize/scheduled-actions #
Ask an LLM
“Which posts are scheduled to be shared on social media?”
“Can I filter scheduled Publicize posts by post?”
Tell an agent
List scheduled Publicize posts on site {wpcom_site}.
List scheduled Publicize posts on site {wpcom_site} for post {post_id}.
POST /wpcom/v2/sites/{wpcom_site}/publicize/scheduled-actions Schedule a social share for a post · POST /wpcom/v2/sites/{wpcom_site}/publicize/scheduled-actions #
Ask an LLM
“How do I schedule a post to be auto-shared on a social network?”
“Can I schedule a social network share for the same post later?”
Tell an agent
Schedule a social share of post {post_id} through connection {connection_id} for site {wpcom_site}.
Schedule connection {connection_id} to auto-share post {post_id} on site {wpcom_site} at {timestamp}.
GET /wpcom/v2/sites/{wpcom_site}/publicize/scheduled-actions/{action_id} Get a scheduled Publicize post · GET /wpcom/v2/sites/{wpcom_site}/publicize/scheduled-actions/{action_id} #
Ask an LLM
“What message and schedule does a scheduled Publicize post have?”
“Can I view one scheduled Publicize action?”
Tell an agent
Get scheduled Publicize action {action_id} on site {wpcom_site}.
Show the scheduled Publicize post {action_id} on site {wpcom_site}.
POST /wpcom/v2/sites/{wpcom_site}/publicize/scheduled-actions/{action_id} Cancel a scheduled Publicize post · POST /wpcom/v2/sites/{wpcom_site}/publicize/scheduled-actions/{action_id} #
Ask an LLM
“Can I cancel a scheduled Publicize post?”
“How do I stop a Publicize post from going out?”
Tell an agent destructive · confirm first
Cancel scheduled Publicize action {action_id} on site {wpcom_site}.
Stop scheduled Publicize post {action_id} on site {wpcom_site} from sharing.
PUT /wpcom/v2/sites/{wpcom_site}/publicize/scheduled-actions/{action_id} Reschedule a Publicize post · PUT /wpcom/v2/sites/{wpcom_site}/publicize/scheduled-actions/{action_id} #
Ask an LLM
“Can I change the date of a scheduled Publicize post?”
“How do I reschedule a Publicize post?”
Tell an agent
Reschedule Publicize action {action_id} on site {wpcom_site} to {timestamp}.
Change the message of scheduled Publicize post {action_id} on site {wpcom_site} to {message}.
PATCH /wpcom/v2/sites/{wpcom_site}/publicize/scheduled-actions/{action_id} Edit a scheduled Publicize post · PATCH /wpcom/v2/sites/{wpcom_site}/publicize/scheduled-actions/{action_id} #
Ask an LLM
“Can I change the message of a scheduled Publicize post?”
“How do I edit a Publicize post that's already scheduled?”
Tell an agent
Edit scheduled Publicize action {action_id} on site {wpcom_site} to message {message}.
Change the schedule of scheduled Publicize post {action_id} on site {wpcom_site} to {timestamp}.
DELETE /wpcom/v2/sites/{wpcom_site}/publicize/scheduled-actions/{action_id} Cancel a scheduled social share · DELETE /wpcom/v2/sites/{wpcom_site}/publicize/scheduled-actions/{action_id} #
Ask an LLM
“Can I cancel a social share that is scheduled but not yet posted?”
“How do I remove a scheduled social network action?”
Tell an agent destructive · confirm first
Cancel scheduled social share {action_id} on site {wpcom_site}.
Remove the scheduled share action {action_id} from site {wpcom_site}.
GET /wpcom/v2/sites/{wpcom_site}/publicize/services List Publicize social services · GET /wpcom/v2/sites/{wpcom_site}/publicize/services #
Ask an LLM
“Which social media services does Publicize support?”
“What Publicize services are available?”
Tell an agent
List Publicize services for site {wpcom_site}.
Show the social services Publicize supports on site {wpcom_site}.
POST /wpcom/v2/sites/{wpcom_site}/publicize/share-post/{postId} Share a post on social media · POST /wpcom/v2/sites/{wpcom_site}/publicize/share-post/{postId} #
Ask an LLM
“How do I share a post on social media with Publicize?”
“Can I skip certain connections when sharing a post?”
Tell an agent
Share post {postId} on site {wpcom_site} with Publicize message {message}.
Share post {postId} on site {wpcom_site} with Publicize message {message} skipping connections {skipped_connections}.
GET /wpcom/v2/sites/{wpcom_site}/publicize/share-status Check a post's social share status · GET /wpcom/v2/sites/{wpcom_site}/publicize/share-status #
Ask an LLM
“Has my post been shared on social media?”
“Can I check the Publicize share status for one post?”
Tell an agent
Get the Publicize share status for post {post_id} on site {wpcom_site}.
Show which social networks shared post {post_id} on site {wpcom_site}.
POST /wpcom/v2/sites/{wpcom_site}/publicize/share-status/sync Sync a post's social share status · POST /wpcom/v2/sites/{wpcom_site}/publicize/share-status/sync #
Ask an LLM
“How do I sync the Publicize share status for a post?”
“Can I update the social share status of one post?”
Tell an agent
Sync the Publicize share status for post {post_id} on site {wpcom_site} with {shares}.
Update the social share status of post {post_id} on site {wpcom_site}.
GET /wpcom/v2/sites/{wpcom_site}/publicize/social-image-generator/font-options List fonts for social image generation · GET /wpcom/v2/sites/{wpcom_site}/publicize/social-image-generator/font-options #
Ask an LLM
“Which fonts can I use for social media images?”
“What font options are available for Publicize social image generation?”
Tell an agent
List the font options for social image generation on site {wpcom_site}.
Show which fonts are available for Publicize social images on site {wpcom_site}.
POST /wpcom/v2/sites/{wpcom_site}/publicize/social-image-generator/generate-token Generate a social media image · POST /wpcom/v2/sites/{wpcom_site}/publicize/social-image-generator/generate-toke… #
Ask an LLM
“Can I generate a social media image from my post text?”
“Is it possible to use a background image when generating a Publicize social image?”
Tell an agent
Generate a social image for {text} on site {wpcom_site}.
Generate a social image for {text} using template {template} and font {font} on site {wpcom_site}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/automattic:automattic-publicize-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

automattic-publicize-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: WordPress.com REST API — wpcom/v2 namespace Publicize API
  version: v2
  description: Derived by API Evangelist from the WordPress.com REST API route index published at https://public-api.wordpress.com/wpcom/v2/. Paths, HTTP methods, and parameter names/types/descriptions/defaults are taken verbatim from that index. Response schemas are not published in the route index, so successful responses are described but not schematised; the error envelope was observed live on public-api.wordpress.com.
  contact:
    name: Automattic
    url: https://developer.wordpress.com/docs/api/
  x-derived-from: https://public-api.wordpress.com/wpcom/v2/
  x-derived-by: API Evangelist enrichment pipeline
servers:
- url: https://public-api.wordpress.com
security:
- bearerAuth: []
tags:
- name: publicize
paths:
  /wpcom/v2/sites/{wpcom_site}/publicize/connection-test-results:
    get:
      operationId: getWpcomV2SitesbyWpcomSitePublicizeConnectionTestResults
      summary: GET /wpcom/v2/sites/{wpcom_site}/publicize/connection-test-results
      tags:
      - publicize
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/sites/{wpcom_site}/publicize/connections:
    get:
      operationId: getWpcomV2SitesbyWpcomSitePublicizeConnections
      summary: GET /wpcom/v2/sites/{wpcom_site}/publicize/connections
      tags:
      - publicize
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      - name: test_connections
        in: query
        required: false
        schema:
          type: boolean
        description: Whether to test connections.
    post:
      operationId: postWpcomV2SitesbyWpcomSitePublicizeConnections
      summary: POST /wpcom/v2/sites/{wpcom_site}/publicize/connections
      tags:
      - publicize
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                keyring_connection_ID:
                  type: integer
                  description: Keyring connection ID.
                external_user_ID:
                  type: string
                  description: External User Id - in case of services like Facebook.
                shared:
                  type: boolean
                  description: Whether the connection is shared with other users.
              required:
              - keyring_connection_ID
  /wpcom/v2/sites/{wpcom_site}/publicize/connections/{connection_id}:
    post:
      operationId: postWpcomV2SitesbyWpcomSitePublicizeConnectionsbyConnectionId
      summary: POST /wpcom/v2/sites/{wpcom_site}/publicize/connections/{connection_id}
      tags:
      - publicize
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      - name: connection_id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                shared:
                  type: boolean
                  description: Whether the connection is shared with other users.
    put:
      operationId: putWpcomV2SitesbyWpcomSitePublicizeConnectionsbyConnectionId
      summary: PUT /wpcom/v2/sites/{wpcom_site}/publicize/connections/{connection_id}
      tags:
      - publicize
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      - name: connection_id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                shared:
                  type: boolean
                  description: Whether the connection is shared with other users.
    patch:
      operationId: patchWpcomV2SitesbyWpcomSitePublicizeConnectionsbyConnectionId
      summary: PATCH /wpcom/v2/sites/{wpcom_site}/publicize/connections/{connection_id}
      tags:
      - publicize
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      - name: connection_id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                shared:
                  type: boolean
                  description: Whether the connection is shared with other users.
    delete:
      operationId: deleteWpcomV2SitesbyWpcomSitePublicizeConnectionsbyConnectionId
      summary: DELETE /wpcom/v2/sites/{wpcom_site}/publicize/connections/{connection_id}
      tags:
      - publicize
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      - name: connection_id
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/sites/{wpcom_site}/publicize/keyring-result:
    get:
      operationId: getWpcomV2SitesbyWpcomSitePublicizeKeyringResult
      summary: GET /wpcom/v2/sites/{wpcom_site}/publicize/keyring-result
      tags:
      - publicize
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      - name: request_id
        in: query
        required: true
        schema:
          type: string
        description: ID of the connect request.
  /wpcom/v2/sites/{wpcom_site}/publicize/message-templates/placeholders:
    get:
      operationId: getWpcomV2SitesbyWpcomSitePublicizeMessageTemplatesPlaceholders
      summary: GET /wpcom/v2/sites/{wpcom_site}/publicize/message-templates/placeholders
      tags:
      - publicize
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/sites/{wpcom_site}/publicize/published-actions:
    get:
      operationId: getWpcomV2SitesbyWpcomSitePublicizePublishedActions
      summary: GET /wpcom/v2/sites/{wpcom_site}/publicize/published-actions
      tags:
      - publicize
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/sites/{wpcom_site}/publicize/render-messages:
    post:
      operationId: postWpcomV2SitesbyWpcomSitePublicizeRenderMessages
      summary: POST /wpcom/v2/sites/{wpcom_site}/publicize/render-messages
      tags:
      - publicize
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                post_id:
                  type: integer
                  description: The ID of the post to render the messages for.
                items:
                  type: array
                  items:
                    type: object
                  description: List of per-connection render inputs.
                post_intent:
                  type: object
                  default: []
                  description: Edited post fields to use when rendering unsaved preview changes.
              required:
              - post_id
              - items
  /wpcom/v2/sites/{wpcom_site}/publicize/scheduled-actions:
    get:
      operationId: getWpcomV2SitesbyWpcomSitePublicizeScheduledActions
      summary: GET /wpcom/v2/sites/{wpcom_site}/publicize/scheduled-actions
      tags:
      - publicize
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      - name: post_id
        in: query
        required: false
        schema:
          type: integer
        description: The post ID to filter the items by.
    post:
      operationId: postWpcomV2SitesbyWpcomSitePublicizeScheduledActions
      summary: POST /wpcom/v2/sites/{wpcom_site}/publicize/scheduled-actions
      tags:
      - publicize
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                post_id:
                  type: integer
                connection_id:
                  type: integer
                message:
                  type: string
                share_date:
                  type: integer
                  description: Deprecated in favor of timestamp.
                timestamp:
                  type: integer
                  description: GMT/UTC Unix timestamp in seconds for the action.
              required:
              - post_id
              - connection_id
  /wpcom/v2/sites/{wpcom_site}/publicize/scheduled-actions/{action_id}:
    get:
      operationId: getWpcomV2SitesbyWpcomSitePublicizeScheduledActionsbyActionId
      summary: GET /wpcom/v2/sites/{wpcom_site}/publicize/scheduled-actions/{action_id}
      tags:
      - publicize
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      - name: action_id
        in: path
        required: true
        schema:
          type: string
    post:
      operationId: postWpcomV2SitesbyWpcomSitePublicizeScheduledActionsbyActionId
      summary: POST /wpcom/v2/sites/{wpcom_site}/publicize/scheduled-actions/{action_id}
      tags:
      - publicize
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      - name: action_id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                message:
                  type: string
                share_date:
                  type: integer
                  description: Deprecated in favor of timestamp.
                timestamp:
                  type: integer
                  description: GMT/UTC Unix timestamp in seconds for the action.
    put:
      operationId: putWpcomV2SitesbyWpcomSitePublicizeScheduledActionsbyActionId
      summary: PUT /wpcom/v2/sites/{wpcom_site}/publicize/scheduled-actions/{action_id}
      tags:
      - publicize
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      - name: action_id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                message:
                  type: string
                share_date:
                  type: integer
                  description: Deprecated in favor of timestamp.
                timestamp:
                  type: integer
                  description: GMT/UTC Unix timestamp in seconds for the action.
    patch:
      operationId: patchWpcomV2SitesbyWpcomSitePublicizeScheduledActionsbyActionId
      summary: PATCH /wpcom/v2/sites/{wpcom_site}/publicize/scheduled-actions/{action_id}
      tags:
      - publicize
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      - name: action_id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                message:
                  type: string
                share_date:
                  type: integer
                  description: Deprecated in favor of timestamp.
                timestamp:
                  type: integer
                  description: GMT/UTC Unix timestamp in seconds for the action.
    delete:
      operationId: deleteWpcomV2SitesbyWpcomSitePublicizeScheduledActionsbyActionId
      summary: DELETE /wpcom/v2/sites/{wpcom_site}/publicize/scheduled-actions/{action_id}
      tags:
      - publicize
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      - name: action_id
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/sites/{wpcom_site}/publicize/services:
    get:
      operationId: getWpcomV2SitesbyWpcomSitePublicizeServices
      summary: GET /wpcom/v2/sites/{wpcom_site}/publicize/services
      tags:
      - publicize
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/sites/{wpcom_site}/publicize/share-post/{postId}:
    post:
      operationId: postWpcomV2SitesbyWpcomSitePublicizeSharePostbyPostid
      summary: POST /wpcom/v2/sites/{wpcom_site}/publicize/share-post/{postId}
      tags:
      - publicize
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      - name: postId
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                message:
                  type: string
                  description: The message to share.
                skipped_connections:
                  type: array
                  items: {}
                  description: Array of external connection IDs to skip sharing.
                async:
                  type: boolean
                  default: false
                  description: Whether to share the post asynchronously.
              required:
              - message
  /wpcom/v2/sites/{wpcom_site}/publicize/share-status:
    get:
      operationId: getWpcomV2SitesbyWpcomSitePublicizeShareStatus
      summary: GET /wpcom/v2/sites/{wpcom_site}/publicize/share-status
      tags:
      - publicize
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      - name: post_id
        in: query
        required: true
        schema:
          type: integer
        description: The post ID to filter the items by.
  /wpcom/v2/sites/{wpcom_site}/publicize/share-status/sync:
    post:
      operationId: postWpcomV2SitesbyWpcomSitePublicizeShareStatusSync
      summary: POST /wpcom/v2/sites/{wpcom_site}/publicize/share-status/sync
      tags:
      - publicize
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                post_id:
                  type: integer
                  description: The post ID to update the data for.
                shares:
                  type: array
                  items:
                    type: object
                  description: The share status items.
              required:
              - post_id
              - shares
  /wpcom/v2/sites/{wpcom_site}/publicize/social-image-generator/font-options:
    get:
      operationId: getWpcomV2SitesbyWpcomSitePublicizeSocialImageGeneratorFontOptions
      summary: GET /wpcom/v2/sites/{wpcom_site}/publicize/social-image-generator/font-options
      tags:
      - publicize
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/sites/{wpcom_site}/publicize/social-image-generator/generate-token:
    post:
      operationId: postWpcomV2SitesbyWpcomSitePublicizeSocialImageGeneratorGenerateToken
      summary: POST /wpcom/v2/sites/{wpcom_site}/publicize/social-image-generator/generate-toke…
      tags:
      - publicize
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                text:
                  type: string
                  description: The text to be used to generate the image.
                image_url:
                  description: The URL of the background image to use when generating the social image.
                template:
                  type: string
                  enum:
                  - highway
                  - dois
                  - fullscreen
                  - edge
                  description: The template slug.
                font:
                  type: string
                  description: The font slug.
              required:
              - text
components:
  schemas:
    WPRestError:
      type: object
      description: WordPress REST API error envelope (observed on public-api.wordpress.com).
      properties:
        code:
          type: string
          example: rest_unauthorized
        message:
          type: string
          example: Authentication required.
        data:
          type: object
          properties:
            status:
              type: integer
              example: 401
  securitySchemes:
    oauth2:
      type: oauth2
      description: WordPress.com OAuth 2.1, per https://public-api.wordpress.com/.well-known/openid-configuration
      flows:
        authorizationCode:
          authorizationUrl: https://public-api.wordpress.com/oauth2-1/authorize
          tokenUrl: https://public-api.wordpress.com/oauth2-1/token
          refreshUrl: https://public-api.wordpress.com/oauth2-1/token
          scopes:
            global: ''
            auth: ''
            openid: ''
            profile: ''
            email: ''
            users: ''
            sites: ''
            posts: ''
            comments: ''
            taxonomy: ''
            follow: ''
            sharing: ''
            freshly-pressed: ''
            notifications: ''
            insights: ''
            read: ''
            stats: ''
            media: ''
            menus: ''
            batch: ''
            videos: ''
    bearerAuth:
      type: http
      scheme: bearer