Google Gmail Domains API

The Domains API from Google Gmail — 8 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 13

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 /v2/domains Register a domain in Postmaster Tools · Create domains #
Ask an LLM
“How do I add a new domain to Postmaster Tools?”
“What happens if I try to register a domain I already own?”
Tell an agent
Register the domain {domainId}.
Add {domainId} to my account.
GET /v2/domains List domains registered in Postmaster Tools · List domains #
Ask an LLM
“Which domains have I registered in Gmail Postmaster Tools?”
“Is the order of domains in the list predictable?”
Tell an agent
List all my domains.
Show {pageSize} domains per page.
DELETE /v2/domains/{domainsId} Remove a domain from Postmaster Tools · Delete domains #
Ask an LLM
“How do I delete a domain from my account?”
“Can I remove a domain I no longer send mail from?”
Tell an agent destructive · confirm first
Delete domain {domainsId}.
Remove {domainsId} from my account.
GET /v2/domains/{domainsId} Get a registered domain's details · Get domains #
Ask an LLM
“What metadata is stored for one of my domains?”
“Can I look up a domain I already registered?”
Tell an agent
Get details for domain {domainsId}.
Show the metadata of registered domain {domainsId}.
POST /v2/domains/{domainsId}:verify Verify ownership of a domain · Verify domains #
Ask an LLM
“How do I prove I own a domain at the DNS level?”
“Can I verify a domain using a TXT or CNAME record?”
Tell an agent
Verify ownership of {domainsId} using {verificationMethod}.
Confirm I own {domainsId} with verification method {verificationMethod}.
GET /v2/domains/{domainsId}/complianceStatus Check a domain's compliance status · Get compliance status domains #
Ask an LLM
“Is my domain compliant with Gmail's sending policies?”
“What compliance status does a domain have?”
Tell an agent
Get the compliance status of {domainsId}.
Check whether {domainsId} is compliant.
GET /v2/domains/{domainsId}/verificationToken Get a domain verification token · Get verification token domains #
Ask an LLM
“Where do I get the DNS token to verify a domain?”
“Can I fetch the TXT or CNAME token for a domain?”
Tell an agent
Get the verification token for {domainsId} using {verificationMethod}.
Fetch the DNS token for {domainsId} with method {verificationMethod}.
PATCH /v2/domains/{domainsId}/users/{usersId} Change a user's permission on a domain · Patch users #
Ask an LLM
“How do I change a user's permission on a domain?”
“Can I promote a reader to an admin for a domain?”
Tell an agent
Set user {usersId} on {domainsId} to permission {permission}.
Change {usersId}'s domain permission on {domainsId} to {permission}.
DELETE /v2/domains/{domainsId}/users/{usersId} Remove a user from a domain · Delete users #
Ask an LLM
“How do I revoke a user's access to a domain?”
“Can I delete a user from my domain?”
Tell an agent destructive · confirm first
Delete user {usersId} from domain {domainsId}.
Revoke {usersId}'s access to {domainsId}.
GET /v2/domains/{domainsId}/users/{usersId} Get a user on a domain · Get users #
Ask an LLM
“What permission does a specific user have on my domain?”
“Can I look up one user's details for a domain?”
Tell an agent
Get user {usersId} on domain {domainsId}.
Show the access level of {usersId} for {domainsId}.
POST /v2/domains/{domainsId}/users Add a user to a domain · Create users #
Ask an LLM
“How do I give someone access to a domain?”
“What permission does a new user get by default?”
Tell an agent
Add user {userId} to domain {domainsId}.
Give {userId} the {permission} permission on {domainsId}.
GET /v2/domains/{domainsId}/users List users on a domain · List users #
Ask an LLM
“Who has access to my domain?”
“Can I see every user on a domain?”
Tell an agent
List the users on domain {domainsId}.
Show {pageSize} users per page for {domainsId}.
POST /v2/domains/{domainsId}/domainStats:query Query domain sending statistics · Query domainStats #
Ask an LLM
“What are my sending statistics for a domain over a time period?”
“Can I get bounce and delivery stats for a domain?”
Tell an agent
Query domain stats for {domainsId} over {timeQuery}.
Get {metricDefinitions} for {domainsId} with granularity {aggregationGranularity}.

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/google-gmail:google-gmail-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

google-gmail-domains-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Gmail Postmaster Tools Domains API
  version: v2
  description: Generated from Google's published Discovery document for Gmail Postmaster Tools API (gmailpostmastertools v2, revision 20261111). 13 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://gmailpostmastertools.googleapis.com
tags:


# --- truncated at 32 KB (39 KB total) ---
# Full source: https://artifacts.apis.io/google-gmail/openapi/google-gmail-domains-api-openapi.yml