Automattic Domains API

The domains API from Automattic — 25 operation(s) for domains.

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 31

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/domains/auction/expired-domain-stats Get stats on expired domains in auction · GET /wpcom/v2/domains/auction/expired-domain-stats #
Ask an LLM
“How many expired domains are currently in the auction?”
“What are the statistics for domains that have just dropped?”
Tell an agent
Get the auction stats for expired domains.
Show how many domains dropped into auction this week.
GET /wpcom/v2/domains/auction/expired-list-csv Download the expired domain auction list as CSV · GET /wpcom/v2/domains/auction/expired-list-csv #
Ask an LLM
“Can I download the list of domains that just dropped into auction?”
“Where do I get the CSV of expired domains for auction?”
Tell an agent
Download the expired domain auction list as CSV.
Export the dropped domains auction list.
POST /wpcom/v2/domains/auction/renew Renew a domain I just won in auction · POST /wpcom/v2/domains/auction/renew #
Ask an LLM
“How do I renew a domain I won in the auction?”
“Can I extend the registration of an auction-won domain?”
Tell an agent
Renew the domain I just won in auction.
Extend the registration of my auction-winning domain.
POST /wpcom/v2/domains/auction/transfer{query_string} Transfer a domain into auction · POST /wpcom/v2/domains/auction/transfer{query_string} #
Ask an LLM
“Can I transfer a domain into the auction?”
“What do I send to put a domain up for auction?”
Tell an agent
Transfer a domain into auction using {query_string}.
Put domain {query_string} up for auction.
GET /wpcom/v2/domains/bulk-actions List pending bulk domain actions · GET /wpcom/v2/domains/bulk-actions #
Ask an LLM
“Which bulk domain actions are still waiting to run?”
“What bulk domain tasks have I queued?”
Tell an agent
List my pending bulk domain actions.
Show the bulk domain tasks waiting to be processed.
DELETE /wpcom/v2/domains/bulk-actions Clear all pending bulk domain actions · DELETE /wpcom/v2/domains/bulk-actions #
Ask an LLM
“Can I clear every bulk domain action at once?”
“How do I wipe the pending bulk domain queue?”
Tell an agent destructive · confirm first
Clear all my pending bulk domain actions.
Delete every queued bulk domain task.
POST /wpcom/v2/domains/bulk-actions/set-auto-renew Turn auto-renew on for many domains · POST /wpcom/v2/domains/bulk-actions/set-auto-renew #
Ask an LLM
“Can I turn on auto-renew for a batch of domains?”
“How do I set auto-renew for several domains at once?”
Tell an agent
Turn auto-renew on for these domains.
Set auto-renew to ON for my domain batch.
POST /wpcom/v2/domains/bulk-actions/update-contact-info Update contact info for many domains · POST /wpcom/v2/domains/bulk-actions/update-contact-info #
Ask an LLM
“Can I change the registrant contact on a batch of domains?”
“How do I bulk update domain contact details?”
Tell an agent
Update the contact info for these domains.
Bulk change the registrant on my domains.
GET /wpcom/v2/domains/bulk-availability-check/{domain_names} Check availability of several domain names · GET /wpcom/v2/domains/bulk-availability-check/{domain_names} #
Ask an LLM
“Is a batch of domain names still available?”
“Can I check many domain names for availability in one call?”
Tell an agent
Check availability of {domain_names}.
Tell me which of {domain_names} are still available.
GET /wpcom/v2/domains/bundle Suggest a domain bundle for a name · GET /wpcom/v2/domains/bundle #
Ask an LLM
“Can I get bundle suggestions for a domain name?”
“What comes with a domain when I search for it?”
Tell an agent
Suggest a bundle for {query}.
Show domain bundle options for {query}.
GET /wpcom/v2/domains/diagnostics/{domain} Run diagnostics on a domain · GET /wpcom/v2/domains/diagnostics/{domain} #
Ask an LLM
“What diagnostics can I run on my domain?”
“Is there a health check for a domain?”
Tell an agent
Run diagnostics on {domain}.
Check the health of {domain}.
POST /wpcom/v2/domains/dns/email/set-default-records Restore default email DNS records · POST /wpcom/v2/domains/dns/email/set-default-records #
Ask an LLM
“How do I restore the default MX and SPF records for email?”
“Can I reset a domain's email DNS to defaults?”
Tell an agent
Restore default email DNS records for {domain}.
Reset {domain}'s email DNS to the defaults.
POST /wpcom/v2/domains/dns/import/bind/{domain} Import a domain's DNS zone and bind it · POST /wpcom/v2/domains/dns/import/bind/{domain} #
Ask an LLM
“Can I import a zone file and bind it to a domain?”
“How do I bring my own DNS zone into WordPress.com?”
Tell an agent
Import and bind the DNS zone for {domain}.
Bring my zone file into {domain} and bind it.
POST /wpcom/v2/domains/dnssec/{domain} Add DNSSEC to a domain · POST /wpcom/v2/domains/dnssec/{domain} #
Ask an LLM
“Can I turn on DNSSEC for a domain?”
“How do I add DNSSEC to a domain I own?”
Tell an agent
Add DNSSEC to {domain}.
Enable DNSSEC on {domain}.
PUT /wpcom/v2/domains/dnssec/{domain} Replace a domain's DNSSEC records · PUT /wpcom/v2/domains/dnssec/{domain} #
Ask an LLM
“Can I replace the DNSSEC records on a domain?”
“How do I update a domain's DNSSEC keys?”
Tell an agent
Replace the DNSSEC records on {domain} with {data}.
Update {domain}'s DNSSEC keys to {data}.
DELETE /wpcom/v2/domains/dnssec/{domain} Remove DNSSEC from a domain · DELETE /wpcom/v2/domains/dnssec/{domain} #
Ask an LLM
“Can I turn off DNSSEC for a domain?”
“How do I remove DNSSEC records from a domain?”
Tell an agent destructive · confirm first
Remove DNSSEC from {domain}.
Disable DNSSEC on {domain}.
GET /wpcom/v2/domains/dnssec/{domain}/nameserver Get a domain's DNSSEC nameserver info · GET /wpcom/v2/domains/dnssec/{domain}/nameserver #
Ask an LLM
“What nameserver does DNSSEC use for my domain?”
“Can I see the DNSSEC nameserver for a domain?”
Tell an agent
Show the DNSSEC nameserver for {domain}.
Get the DNSSEC nameserver info of {domain}.
GET /wpcom/v2/domains/dnssec/{domain}/registry Get a domain's DNSSEC registry info · GET /wpcom/v2/domains/dnssec/{domain}/registry #
Ask an LLM
“What does the registry say about DNSSEC for my domain?”
“Can I see the DNSSEC registry status of a domain?”
Tell an agent
Show the DNSSEC registry status of {domain}.
Get the registry DNSSEC info for {domain}.
POST /wpcom/v2/domains/glue-records Add a domain's glue records · POST /wpcom/v2/domains/glue-records #
Ask an LLM
“Can I add glue records for a name server?”
“How do I point a name server to its IPs?”
Tell an agent
Add glue records for {name_server} with {ip_addresses}.
Point {name_server} at {ip_addresses} with glue records.
PUT /wpcom/v2/domains/glue-records Replace a domain's glue records · PUT /wpcom/v2/domains/glue-records #
Ask an LLM
“Can I replace the glue records for a name server?”
“How do I update a name server's IP addresses?”
Tell an agent
Replace the glue records for {name_server} with {ip_addresses}.
Update {name_server}'s IPs to {ip_addresses}.
PATCH /wpcom/v2/domains/glue-records Update a domain's glue records · PATCH /wpcom/v2/domains/glue-records #
Ask an LLM
“How do I change the IP addresses behind a domain's name servers?”
“Can I add a new glue record to a domain?”
Tell an agent
Set the glue records for name server {name_server} to {ip_addresses}.
Update the IP addresses of glue record {name_server}.
GET /wpcom/v2/domains/glue-records/{domain} Get a domain's glue records · GET /wpcom/v2/domains/glue-records/{domain} #
Ask an LLM
“What name servers and IPs are set for my domain?”
“Can I look up a domain's glue records by domain name?”
Tell an agent
Show the glue records for {domain}.
List the name servers and IPs configured on {domain}.
DELETE /wpcom/v2/domains/glue-records/{name_server} Remove a domain's glue record · DELETE /wpcom/v2/domains/glue-records/{name_server} #
Ask an LLM
“How do I remove a name server from a domain's glue records?”
“Can I delete a single glue record by name server?”
Tell an agent destructive · confirm first
Delete the glue record for name server {name_server}.
Remove name server {name_server} from my domain's glue records.
GET /wpcom/v2/domains/list/mine List my domains · GET /wpcom/v2/domains/list/mine #
Ask an LLM
“Which domains do I own on WordPress.com?”
“Can I see all my registered domains in one list?”
Tell an agent
List all my domains.
Show every domain registered to me.
POST /wpcom/v2/domains/name-pulse/availability-check Check domain name availability · POST /wpcom/v2/domains/name-pulse/availability-check #
Ask an LLM
“Is a domain name still available to buy?”
“Can I check several domain names for availability at once?”
Tell an agent
Check availability for {domain_names}.
See if {domain_names} are available to register.
GET /wpcom/v2/domains/name-pulse/suggestions Get domain name suggestions · GET /wpcom/v2/domains/name-pulse/suggestions #
Ask an LLM
“What domain names are similar to a keyword?”
“Can I get AI-powered domain suggestions in a specific language?”
Tell an agent
Suggest domains like {query}.
Give me {quantity} domain suggestions for {query}.
POST /wpcom/v2/domains/point-to-wpcom Point a domain at WordPress.com · POST /wpcom/v2/domains/point-to-wpcom #
Ask an LLM
“How do I connect my own domain to WordPress.com?”
“Can I point a domain I own at my WordPress site?”
Tell an agent
Point {domain} at WordPress.com.
Connect my domain {domain} to WordPress.
GET /wpcom/v2/domains/propagation-status/{domain} Check DNS propagation status · GET /wpcom/v2/domains/propagation-status/{domain} #
Ask an LLM
“Has my DNS change propagated to all servers?”
“Can I check propagation status for a domain?”
Tell an agent
Check DNS propagation status for {domain}.
Show whether {domain}'s DNS changes have propagated.
GET /wpcom/v2/domains/secure-your-brand/{domain} Check secure-your-brand status · GET /wpcom/v2/domains/secure-your-brand/{domain} #
Ask an LLM
“Which domains are protected by secure-your-brand?”
“Can I see the secure-your-brand status for a domain?”
Tell an agent
Show the secure-your-brand status for {domain}.
Check whether {domain} is protected by secure-your-brand.
GET /wpcom/v2/domains/ssl/{domain} Get a domain's SSL certificate · GET /wpcom/v2/domains/ssl/{domain} #
Ask an LLM
“Is my domain's SSL certificate valid?”
“Can I see the SSL status of a domain?”
Tell an agent
Show the SSL certificate for {domain}.
Check whether {domain} has an SSL certificate.
POST /wpcom/v2/domains/ssl/{domain} Request an SSL certificate for a domain · POST /wpcom/v2/domains/ssl/{domain} #
Ask an LLM
“How do I get a free SSL certificate for my domain?”
“Can I request an SSL certificate for a domain I point at WordPress?”
Tell an agent
Request an SSL certificate for {domain}.
Get a free SSL certificate for my domain {domain}.

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-domains-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-domains-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: WordPress.com REST API — wpcom/v2 namespace Domains 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: Domains
paths:
  /wpcom/v2/domains/auction/expired-domain-stats:
    get:
      operationId: getWpcomV2DomainsAuctionExpiredDomainStats
      summary: GET /wpcom/v2/domains/auction/expired-domain-stats
      tags:
      - Domains
      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'
  /wpcom/v2/domains/auction/expired-list-csv:
    get:
      operationId: getWpcomV2DomainsAuctionExpiredListCsv
      summary: GET /wpcom/v2/domains/auction/expired-list-csv
      tags:
      - Domains
      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'
  /wpcom/v2/domains/auction/renew:
    post:
      operationId: postWpcomV2DomainsAuctionRenew
      summary: POST /wpcom/v2/domains/auction/renew
      tags:
      - Domains
      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'
  /wpcom/v2/domains/auction/transfer{query_string}:
    post:
      operationId: postWpcomV2DomainsAuctionTransferQueryString
      summary: POST /wpcom/v2/domains/auction/transfer{query_string}
      tags:
      - Domains
      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: query_string
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/domains/bulk-actions:
    get:
      operationId: getWpcomV2DomainsBulkActions
      summary: GET /wpcom/v2/domains/bulk-actions
      tags:
      - Domains
      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'
    delete:
      operationId: deleteWpcomV2DomainsBulkActions
      summary: DELETE /wpcom/v2/domains/bulk-actions
      tags:
      - Domains
      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'
  /wpcom/v2/domains/bulk-actions/set-auto-renew:
    post:
      operationId: postWpcomV2DomainsBulkActionsSetAutoRenew
      summary: POST /wpcom/v2/domains/bulk-actions/set-auto-renew
      tags:
      - Domains
      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'
  /wpcom/v2/domains/bulk-actions/update-contact-info:
    post:
      operationId: postWpcomV2DomainsBulkActionsUpdateContactInfo
      summary: POST /wpcom/v2/domains/bulk-actions/update-contact-info
      tags:
      - Domains
      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'
  /wpcom/v2/domains/bulk-availability-check/{domain_names}:
    get:
      operationId: getWpcomV2DomainsBulkAvailabilityCheckbyDomainNames
      summary: GET /wpcom/v2/domains/bulk-availability-check/{domain_names}
      tags:
      - Domains
      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: domain_names
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/domains/bundle:
    get:
      operationId: getWpcomV2DomainsBundle
      summary: GET /wpcom/v2/domains/bundle
      tags:
      - Domains
      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: query
        in: query
        required: false
        schema:
          type: string
          default: ''
        description: Domain name (e.g. "flowers.com") to build a bundle suggestion for.
  /wpcom/v2/domains/diagnostics/{domain}:
    get:
      operationId: getWpcomV2DomainsDiagnosticsbyDomain
      summary: GET /wpcom/v2/domains/diagnostics/{domain}
      tags:
      - Domains
      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: domain
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/domains/dns/email/set-default-records:
    post:
      operationId: postWpcomV2DomainsDnsEmailSetDefaultRecords
      summary: POST /wpcom/v2/domains/dns/email/set-default-records
      tags:
      - Domains
      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'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                domain:
                  description: The domain which default email DNS records will be restored
              required:
              - domain
  /wpcom/v2/domains/dns/import/bind/{domain}:
    post:
      operationId: postWpcomV2DomainsDnsImportBindbyDomain
      summary: POST /wpcom/v2/domains/dns/import/bind/{domain}
      tags:
      - Domains
      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: domain
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/domains/dnssec/{domain}:
    post:
      operationId: postWpcomV2DomainsDnssecbyDomain
      summary: POST /wpcom/v2/domains/dnssec/{domain}
      tags:
      - Domains
      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: domain
        in: path
        required: true
        schema:
          type: string
    put:
      operationId: putWpcomV2DomainsDnssecbyDomain
      summary: PUT /wpcom/v2/domains/dnssec/{domain}
      tags:
      - Domains
      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: domain
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                data:
                  type: object
              required:
              - data
    delete:
      operationId: deleteWpcomV2DomainsDnssecbyDomain
      summary: DELETE /wpcom/v2/domains/dnssec/{domain}
      tags:
      - Domains
      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: domain
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/domains/dnssec/{domain}/nameserver:
    get:
      operationId: getWpcomV2DomainsDnssecbyDomainNameserver
      summary: GET /wpcom/v2/domains/dnssec/{domain}/nameserver
      tags:
      - Domains
      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: domain
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/domains/dnssec/{domain}/registry:
    get:
      operationId: getWpcomV2DomainsDnssecbyDomainRegistry
      summary: GET /wpcom/v2/domains/dnssec/{domain}/registry
      tags:
      - Domains
      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: domain
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/domains/glue-records:
    post:
      operationId: postWpcomV2DomainsGlueRecords
      summary: POST /wpcom/v2/domains/glue-records
      tags:
      - Domains
      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'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name_server:
                  type: string
                ip_addresses:
                  type: array
                  items: {}
              required:
              - name_server
              - ip_addresses
    put:
      operationId: putWpcomV2DomainsGlueRecords
      summary: PUT /wpcom/v2/domains/glue-records
      tags:
      - Domains
      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'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name_server:
                  type: string
                ip_addresses:
                  type: array
                  items: {}
              required:
              - name_server
              - ip_addresses
    patch:
      operationId: patchWpcomV2DomainsGlueRecords
      summary: PATCH /wpcom/v2/domains/glue-records
      tags:
      - Domains
      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'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name_server:
                  type: string
                ip_addresses:
                  type: array
                  items: {}
              required:
              - name_server
              - ip_addresses
  /wpcom/v2/domains/glue-records/{domain}:
    get:
      operationId: getWpcomV2DomainsGlueRecordsbyDomain
      summary: GET /wpcom/v2/domains/glue-records/{domain}
      tags:
      - Domains
      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: domain
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/domains/glue-records/{name_server}:
    delete:
      operationId: deleteWpcomV2DomainsGlueRecordsbyNameServer
      summary: DELETE /wpcom/v2/domains/glue-records/{name_server}
      tags:
      - Domains
      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: name_server
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/domains/list/mine:
    get:
      operationId: getWpcomV2DomainsListMine
      summary: GET /wpcom/v2/domains/list/mine
      tags:
      - Domains
      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'
  /wpcom/v2/domains/name-pulse/availability-check:
    post:
      operationId: postWpcomV2DomainsNamePulseAvailabilityCheck
      summary: POST /wpcom/v2/domains/name-pulse/availability-check
      tags:
      - Domains
      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'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                domain_names:
                  type: array
                  items:
                    type: string
                  description: Domain names to check availability for (max 50)
                include_pricing:
                  type: boolean
                  default: true
                  description: Whether to include pricing data for available domains
              required:
              - domain_names
  /wpcom/v2/domains/name-pulse/suggestions:
    get:
      operationId: getWpcomV2DomainsNamePulseSuggestions
      summary: GET /wpcom/v2/domains/name-pulse/suggestions
      tags:
      - Domains
      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: query
        in: query
        required: true
        schema:
          type: string
        description: Search term for domain suggestions
      - name: providers
        in: query
        required: false
        schema:
          type: string
        description: Comma-separated provider names (donuts, verisign, domainsbot)
      - name: quantity
        in: query
        required: false
        schema:
          type: integer
        description: Number of suggestions to return (1-200). If omitted, returns all available suggestions.
      - name: timeout
        in: query
        required: false
        schema:
          type: integer
        description: Total timeout in milliseconds
      - name: tlds
        in: query
        required: false
        schema:
          type: string
          default: ''
        description: Comma-separated TLDs to include
      - name: use_ai
        in: query
        required: false
        schema:
          type: integer
          enum:
          - 0
          - 1
          default: 0
        description: Enable AI suggestions (0 or 1)
      - name: allow_premium
        in: query
        required: false
        schema:
          type: boolean
          default: true
        description: Include premium domains
      - name: language
        in: query
        required: false
        schema:
          type: string
          default: en
        description: Language for suggestions
      - name: include_pricing
        in: query
        required: false
        schema:
          type: boolean
          default: true
        description: Whether to include pricing data for suggestions
      - name: exclude_exact_matches
        in: query
        required: false
        schema:
          type: boolean
          default: true
        description: Exclude suggestions whose SLD exactly matches the query with spaces removed
  /wpcom/v2/domains/point-to-wpcom:
    post:
      operationId: postWpcomV2DomainsPointToWpcom
      summary: POST /wpcom/v2/domains/point-to-wpcom
      tags:
      - Domains
      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'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                domain:
                  type: string
              required:
              - domain
  /wpcom/v2/domains/propagation-status/{domain}:
    get:
      operationId: getWpcomV2DomainsPropagationStatusbyDomain
      summary: GET /wpcom/v2/domains/propagation-status/{domain}
      tags:
      - Domains
      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: domain
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/domains/secure-your-brand/{domain}:
    get:
      operationId: getWpcomV2DomainsSecureYourBrandbyDomain
      summary: GET /wpcom/v2/domains/secure-your-brand/{domain}
      tags:
      - Domains
      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: domain
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/domains/ssl/{domain}:
    get:
      operationId: getWpcomV2DomainsSslbyDomain
      summary: GET /wpcom/v2/domains/ssl/{domain}
      tags:
      - Domains
      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: domain
        in: path
        required: true
        schema:
          type: string
    post:
      operationId: postWpcomV2DomainsSslbyDomain
      summary: POST /wpcom/v2/domains/ssl/{domain}
      tags:
      - Domains
      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: domain
        in: path
        required: true
        schema:
          type: string
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