POST /messaging/v1/domainverification/register

Overview

Registers a domain for validation by generating and returning the token added to the DNS.

JSON Parameters

Name Type Description
domain string Required The root domain of the email address.

Usage

Required Marketing Cloud Permissions

  • Administration, Access

Example Request

Host: https://YOUR_SUBDOMAIN.rest.marketingcloudapis.com
POST /messaging/v1/domainverification/register
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN

{
    "domain": "example.com"
}

Example Response

HTTP/1.1 200 OK
{
    "domain": "example.com",
    "key": "SFMC-T2isWsgr_EPofeVerEFItSRDvoJz-EFq9u5zwer0"
}
Last Updated: Jun 8, 2021