- [Resource: Domain](https://developers.google.com/workspace/gmail/postmaster/reference/rest/v2/domains#Domain)
  - [JSON representation](https://developers.google.com/workspace/gmail/postmaster/reference/rest/v2/domains#Domain.SCHEMA_REPRESENTATION)
- [VerificationState](https://developers.google.com/workspace/gmail/postmaster/reference/rest/v2/domains#VerificationState)
- [Methods](https://developers.google.com/workspace/gmail/postmaster/reference/rest/v2/domains#METHODS_SUMMARY)

## Resource: Domain

Information about a domain registered by the user.

| JSON representation |
|---|
| ``` { "name": string, "permission": enum (`https://developers.google.com/workspace/gmail/postmaster/reference/rest/v2/Permission`), "verificationState": enum (`https://developers.google.com/workspace/gmail/postmaster/reference/rest/v2/domains#VerificationState`), "createTime": string, "lastVerifyTime": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. The resource name of the domain. Format: `domains/{domain_name}`, where domain_name is the fully qualified domain name (i.e., mymail.mydomain.com). |
| `permission` | ``enum (`https://developers.google.com/workspace/gmail/postmaster/reference/rest/v2/Permission`)`` Output only. User's permission of this domain. |
| `verificationState` | ``enum (`https://developers.google.com/workspace/gmail/postmaster/reference/rest/v2/domains#VerificationState`)`` Output only. Information about a user's verification history and properties for the domain. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Immutable. The timestamp at which the domain was added to the user's account. |
| `lastVerifyTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` The timestamp at which the domain was last verified by the user. |

## VerificationState

The user's verification status of a domain.

| Enums ||
|---|---|
| `VERIFICATION_STATE_UNSPECIFIED` | Unspecified. |
| `UNVERIFIED` | The domain is unverified. |
| `VERIFIED` | The domain is verified. |

| ## Methods ||
|---|---|
| ### `https://developers.google.com/workspace/gmail/postmaster/reference/rest/v2/domains/create` | Adds a domain to the user's account. |
| ### `https://developers.google.com/workspace/gmail/postmaster/reference/rest/v2/domains/delete` | Deletes a domain from the user's account. |
| ### `https://developers.google.com/workspace/gmail/postmaster/reference/rest/v2/domains/get` | Retrieves detailed information about a domain registered by you. |
| ### `https://developers.google.com/workspace/gmail/postmaster/reference/rest/v2/domains/getComplianceStatus` | Retrieves the compliance status for a given domain. |
| ### `https://developers.google.com/workspace/gmail/postmaster/reference/rest/v2/domains/getVerificationToken` | Gets a verification token used for verifying a user's ownership over a domain. |
| ### `https://developers.google.com/workspace/gmail/postmaster/reference/rest/v2/domains/list` | Retrieves a list of all domains registered by you, along with their corresponding metadata. |
| ### `https://developers.google.com/workspace/gmail/postmaster/reference/rest/v2/domains/verify` | Verifies a user's ownership of a domain at the DNS level. |