added

New value domain provider added in Domain Management API

A new value is added in the response of the Create a domain API endpoint. The response will now look as the JSON mentioned below.

Route: Create a domain

When a new domain is added

"id": "660e6e0bc8be0885324be29a",
  "domain_name": "mydomain.com",
  "domain_provider": "GoDaddy",
  "message": "Domain added successfully. To authenticate it, add following DNS records",
  "dns_records": {
    "dkim_record": {
      "type": "TXT",
      "value": "{DKIM value}",
      "host_name": "test-sib._domainkey",
      "status": false
    },
    "brevo_code": {
      "type": "TXT",
      "value": "{brevo code value}",
      "host_name": "@",
      "status": false
    },
    "dmarc_record": {
      "type": "TXT",
      "value": "v=DMARC1; p=none; rua=mailto:[email protected]",
      "host_name": "_dmarc",
      "status": false
    }
  }
}

When a new sub-domain is added

"id": "660e6e0bc8be0885324be29a",
  "domain_name": "subdomain.mydomain.com",
  "domain_provider": "GoDaddy",
  "message": "Domain added successfully. To authenticate it, add following DNS records",
  "dns_records": {
    "dkim_record": {
      "type": "TXT",
      "value": "{DKIM value}",
      "host_name": "test-sib._domainkey.subdomain",
      "status": false
    },
    "brevo_code": {
      "type": "TXT",
      "value": "{brevo code value}",
      "host_name": "subdomain",
      "status": false
    },
    "dmarc_record": {
      "type": "TXT",
      "value": "v=DMARC1; p=none; rua=mailto:[email protected]",
      "host_name": "_dmarc.subdomain",
      "status": false
    }
  }
}

For Validate domain configuration, the response will look like this.

Route: Validate Domain Configuration

When a new domain is added

{
  "domain": "mydomain.com",
  "verified": false,
  "authenticated": false,
  "dns_records": {
    "dkim_record": {
      "type": "TXT",
      "value": "{DKIM value}",
      "host_name": "test-sib._domainkey",
      "status": false
    },
    "brevo_code": {
      "type": "TXT",
      "value": "{Brevo code value}",
      "host_name": "@",
      "status": false
    },
    "dmarc_record": {
      "type": "TXT",
      "value": "v=DMARC1; p=none; rua=mailto:[email protected]",
      "host_name": "_dmarc",
      "status": true
    }
  }
}

When a new sub-domain is added

{
  "domain": "subdomain.mydomain.com",
  "verified": false,
  "authenticated": false,
  "dns_records": {
    "dkim_record": {
      "type": "TXT",
      "value": "{DKIM value}",
      "host_name": "test-sib._domainkey.subdomain",
      "status": false
    },
    "brevo_code": {
      "type": "TXT",
      "value": "{Brevo code value}",
      "host_name": "subdomain",
      "status": false
    },
    "dmarc_record": {
      "type": "TXT",
      "value": "v=DMARC1; p=none; rua=mailto:[email protected]",
      "host_name": "_dmarc..subdomain",
      "status": true
    }
  }
}

The format of DNS records value will change based on whether user is adding a domain or subdomain.