Automattic Gravatar API

The gravatar API from Automattic — 13 operation(s) for gravatar.

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 27

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

POST /wpcom/v2/gravatar/custom-domains/add-email-forward Add an email forward to a custom domain · POST /wpcom/v2/gravatar/custom-domains/add-email-forward #
Ask an LLM
“How do I forward mail from a custom domain to another address?”
“Can I set up a mailbox forward for a domain I own?”
Tell an agent
Add a forward from {mailbox} on {domain} to {destination} for user {user_id}.
Set up {mailbox} on {domain} to forward to {destination} for {user_id}.
DELETE /wpcom/v2/gravatar/custom-domains/delete-email-forward Remove an email forward from a custom domain · DELETE /wpcom/v2/gravatar/custom-domains/delete-email-forward #
Ask an LLM
“How do I stop forwarding mail from a custom domain?”
“Can I delete a mailbox forward on a domain I own?”
Tell an agent destructive · confirm first
Delete the forward from {mailbox} on {domain} to {destination} for user {user_id}.
Remove the {mailbox} forward on {domain} for {user_id}.
GET /wpcom/v2/gravatar/custom-domains/email-forwards List email forwards on a custom domain · GET /wpcom/v2/gravatar/custom-domains/email-forwards #
Ask an LLM
“Which mailboxes on my custom domain are forwarding?”
“Can I see all forwards for one domain?”
Tell an agent
List email forwards for {domain} under user {user_id}.
Show the forwards set up on {domain} for {user_id}.
GET /wpcom/v2/gravatar/custom-domains/purchase Check the price of a custom domain · GET /wpcom/v2/gravatar/custom-domains/purchase #
Ask an LLM
“How much does a custom domain cost?”
“Can I buy a new domain through Gravatar?”
Tell an agent
Check the price of {domain} for user {user_id}.
Get the purchase cost of {domain} for {user_id}.
POST /wpcom/v2/gravatar/custom-domains/set-auto-renew Turn auto-renew on for a custom Gravatar domain · POST /wpcom/v2/gravatar/custom-domains/set-auto-renew #
Ask an LLM
“Can I enable auto-renewal for my custom Gravatar domain?”
“What does a Gravatar custom domain renewal request need?”
Tell an agent
Set auto-renewal to {type} for custom domain {domain} (user {user_id}, subscription {subscription_id}).
Renew custom domain {domain} on {type} for user {user_id}, subscription {subscription_id}.
PUT /wpcom/v2/gravatar/custom-domains/set-auto-renew Set auto-renew for a domain subscription · PUT /wpcom/v2/gravatar/custom-domains/set-auto-renew #
Ask an LLM
“How do I turn on auto-renew for my domain?”
“Can I change a domain subscription's auto-renew setting?”
Tell an agent
Set auto-renew to {type} on subscription {subscription_id} for {domain} under {user_id}.
Make {domain} auto-renew with subscription {subscription_id} for {user_id}.
PATCH /wpcom/v2/gravatar/custom-domains/set-auto-renew Change auto-renew on a custom domain subscription · PATCH /wpcom/v2/gravatar/custom-domains/set-auto-renew #
Ask an LLM
“Can I turn auto-renew off for a custom Gravatar domain?”
“What do I send to disable renewal of a custom domain subscription?”
Tell an agent
Patch the auto-renew type to {type} for domain {domain}, user {user_id}, subscription {subscription_id}.
Stop automatic renewal of {domain} on subscription {subscription_id} for user {user_id}, using type {type}.
POST /wpcom/v2/gravatar/custom-domains/set-email-forward Set up email forwarding for a custom Gravatar domain · POST /wpcom/v2/gravatar/custom-domains/set-email-forward #
Ask an LLM
“How do I forward emails from a custom Gravatar domain?”
“Can I add a new sender address to a custom domain?”
Tell an agent
Forward {mailbox} on {domain} to {destination} for user {user_id} as {type}.
Set up a new email forward for {mailbox} on {domain} to {destination}.
PUT /wpcom/v2/gravatar/custom-domains/set-email-forward Set an email forward on a custom domain · PUT /wpcom/v2/gravatar/custom-domains/set-email-forward #
Ask an LLM
“How do I forward a mailbox on my custom domain?”
“Can I change the destination of an existing domain forward?”
Tell an agent
Set {mailbox} on {domain} to forward to {destination} for user {user_id}.
Change the forward on {domain} for {mailbox} to {destination} for {user_id}.
PATCH /wpcom/v2/gravatar/custom-domains/set-email-forward Change an existing email forward on a custom Gravatar domain · PATCH /wpcom/v2/gravatar/custom-domains/set-email-forward #
Ask an LLM
“Can I change where a custom Gravatar domain forwards emails?”
“How do I update an existing Gravatar email forward?”
Tell an agent
Update the existing forward on {mailbox} of {domain} to {destination} (user {user_id}, type {type}).
Change the destination of {mailbox} on {domain} to {destination}.
POST /wpcom/v2/gravatar/custom-domains/update-email-forward Replace a custom Gravatar domain's email forward · POST /wpcom/v2/gravatar/custom-domains/update-email-forward #
Ask an LLM
“How do I replace the sender address of a Gravatar email forward?”
“Can I deactivate an old custom domain forward and add a new one?”
Tell an agent
Replace the forward on {mailbox} of {domain} with {new_destination} (user {user_id}, active {is_active}, from {destination}).
Replace existing domain forward {mailbox} on {domain} from {destination} to {new_destination}, active {is_active}.
PUT /wpcom/v2/gravatar/custom-domains/update-email-forward Update a custom domain email forward · PUT /wpcom/v2/gravatar/custom-domains/update-email-forward #
Ask an LLM
“Can I change only the destination of an existing Gravatar email forward with a PUT?”
“What fields are required when replacing a custom domain forward?”
Tell an agent
Put a new destination {new_destination} on the {mailbox} forward of {domain}, currently going to {destination}, for user {user_id}, active {is_active}.
Overwrite forward {mailbox} on {domain} from {destination} to {new_destination} for {user_id}, with active flag {is_active}.
PATCH /wpcom/v2/gravatar/custom-domains/update-email-forward Partially update a custom Gravatar domain's email forward · PATCH /wpcom/v2/gravatar/custom-domains/update-email-forward #
Ask an LLM
“Can I change just the destination on an existing Gravatar email forward?”
“What does a partial update of a custom domain forward need?”
Tell an agent
Partially update the forward on {mailbox} of {domain} to {new_destination} (user {user_id}, active {is_active}, from {destination}).
Patch existing domain forward {mailbox} on {domain} from {destination} to {new_destination}, active {is_active}.
POST /wpcom/v2/gravatar/developers/applications Register a new Gravatar developer application · POST /wpcom/v2/gravatar/developers/applications #
Ask an LLM
“How do I register a new application for Gravatar developer access?”
“What details do I need to submit for a developer app?”
Tell an agent
Register a new developer app {title} for {user_id} described as {description}.
Create a developer application {title} for {user_id} with organization {organization_name} and website {organization_website}.
GET /wpcom/v2/gravatar/developers/applications List my Gravatar developer applications · GET /wpcom/v2/gravatar/developers/applications #
Ask an LLM
“Which applications have I registered for Gravatar developer access?”
“Can I see all my developer apps?”
Tell an agent
List my Gravatar developer applications for user {user_id}.
Show every app I registered under {user_id}.
GET /wpcom/v2/gravatar/developers/applications/count Count my Gravatar developer applications · GET /wpcom/v2/gravatar/developers/applications/count #
Ask an LLM
“How many developer applications do I have?”
“What is the total number of my Gravatar apps?”
Tell an agent
Count my Gravatar developer applications.
Tell me how many apps I've registered.
DELETE /wpcom/v2/gravatar/developers/applications/{app_id} Delete a Gravatar developer application · DELETE /wpcom/v2/gravatar/developers/applications/{app_id} #
Ask an LLM
“How do I remove a developer application I registered?”
“Can I delete a Gravatar app by its ID?”
Tell an agent destructive · confirm first
Delete developer application {app_id} for user {user_id}.
Remove app {app_id} from my developer apps.
GET /wpcom/v2/gravatar/developers/applications/{app_id} Get one Gravatar developer application · GET /wpcom/v2/gravatar/developers/applications/{app_id} #
Ask an LLM
“What are the details of a specific developer application?”
“Can I look up one app by its ID?”
Tell an agent
Get developer application {app_id}.
Show the details of app {app_id}.
POST /wpcom/v2/gravatar/developers/applications/{app_id} Register an application against a Gravatar developer app · POST /wpcom/v2/gravatar/developers/applications/{app_id} #
Ask an LLM
“How can I create a new application linked to my Gravatar developer app?”
“What details come back when I register a Gravatar developer app?”
Tell an agent
Register a new developer app {app_id} for user {user_id} titled {title}.
Create Gravatar developer app {app_id} for user {user_id} with redirect {redirect_urls}.
PUT /wpcom/v2/gravatar/developers/applications/{app_id} Update a Gravatar developer application · PUT /wpcom/v2/gravatar/developers/applications/{app_id} #
Ask an LLM
“How do I change the redirect URLs on an existing developer app?”
“Can I rename a developer application I already registered?”
Tell an agent
Update developer application {app_id} to redirect to {redirect_urls}.
Rename developer app {app_id} to {title}.
PATCH /wpcom/v2/gravatar/developers/applications/{app_id} Update a Gravatar developer application · PATCH /wpcom/v2/gravatar/developers/applications/{app_id} #
Ask an LLM
“Can I change the redirect URLs or JavaScript origins on a Gravatar app?”
“How do I rename a developer application?”
Tell an agent
Rename Gravatar developer application {app_id} to {title}.
Set redirect URLs {redirect_urls} on Gravatar app {app_id}.
POST /wpcom/v2/gravatar/developers/applications/{app_id}/reset-secret Reset a Gravatar app's secret (POST) · POST /wpcom/v2/gravatar/developers/applications/{app_id}/reset-secret #
Ask an LLM
“Can I reset a Gravatar app's secret with a POST request?”
“Which POST call rotates a developer application's secret?”
Tell an agent destructive · confirm first
Reset the secret of Gravatar developer application {app_id} with POST.
Rotate the secret on Gravatar app {app_id} using the POST reset endpoint.
PUT /wpcom/v2/gravatar/developers/applications/{app_id}/reset-secret Reset a Gravatar app's secret (PUT) · PUT /wpcom/v2/gravatar/developers/applications/{app_id}/reset-secret #
Ask an LLM
“Is there a PUT endpoint for resetting a Gravatar app's secret?”
“Can I rotate a developer application's secret with a PUT request?”
Tell an agent destructive · confirm first
Reset the secret of Gravatar developer application {app_id} with PUT.
Rotate the secret on Gravatar app {app_id} using the PUT reset endpoint.
PATCH /wpcom/v2/gravatar/developers/applications/{app_id}/reset-secret Reset a Gravatar app's secret (PATCH) · PATCH /wpcom/v2/gravatar/developers/applications/{app_id}/reset-secret #
Ask an LLM
“Can I reset a Gravatar app's secret with a PATCH request?”
“Which PATCH call rotates a developer application's secret?”
Tell an agent destructive · confirm first
Reset the secret of Gravatar developer application {app_id} with PATCH.
Rotate the secret on Gravatar app {app_id} using the PATCH reset endpoint.
GET /wpcom/v2/gravatar/emails-blocklist Check whether emails are blocked from Gravatar · GET /wpcom/v2/gravatar/emails-blocklist #
Ask an LLM
“Are these email addresses blocked from using Gravatar?”
“Can I check the Gravatar blocklist for several emails at once?”
Tell an agent
Check the Gravatar blocklist for {emails}.
See whether {emails} are blocked from Gravatar.
DELETE /wpcom/v2/gravatar/emails-blocklist Remove emails from the Gravatar blocklist · DELETE /wpcom/v2/gravatar/emails-blocklist #
Ask an LLM
“How do I unblock emails that were added to the Gravatar blocklist?”
“Can I remove several email addresses from the Gravatar blocklist?”
Tell an agent destructive · confirm first
Remove {emails} from the Gravatar blocklist.
Unblock {emails} on Gravatar.
GET /wpcom/v2/gravatar/stats/recently-visited-profiles List recently visited Gravatar profiles · GET /wpcom/v2/gravatar/stats/recently-visited-profiles #
Ask an LLM
“Which Gravatar profiles have been viewed recently?”
“Can I see the most recently visited profile pages?”
Tell an agent
List recently visited Gravatar profiles.
Show the last {limit} profile pages viewed in the last {minutes_back} minutes.

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-gravatar-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-gravatar-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: WordPress.com REST API — wpcom/v2 namespace Gravatar 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: gravatar
paths:
  /wpcom/v2/gravatar/custom-domains/add-email-forward:
    post:
      operationId: postWpcomV2GravatarCustomDomainsAddEmailForward
      summary: POST /wpcom/v2/gravatar/custom-domains/add-email-forward
      tags:
      - gravatar
      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:
                user_id:
                  type: integer
                domain:
                  type: string
                mailbox:
                  type: string
                destination:
                  type: string
              required:
              - user_id
              - domain
              - mailbox
              - destination
  /wpcom/v2/gravatar/custom-domains/delete-email-forward:
    delete:
      operationId: deleteWpcomV2GravatarCustomDomainsDeleteEmailForward
      summary: DELETE /wpcom/v2/gravatar/custom-domains/delete-email-forward
      tags:
      - gravatar
      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: user_id
        in: query
        required: true
        schema:
          type: integer
      - name: domain
        in: query
        required: true
        schema:
          type: string
      - name: mailbox
        in: query
        required: true
        schema:
          type: string
      - name: destination
        in: query
        required: true
        schema:
          type: string
  /wpcom/v2/gravatar/custom-domains/email-forwards:
    get:
      operationId: getWpcomV2GravatarCustomDomainsEmailForwards
      summary: GET /wpcom/v2/gravatar/custom-domains/email-forwards
      tags:
      - gravatar
      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: user_id
        in: query
        required: true
        schema:
          type: integer
      - name: domain
        in: query
        required: true
        schema:
          type: string
  /wpcom/v2/gravatar/custom-domains/purchase:
    get:
      operationId: getWpcomV2GravatarCustomDomainsPurchase
      summary: GET /wpcom/v2/gravatar/custom-domains/purchase
      tags:
      - gravatar
      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: query
        required: true
        schema:
          type: string
      - name: user_id
        in: query
        required: true
        schema:
          type: integer
  /wpcom/v2/gravatar/custom-domains/set-auto-renew:
    post:
      operationId: postWpcomV2GravatarCustomDomainsSetAutoRenew
      summary: POST /wpcom/v2/gravatar/custom-domains/set-auto-renew
      tags:
      - gravatar
      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
                type:
                  type: string
                user_id:
                  type: integer
                subscription_id:
                  type: integer
              required:
              - domain
              - type
              - user_id
              - subscription_id
    put:
      operationId: putWpcomV2GravatarCustomDomainsSetAutoRenew
      summary: PUT /wpcom/v2/gravatar/custom-domains/set-auto-renew
      tags:
      - gravatar
      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
                type:
                  type: string
                user_id:
                  type: integer
                subscription_id:
                  type: integer
              required:
              - domain
              - type
              - user_id
              - subscription_id
    patch:
      operationId: patchWpcomV2GravatarCustomDomainsSetAutoRenew
      summary: PATCH /wpcom/v2/gravatar/custom-domains/set-auto-renew
      tags:
      - gravatar
      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
                type:
                  type: string
                user_id:
                  type: integer
                subscription_id:
                  type: integer
              required:
              - domain
              - type
              - user_id
              - subscription_id
  /wpcom/v2/gravatar/custom-domains/set-email-forward:
    post:
      operationId: postWpcomV2GravatarCustomDomainsSetEmailForward
      summary: POST /wpcom/v2/gravatar/custom-domains/set-email-forward
      tags:
      - gravatar
      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:
                user_id:
                  type: integer
                domain:
                  type: string
                mailbox:
                  type: string
                destination:
                  type: string
                type:
                  type: string
              required:
              - user_id
              - domain
              - mailbox
              - destination
              - type
    put:
      operationId: putWpcomV2GravatarCustomDomainsSetEmailForward
      summary: PUT /wpcom/v2/gravatar/custom-domains/set-email-forward
      tags:
      - gravatar
      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:
                user_id:
                  type: integer
                domain:
                  type: string
                mailbox:
                  type: string
                destination:
                  type: string
                type:
                  type: string
              required:
              - user_id
              - domain
              - mailbox
              - destination
              - type
    patch:
      operationId: patchWpcomV2GravatarCustomDomainsSetEmailForward
      summary: PATCH /wpcom/v2/gravatar/custom-domains/set-email-forward
      tags:
      - gravatar
      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:
                user_id:
                  type: integer
                domain:
                  type: string
                mailbox:
                  type: string
                destination:
                  type: string
                type:
                  type: string
              required:
              - user_id
              - domain
              - mailbox
              - destination
              - type
  /wpcom/v2/gravatar/custom-domains/update-email-forward:
    post:
      operationId: postWpcomV2GravatarCustomDomainsUpdateEmailForward
      summary: POST /wpcom/v2/gravatar/custom-domains/update-email-forward
      tags:
      - gravatar
      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:
                user_id:
                  type: integer
                domain:
                  type: string
                mailbox:
                  type: string
                destination:
                  type: string
                new_destination:
                  type: string
                is_active:
                  type: boolean
              required:
              - user_id
              - domain
              - mailbox
              - destination
              - new_destination
              - is_active
    put:
      operationId: putWpcomV2GravatarCustomDomainsUpdateEmailForward
      summary: PUT /wpcom/v2/gravatar/custom-domains/update-email-forward
      tags:
      - gravatar
      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:
                user_id:
                  type: integer
                domain:
                  type: string
                mailbox:
                  type: string
                destination:
                  type: string
                new_destination:
                  type: string
                is_active:
                  type: boolean
              required:
              - user_id
              - domain
              - mailbox
              - destination
              - new_destination
              - is_active
    patch:
      operationId: patchWpcomV2GravatarCustomDomainsUpdateEmailForward
      summary: PATCH /wpcom/v2/gravatar/custom-domains/update-email-forward
      tags:
      - gravatar
      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:
                user_id:
                  type: integer
                domain:
                  type: string
                mailbox:
                  type: string
                destination:
                  type: string
                new_destination:
                  type: string
                is_active:
                  type: boolean
              required:
              - user_id
              - domain
              - mailbox
              - destination
              - new_destination
              - is_active
  /wpcom/v2/gravatar/developers/applications:
    post:
      operationId: postWpcomV2GravatarDevelopersApplications
      summary: POST /wpcom/v2/gravatar/developers/applications
      tags:
      - gravatar
      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:
                user_id:
                  type: integer
                title:
                  type: string
                description:
                  type: string
                organization_name:
                  type: string
                organization_website:
                  type: string
              required:
              - user_id
              - title
              - description
              - organization_name
              - organization_website
    get:
      operationId: getWpcomV2GravatarDevelopersApplications
      summary: GET /wpcom/v2/gravatar/developers/applications
      tags:
      - gravatar
      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: user_id
        in: query
        required: true
        schema:
          type: integer
  /wpcom/v2/gravatar/developers/applications/count:
    get:
      operationId: getWpcomV2GravatarDevelopersApplicationsCount
      summary: GET /wpcom/v2/gravatar/developers/applications/count
      tags:
      - gravatar
      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/gravatar/developers/applications/{app_id}:
    delete:
      operationId: deleteWpcomV2GravatarDevelopersApplicationsbyAppId
      summary: DELETE /wpcom/v2/gravatar/developers/applications/{app_id}
      tags:
      - gravatar
      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: app_id
        in: path
        required: true
        schema:
          type: string
      - name: user_id
        in: query
        required: true
        schema:
          type: integer
    get:
      operationId: getWpcomV2GravatarDevelopersApplicationsbyAppId
      summary: GET /wpcom/v2/gravatar/developers/applications/{app_id}
      tags:
      - gravatar
      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: app_id
        in: path
        required: true
        schema:
          type: string
    post:
      operationId: postWpcomV2GravatarDevelopersApplicationsbyAppId
      summary: POST /wpcom/v2/gravatar/developers/applications/{app_id}
      tags:
      - gravatar
      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: app_id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                title:
                  type: string
                description:
                  type: string
                organization_name:
                  type: string
                organization_website:
                  type: string
                redirect_urls:
                  type: array
                  items: {}
                javascript_origins:
                  type: array
                  items: {}
                type:
                  type: string
                user_id:
                  type: integer
                icon:
                  type: string
    put:
      operationId: putWpcomV2GravatarDevelopersApplicationsbyAppId
      summary: PUT /wpcom/v2/gravatar/developers/applications/{app_id}
      tags:
      - gravatar
      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: app_id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                title:
                  type: string
                description:
                  type: string
                organization_name:
                  type: string
                organization_website:
                  type: string
                redirect_urls:
                  type: array
                  items: {}
                javascript_origins:
                  type: array
                  items: {}
                type:
                  type: string
                user_id:
                  type: integer
                icon:
                  type: string
    patch:
      operationId: patchWpcomV2GravatarDevelopersApplicationsbyAppId
      summary: PATCH /wpcom/v2/gravatar/developers/applications/{app_id}
      tags:
      - gravatar
      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: app_id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                title:
                  type: string
                description:
                  type: string
                organization_name:
                  type: string
                organization_website:
                  type: string
                redirect_urls:
                  type: array
                  items: {}
                javascript_origins:
                  type: array
                  items: {}
                type:
                  type: string
                user_id:
                  type: integer
                icon:
                  type: string
  /wpcom/v2/gravatar/developers/applications/{app_id}/reset-secret:
    post:
      operationId: postWpcomV2GravatarDevelopersApplicationsbyAppIdResetSecret
      summary: POST /wpcom/v2/gravatar/developers/applications/{app_id}/reset-secret
      tags:
      - gravatar
      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: app_id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                user_id:
                  type: integer
              required:
              - user_id
    put:
      operationId: putWpcomV2GravatarDevelopersApplicationsbyAppIdResetSecret
      summary: PUT /wpcom/v2/gravatar/developers/applications/{app_id}/reset-secret
      tags:
      - gravatar
      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: app_id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                user_id:
                  type: integer
              required:
              - user_id
    patch:
      operationId: patchWpcomV2GravatarDevelopersApplicationsbyAppIdResetSecret
      summary: PATCH /wpcom/v2/gravatar/developers/applications/{app_id}/reset-secret
      tags:
      - gravatar
      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: app_id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                user_id:
                  type: integer
              required:
              - user_id
  /wpcom/v2/gravatar/emails-blocklist:
    get:
      operationId: getWpcomV2GravatarEmailsBlocklist
      summary: GET /wpcom/v2/gravatar/emails-blocklist
      tags:
      - gravatar
      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: emails
        in: query
        required: true
        schema:
          type: array
          items:
            type: string
        description: List of emails
    delete:
      operationId: deleteWpcomV2GravatarEmailsBlocklist
      summary: DELETE /wpcom/v2/gravatar/emails-blocklist
      tags:
      - gravatar
      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: emails
        in: query
        required: true
        schema:
          type: array
          items:
            type: string
        description: List of emails
  /wpcom/v2/gravatar/stats/recently-visited-profiles:
    get:
      operationId: getWpcomV2GravatarStatsRecentlyVisitedProfiles
      summary: GET /wpcom/v2/gravatar/stats/recently-visited-profiles
      tags:
      - gravatar
      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: limit
        in: query
        required: false
        schema:
          type: integer
          default: 1000
      - name: minutes_back
        in: query
        required: false
        schema:
          type: integer
          default: 60
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