Automattic Wc API

The wc API from Automattic — 20 operation(s) for wc.

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 28

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}/wc/meta/connection/connect Connect a site to a WooCommerce store · GET /wpcom/v2/sites/{wpcom_site}/wc/meta/connection/connect #
Ask an LLM
“How do I connect my WordPress.com site to a WooCommerce store?”
“Where do I return after authorizing a WooCommerce connection?”
Tell an agent
Connect WooCommerce store {wpcom_site} to {return_url}.
Start the WooCommerce connection for site {wpcom_site}.
GET /wpcom/v2/sites/{wpcom_site}/wc/meta/connection/disconnect Disconnect a WooCommerce store connection · GET /wpcom/v2/sites/{wpcom_site}/wc/meta/connection/disconnect #
Ask an LLM
“How do I disconnect my site from a WooCommerce store?”
“Can I end the WooCommerce connection without deleting the store?”
Tell an agent destructive · confirm first
Disconnect WooCommerce store {wpcom_site}.
End the WooCommerce connection on site {wpcom_site}.
GET /wpcom/v2/sites/{wpcom_site}/wc/meta/connection/status Check a WooCommerce store connection status · GET /wpcom/v2/sites/{wpcom_site}/wc/meta/connection/status #
Ask an LLM
“Is my site still connected to the WooCommerce store?”
“What state is the WooCommerce connection in?”
Tell an agent
Check the WooCommerce connection status for {wpcom_site}.
Show whether site {wpcom_site} is connected to WooCommerce.
GET /wpcom/v2/sites/{wpcom_site}/wc/meta/products-{products_token}.csv Download a WooCommerce product export CSV · GET /wpcom/v2/sites/{wpcom_site}/wc/meta/products-{products_token}.csv #
Ask an LLM
“How do I export my WooCommerce products as a CSV?”
“Can I download a product export using its token?”
Tell an agent
Download the WooCommerce product CSV for {wpcom_site} with token {products_token}.
Export products from site {wpcom_site} using export token {products_token}.
GET /wpcom/v2/sites/{wpcom_site}/wc/meta/{service}/{path} Read a WooCommerce store API endpoint · GET /wpcom/v2/sites/{wpcom_site}/wc/meta/{service}/{path} #
Ask an LLM
“Can I read data from my WooCommerce store through the site connection?”
“What does the WooCommerce API return for a given service path?”
Tell an agent
Read the WooCommerce {service} endpoint {path} on {wpcom_site}.
Fetch WooCommerce store data from {service} at {path} for site {wpcom_site}.
POST /wpcom/v2/sites/{wpcom_site}/wc/meta/{service}/{path} Create WooCommerce store data · POST /wpcom/v2/sites/{wpcom_site}/wc/meta/{service}/{path} #
Ask an LLM
“How do I create a product or order on my WooCommerce store?”
“Can I post new data to the WooCommerce API through the site connection?”
Tell an agent
Create a {service} object at {path} on {wpcom_site}.
Add a new item to WooCommerce {service} at {path} for site {wpcom_site}.
DELETE /wpcom/v2/sites/{wpcom_site}/wc/meta/{service}/{path} Delete WooCommerce store data · DELETE /wpcom/v2/sites/{wpcom_site}/wc/meta/{service}/{path} #
Ask an LLM
“How do I delete an order or product from my WooCommerce store?”
“Can I remove WooCommerce data through the site connection?”
Tell an agent destructive · confirm first
Delete the {service} object at {path} on {wpcom_site}.
Remove WooCommerce {service} data at {path} from site {wpcom_site}.
GET /wpcom/v2/sites/{wpcom_site}/wc/partners/{partner}/remote-site-status Check a partner's remote site status · GET /wpcom/v2/sites/{wpcom_site}/wc/partners/{partner}/remote-site-status #
Ask an LLM
“Is a partner's remote site still connected?”
“What status does a partner's remote site report?”
Tell an agent
Check the remote site status of partner {partner} on {wpcom_site}.
Show whether partner {partner}'s remote site is connected.
DELETE /wpcom/v2/sites/{wpcom_site}/wc/partners/{partner}/revoke-token Revoke a partner's remote site token · DELETE /wpcom/v2/sites/{wpcom_site}/wc/partners/{partner}/revoke-token #
Ask an LLM
“How do I revoke a partner's remote site access token?”
“Can I disconnect a partner's remote site by revoking its token?”
Tell an agent destructive · confirm first
Revoke the remote site token for partner {partner} on {wpcom_site}.
Disconnect partner {partner}'s remote site by revoking its token.
GET /wpcom/v2/sites/{wpcom_site}/wc/reddit/connection/connect Connect a site to a Reddit account · GET /wpcom/v2/sites/{wpcom_site}/wc/reddit/connection/connect #
Ask an LLM
“How do I connect my site to a Reddit account?”
“Where do I return after authorizing a Reddit connection?”
Tell an agent
Connect Reddit account {wpcom_site} to {return_url}.
Start the Reddit connection for site {wpcom_site}.
GET /wpcom/v2/sites/{wpcom_site}/wc/reddit/connection/disconnect Disconnect a Reddit account · GET /wpcom/v2/sites/{wpcom_site}/wc/reddit/connection/disconnect #
Ask an LLM
“How do I disconnect my site from a Reddit account?”
“Can I end the Reddit connection without deleting the account?”
Tell an agent destructive · confirm first
Disconnect Reddit account {wpcom_site}.
End the Reddit connection on site {wpcom_site}.
GET /wpcom/v2/sites/{wpcom_site}/wc/reddit/connection/status Check a Reddit connection status · GET /wpcom/v2/sites/{wpcom_site}/wc/reddit/connection/status #
Ask an LLM
“Is my site still connected to the Reddit account?”
“What state is the Reddit connection in?”
Tell an agent
Check the Reddit connection status for {wpcom_site}.
Show whether site {wpcom_site} is connected to Reddit.
GET /wpcom/v2/sites/{wpcom_site}/wc/reddit/products-{products_token}.csv Download a Reddit products CSV · GET /wpcom/v2/sites/{wpcom_site}/wc/reddit/products-{products_token}.csv #
Ask an LLM
“How do I download the exported Reddit product feed as CSV for a site?”
“Can I fetch a Reddit products CSV by its products token?”
Tell an agent
Download the Reddit products CSV for site {wpcom_site} using products token {products_token}.
Get exported Reddit product data as CSV for site {wpcom_site}, token {products_token}.
GET /wpcom/v2/sites/{wpcom_site}/wc/reddit/{service}/{path} Read a Reddit account API endpoint · GET /wpcom/v2/sites/{wpcom_site}/wc/reddit/{service}/{path} #
Ask an LLM
“Can I read data from my Reddit account through the site connection?”
“What does the Reddit API return for a given service path?”
Tell an agent
Read the Reddit {service} endpoint {path} on {wpcom_site}.
Fetch Reddit account data from {service} at {path} for site {wpcom_site}.
POST /wpcom/v2/sites/{wpcom_site}/wc/reddit/{service}/{path} Call a Reddit service path · POST /wpcom/v2/sites/{wpcom_site}/wc/reddit/{service}/{path} #
Ask an LLM
“Can my store proxy requests through the WooCommerce Reddit integration?”
“Which services and paths can I call over Reddit's WooCommerce endpoint?”
Tell an agent
Post to the {service} Reddit path {path} on site {wpcom_site}.
Call Reddit service {service} at {path} for site {wpcom_site}.
PUT /wpcom/v2/sites/{wpcom_site}/wc/reddit/{service}/{path} Replace Reddit account data · PUT /wpcom/v2/sites/{wpcom_site}/wc/reddit/{service}/{path} #
Ask an LLM
“How do I replace an existing item on my Reddit account?”
“Can I overwrite Reddit account data through the site connection?”
Tell an agent
Replace the {service} object at {path} on {wpcom_site}.
Overwrite Reddit {service} data at {path} on site {wpcom_site}.
PATCH /wpcom/v2/sites/{wpcom_site}/wc/reddit/{service}/{path} Update Reddit account data · PATCH /wpcom/v2/sites/{wpcom_site}/wc/reddit/{service}/{path} #
Ask an LLM
“How do I edit an existing item on my Reddit account?”
“Can I partially update Reddit account data through the site connection?”
Tell an agent
Update the {service} object at {path} on {wpcom_site}.
Patch Reddit {service} data at {path} on site {wpcom_site}.
DELETE /wpcom/v2/sites/{wpcom_site}/wc/reddit/{service}/{path} Delete a Reddit service path · DELETE /wpcom/v2/sites/{wpcom_site}/wc/reddit/{service}/{path} #
Ask an LLM
“Can I delete an item from a store's Reddit feed through WooCommerce?”
“Is there a way to remove a Reddit path entry from a site?”
Tell an agent destructive · confirm first
Delete the {service} Reddit path {path} on site {wpcom_site}.
Remove Reddit feed entry {path} from service {service} on site {wpcom_site}.
GET /wpcom/v2/sites/{wpcom_site}/wc/snapchat/connection/connect Connect a site to a Snapchat account · GET /wpcom/v2/sites/{wpcom_site}/wc/snapchat/connection/connect #
Ask an LLM
“How do I connect my site to a Snapchat account?”
“Where do I return after authorizing a Snapchat connection?”
Tell an agent
Connect Snapchat account {wpcom_site} to {return_url}.
Start the Snapchat connection for site {wpcom_site}.
GET /wpcom/v2/sites/{wpcom_site}/wc/snapchat/connection/disconnect Disconnect a Snapchat account · GET /wpcom/v2/sites/{wpcom_site}/wc/snapchat/connection/disconnect #
Ask an LLM
“How do I disconnect my site from a Snapchat account?”
“Can I end the Snapchat connection without deleting the account?”
Tell an agent destructive · confirm first
Disconnect Snapchat account {wpcom_site}.
End the Snapchat connection on site {wpcom_site}.
GET /wpcom/v2/sites/{wpcom_site}/wc/snapchat/connection/status Check the Snapchat connection status · GET /wpcom/v2/sites/{wpcom_site}/wc/snapchat/connection/status #
Ask an LLM
“Is my site connected to Snapchat for product feeds?”
“How do I check the Snapchat connection status for a site?”
Tell an agent
Get the Snapchat connection status for site {wpcom_site}.
Check whether site {wpcom_site} has a Snapchat connection.
GET /wpcom/v2/sites/{wpcom_site}/wc/snapchat/products-{products_token}.csv Download Snapchat product feed CSV · GET /wpcom/v2/sites/{wpcom_site}/wc/snapchat/products-{products_token}.csv #
Ask an LLM
“Can I download my products as a CSV for Snapchat?”
“Where do I get the Snapchat product feed for my site?”
Tell an agent
Download the Snapchat product feed CSV for site {wpcom_site} using token {products_token}.
Get the Snapchat products CSV for {wpcom_site} with token {products_token}.
GET /wpcom/v2/sites/{wpcom_site}/wc/snapchat/{service}/{path} Call a Snapchat API endpoint · GET /wpcom/v2/sites/{wpcom_site}/wc/snapchat/{service}/{path} #
Ask an LLM
“Can I call a Snapchat API endpoint through the site?”
“Which Snapchat service paths can I request for my site?”
Tell an agent
Call the {service} Snapchat endpoint {path} for site {wpcom_site}.
Fetch {path} from the {service} Snapchat service on {wpcom_site}.
POST /wpcom/v2/sites/{wpcom_site}/wc/snapchat/{service}/{path} Post to a Snapchat API endpoint · POST /wpcom/v2/sites/{wpcom_site}/wc/snapchat/{service}/{path} #
Ask an LLM
“How do I post data to a Snapchat API endpoint for my site?”
“Can I send a request to a Snapchat service path on my store?”
Tell an agent
Post to the {service} Snapchat endpoint {path} on site {wpcom_site}.
Send a request to {path} on the {service} Snapchat service for {wpcom_site}.
DELETE /wpcom/v2/sites/{wpcom_site}/wc/snapchat/{service}/{path} Delete from a Snapchat API endpoint · DELETE /wpcom/v2/sites/{wpcom_site}/wc/snapchat/{service}/{path} #
Ask an LLM
“Can I delete data from a Snapchat API endpoint for my site?”
“What happens when I remove an item from the Snapchat service path?”
Tell an agent destructive · confirm first
Delete from the {service} Snapchat endpoint {path} on site {wpcom_site}.
Remove the {path} item from the {service} Snapchat service on {wpcom_site}.
GET /wpcom/v2/wc/meta/authorize Authorize Meta for WooCommerce · GET /wpcom/v2/wc/meta/authorize #
Ask an LLM
“How do I connect Meta to my WooCommerce store?”
“Where do I exchange the Meta authorization code?”
Tell an agent
Authorize Meta for WooCommerce with state {state}.
Complete the Meta authorization for WooCommerce using code {code} and state {state}.
GET /wpcom/v2/wc/reddit/authorize Authorize Reddit for WooCommerce · GET /wpcom/v2/wc/reddit/authorize #
Ask an LLM
“How do I connect Reddit to my WooCommerce store?”
“Can I finish the Reddit authorization with the code I received?”
Tell an agent
Authorize Reddit for WooCommerce with state {state}.
Complete the Reddit authorization for WooCommerce using code {code} and state {state}.
GET /wpcom/v2/wc/snapchat/authorize Authorize Snapchat for WooCommerce · GET /wpcom/v2/wc/snapchat/authorize #
Ask an LLM
“How do I connect Snapchat to my WooCommerce store?”
“Where do I exchange the Snapchat authorization code?”
Tell an agent
Authorize Snapchat for WooCommerce with code {code} and state {state}.
Complete the Snapchat authorization for WooCommerce using state {state}.

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-wc-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-wc-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: WordPress.com REST API — wpcom/v2 namespace Wc 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: wc
paths:
  /wpcom/v2/sites/{wpcom_site}/wc/meta/connection/connect:
    get:
      operationId: getWpcomV2SitesbyWpcomSiteWcMetaConnectionConnect
      summary: GET /wpcom/v2/sites/{wpcom_site}/wc/meta/connection/connect
      tags:
      - wc
      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: return_url
        in: query
        required: true
        schema:
          type: string
  /wpcom/v2/sites/{wpcom_site}/wc/meta/connection/disconnect:
    get:
      operationId: getWpcomV2SitesbyWpcomSiteWcMetaConnectionDisconnect
      summary: GET /wpcom/v2/sites/{wpcom_site}/wc/meta/connection/disconnect
      tags:
      - wc
      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}/wc/meta/connection/status:
    get:
      operationId: getWpcomV2SitesbyWpcomSiteWcMetaConnectionStatus
      summary: GET /wpcom/v2/sites/{wpcom_site}/wc/meta/connection/status
      tags:
      - wc
      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}/wc/meta/products-{products_token}.csv:
    get:
      operationId: getWpcomV2SitesbyWpcomSiteWcMetaProductsProductsTokenCsv
      summary: GET /wpcom/v2/sites/{wpcom_site}/wc/meta/products-{products_token}.csv
      tags:
      - wc
      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: products_token
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/sites/{wpcom_site}/wc/meta/{service}/{path}:
    get:
      operationId: getWpcomV2SitesbyWpcomSiteWcMetabyServicebyPath
      summary: GET /wpcom/v2/sites/{wpcom_site}/wc/meta/{service}/{path}
      tags:
      - wc
      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: service
        in: path
        required: true
        schema:
          type: string
      - name: path
        in: path
        required: true
        schema:
          type: string
    post:
      operationId: postWpcomV2SitesbyWpcomSiteWcMetabyServicebyPath
      summary: POST /wpcom/v2/sites/{wpcom_site}/wc/meta/{service}/{path}
      tags:
      - wc
      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: service
        in: path
        required: true
        schema:
          type: string
      - name: path
        in: path
        required: true
        schema:
          type: string
    delete:
      operationId: deleteWpcomV2SitesbyWpcomSiteWcMetabyServicebyPath
      summary: DELETE /wpcom/v2/sites/{wpcom_site}/wc/meta/{service}/{path}
      tags:
      - wc
      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: service
        in: path
        required: true
        schema:
          type: string
      - name: path
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/sites/{wpcom_site}/wc/partners/{partner}/remote-site-status:
    get:
      operationId: getWpcomV2SitesbyWpcomSiteWcPartnersbyPartnerRemoteSiteStatus
      summary: GET /wpcom/v2/sites/{wpcom_site}/wc/partners/{partner}/remote-site-status
      tags:
      - wc
      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: partner
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/sites/{wpcom_site}/wc/partners/{partner}/revoke-token:
    delete:
      operationId: deleteWpcomV2SitesbyWpcomSiteWcPartnersbyPartnerRevokeToken
      summary: DELETE /wpcom/v2/sites/{wpcom_site}/wc/partners/{partner}/revoke-token
      tags:
      - wc
      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: partner
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/sites/{wpcom_site}/wc/reddit/connection/connect:
    get:
      operationId: getWpcomV2SitesbyWpcomSiteWcRedditConnectionConnect
      summary: GET /wpcom/v2/sites/{wpcom_site}/wc/reddit/connection/connect
      tags:
      - wc
      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: return_url
        in: query
        required: true
        schema:
          type: string
  /wpcom/v2/sites/{wpcom_site}/wc/reddit/connection/disconnect:
    get:
      operationId: getWpcomV2SitesbyWpcomSiteWcRedditConnectionDisconnect
      summary: GET /wpcom/v2/sites/{wpcom_site}/wc/reddit/connection/disconnect
      tags:
      - wc
      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}/wc/reddit/connection/status:
    get:
      operationId: getWpcomV2SitesbyWpcomSiteWcRedditConnectionStatus
      summary: GET /wpcom/v2/sites/{wpcom_site}/wc/reddit/connection/status
      tags:
      - wc
      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}/wc/reddit/products-{products_token}.csv:
    get:
      operationId: getWpcomV2SitesbyWpcomSiteWcRedditProductsProductsTokenCsv
      summary: GET /wpcom/v2/sites/{wpcom_site}/wc/reddit/products-{products_token}.csv
      tags:
      - wc
      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: products_token
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/sites/{wpcom_site}/wc/reddit/{service}/{path}:
    get:
      operationId: getWpcomV2SitesbyWpcomSiteWcRedditbyServicebyPath
      summary: GET /wpcom/v2/sites/{wpcom_site}/wc/reddit/{service}/{path}
      tags:
      - wc
      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: service
        in: path
        required: true
        schema:
          type: string
      - name: path
        in: path
        required: true
        schema:
          type: string
    post:
      operationId: postWpcomV2SitesbyWpcomSiteWcRedditbyServicebyPath
      summary: POST /wpcom/v2/sites/{wpcom_site}/wc/reddit/{service}/{path}
      tags:
      - wc
      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: service
        in: path
        required: true
        schema:
          type: string
      - name: path
        in: path
        required: true
        schema:
          type: string
    put:
      operationId: putWpcomV2SitesbyWpcomSiteWcRedditbyServicebyPath
      summary: PUT /wpcom/v2/sites/{wpcom_site}/wc/reddit/{service}/{path}
      tags:
      - wc
      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: service
        in: path
        required: true
        schema:
          type: string
      - name: path
        in: path
        required: true
        schema:
          type: string
    patch:
      operationId: patchWpcomV2SitesbyWpcomSiteWcRedditbyServicebyPath
      summary: PATCH /wpcom/v2/sites/{wpcom_site}/wc/reddit/{service}/{path}
      tags:
      - wc
      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: service
        in: path
        required: true
        schema:
          type: string
      - name: path
        in: path
        required: true
        schema:
          type: string
    delete:
      operationId: deleteWpcomV2SitesbyWpcomSiteWcRedditbyServicebyPath
      summary: DELETE /wpcom/v2/sites/{wpcom_site}/wc/reddit/{service}/{path}
      tags:
      - wc
      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: service
        in: path
        required: true
        schema:
          type: string
      - name: path
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/sites/{wpcom_site}/wc/snapchat/connection/connect:
    get:
      operationId: getWpcomV2SitesbyWpcomSiteWcSnapchatConnectionConnect
      summary: GET /wpcom/v2/sites/{wpcom_site}/wc/snapchat/connection/connect
      tags:
      - wc
      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: return_url
        in: query
        required: true
        schema:
          type: string
  /wpcom/v2/sites/{wpcom_site}/wc/snapchat/connection/disconnect:
    get:
      operationId: getWpcomV2SitesbyWpcomSiteWcSnapchatConnectionDisconnect
      summary: GET /wpcom/v2/sites/{wpcom_site}/wc/snapchat/connection/disconnect
      tags:
      - wc
      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}/wc/snapchat/connection/status:
    get:
      operationId: getWpcomV2SitesbyWpcomSiteWcSnapchatConnectionStatus
      summary: GET /wpcom/v2/sites/{wpcom_site}/wc/snapchat/connection/status
      tags:
      - wc
      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}/wc/snapchat/products-{products_token}.csv:
    get:
      operationId: getWpcomV2SitesbyWpcomSiteWcSnapchatProductsProductsTokenCsv
      summary: GET /wpcom/v2/sites/{wpcom_site}/wc/snapchat/products-{products_token}.csv
      tags:
      - wc
      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: products_token
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/sites/{wpcom_site}/wc/snapchat/{service}/{path}:
    get:
      operationId: getWpcomV2SitesbyWpcomSiteWcSnapchatbyServicebyPath
      summary: GET /wpcom/v2/sites/{wpcom_site}/wc/snapchat/{service}/{path}
      tags:
      - wc
      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: service
        in: path
        required: true
        schema:
          type: string
      - name: path
        in: path
        required: true
        schema:
          type: string
    post:
      operationId: postWpcomV2SitesbyWpcomSiteWcSnapchatbyServicebyPath
      summary: POST /wpcom/v2/sites/{wpcom_site}/wc/snapchat/{service}/{path}
      tags:
      - wc
      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: service
        in: path
        required: true
        schema:
          type: string
      - name: path
        in: path
        required: true
        schema:
          type: string
    delete:
      operationId: deleteWpcomV2SitesbyWpcomSiteWcSnapchatbyServicebyPath
      summary: DELETE /wpcom/v2/sites/{wpcom_site}/wc/snapchat/{service}/{path}
      tags:
      - wc
      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: service
        in: path
        required: true
        schema:
          type: string
      - name: path
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/wc/meta/authorize:
    get:
      operationId: getWpcomV2WcMetaAuthorize
      summary: GET /wpcom/v2/wc/meta/authorize
      tags:
      - wc
      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: state
        in: query
        required: true
        schema:
          type: string
        description: OAuth state parameter for security validation
      - name: code
        in: query
        required: false
        schema:
          type: string
        description: OAuth authorization code from Meta
  /wpcom/v2/wc/reddit/authorize:
    get:
      operationId: getWpcomV2WcRedditAuthorize
      summary: GET /wpcom/v2/wc/reddit/authorize
      tags:
      - wc
      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: state
        in: query
        required: true
        schema:
          type: string
        description: OAuth state parameter for security validation
      - name: code
        in: query
        required: false
        schema:
          type: string
        description: OAuth authorization code from Reddit
  /wpcom/v2/wc/snapchat/authorize:
    get:
      operationId: getWpcomV2WcSnapchatAuthorize
      summary: GET /wpcom/v2/wc/snapchat/authorize
      tags:
      - wc
      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: state
        in: query
        required: true
        schema:
          type: string
        description: OAuth state parameter for security validation
      - name: code
        in: query
        required: true
        schema:
          type: string
        description: OAuth authorization code from Snapchat
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