# Verify a domain

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "CM.Email.Configuration.API - Verify Domain",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.cm.com/email/configuration"
    }
  ],
  "paths": {
    "/v1/dns/accounts/{logicalAccountId}/verify": {
      "post": {
        "tags": [
          "EmailDomains"
        ],
        "summary": "Verify a domain",
        "parameters": [
          {
            "name": "logicalAccountId",
            "in": "path",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "domain",
            "in": "query",
            "style": "form",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DomainValidityResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "DomainValidityResponse": {
        "type": "object",
        "properties": {
          "statusCode": {
            "$ref": "#/components/schemas/StatusCode"
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "dnsEntries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DnsEntry"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DnsEntry": {
        "type": "object",
        "properties": {
          "host": {
            "type": "string",
            "nullable": true
          },
          "value": {
            "type": "string",
            "nullable": true
          },
          "isValid": {
            "type": "boolean"
          },
          "type": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": {}
      },
      "StatusCode": {
        "enum": [
          200,
          400,
          404,
          500,
          999
        ],
        "type": "integer",
        "format": "int32"
      }
    },
    "securitySchemes": {
      "X-CM-SSO-ACCOUNTGUID": {
        "type": "apiKey",
        "description": "Custom header for SSO Account GUID",
        "name": "X-CM-SSO-ACCOUNTGUID",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "X-CM-SSO-ACCOUNTGUID": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 104,
      "1": 185,
      "2": 103,
      "3": 91,
      "4": 129,
      "5": 218,
      "6": 254,
      "7": 211,
      "8": 11,
      "9": 153,
      "10": 164,
      "11": 41
    }
  }
}
```