Domain info

GET https://www.digicert.com/services/v2/domain/{{domain_id}}?include_dcv=true&include_validation=true
Use this endpoint to get details for a domain.

To get IDs for the domains in your account, use the List domains endpoint.

Example requests and responses

curl -X GET \
  'https://www.digicert.com/services/v2/domain/{{domain_id}}?include_dcv=true&include_validation=true' \
  -H 'Content-Type: application/json' \
  -H 'X-DC-DEVKEY: {{api_key}}'
import requests

url = "https://www.digicert.com/services/v2/domain/{{domain_id}}"

querystring = {"include_dcv":"true","include_validation":"true"}

headers = {
    'X-DC-DEVKEY': "{{api_key}}",
    'Content-Type': "application/json"
    }

response = requests.request("GET", url, headers=headers, params=querystring)

print(response.text)
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://www.digicert.com/services/v2/domain/{{domain_id}}?include_dcv=true&include_validation=true"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("X-DC-DEVKEY", "{{api_key}}")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
var request = require("request");

var options = { method: 'GET',
  url: 'https://www.digicert.com/services/v2/domain/{{domain_id}}',
  qs: { include_dcv: 'true', include_validation: 'true' },
  headers: 
   { 'Content-Type': 'application/json',
     'X-DC-DEVKEY': '{{api_key}}' } };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});

200 OK

{
  "id": 12345678,
  "is_active": true,
  "status": "pending",
  "is_pending_validation": true,
  "name": "example.com",
  "date_created": "2021-04-27T14:49:28+00:00",
  "dcv_approval_datetime": "2021-05-27T22:11:22+00:00",
  "dcv_expiration_datetime": "2022-05-27T22:11:22+00:00",
  "organization": {
    "id": 12345678,
    "status": "active",
    "name": "Example Corp.",
    "display_name": "Example Corp.",
    "is_active": "1"
  },
  "validations": [
    {
      "type": "ov",
      "name": "OV",
      "description": "Normal Organization Validation",
      "validated_until": "2022-05-27T14:51:31+00:00",
      "status": "active",
      "dcv_status": "complete"
    },
    {
      "type": "ev",
      "name": "EV",
      "description": "Extended Organization Validation (EV)",
      "validated_until": "2022-05-27T14:51:31+00:00",
      "status": "active",
      "dcv_status": "complete"
    }
  ],
  "dcv_method": "dns-txt-token",
  "dcv_token": {
    "token": {{dcv_token}},
    "status": "active",
    "expiration_date": "2022-02-24T16:25:52+00:00"
  },
  "dcv_expiration": {
    "ev": "2022-05-27",
    "ov": "2022-05-27"
  },
  "container": {
    "id": 123456,
    "name": "Example Corp."
  },
  "base_domain": "example.com",
  "dcv__approval_method": "dns-txt-token"
}

Path parameters

NameReq/OptDescription
domain_idrequiredID of the domain to query.

URL query strings

NameReq/OptTypeDescription
include_dcvoptionalbooleanIf true, returns domain control validation (DCV) details in the response.
Default:
false
include_validationoptionalbooleanIf true, returns validation details in the response. Validation details are returned in the validations array.
Default:
false
include_validation_reuse_statusoptionalbooleanIf true, the dcv_expiration object in the response includes ov_shortened, ov_status, ev_status, and dcv_approval_date response parameters.
Default:
false

Response parameters

NameTypeDescription
idintegerDomain ID.
is_activebooleanActive status of the domain.
status
Deprecated*
stringValidation status of the domain.
*Note: DigiCert has deprecated the status response parameter.
is_pending_validationbooleanPending status of the domain.
namestringName of the domain.
date_createdstringTimestamp of when the domain was added.
Format: UTC timezone and ISO 8601 date
domain_locking_statusstringDomain lock status. Domain locking prevents users in other CertCentral accounts from requesting certificates for the domain.
A domain only returns the domain_locking_status property if domain locking is enabled for the account. See Domain locking – Enable domain locking for your account.
Possible values:
account_tokenstringAccount token to use for domain locking.
A domain only returns the account_token parameter if these conditions are met:
dcv_approval_datetimestringCompletion date and time (UTC) of the most recent DCV check for the domain. Only returned if request URL contains include_dcv=true and you have completed a DCV check for the domain at least once.
Format: UTC timezone and ISO 8601 date
dcv_expiration_datetimestringExpiration date and time (UTC) of the most recent DCV check for the domain. Only returned if request URL contains include_dcv=true and you have completed a DCV check for the domain at least once.
Format: UTC timezone and ISO 8601 date
organizationobjectOrganization attached to the domain.
.. idintegerOrganization ID.
.. statusstringOrganization status.
Possible values:active, inactive. For more information, see Glossary - Organization status.
.. namestringLegal name of the organization.
.. assumed_namestringPublic name of the organization. Also called DBA name.
.. display_namestringFull name of the organization. Constructed using name + assumed_name.
.. is_activestringActive status of the organization.
validationsarrayList of objects with details about each type of validation on the domain. Only returned if request URL contains include_validation=true.
For information about the data structure and key/value pairs for objects returned in the validations array, see Structures – Validations object.
.. typestringType of validation.
.. namestringName of validation.
.. descriptionstringDescription of validation.
.. statusstringStatus of validation.
.. dcv_statusstringDCV status of validation.
dcv_methodstringLatest DCV method configured for the domain. Only returned if request URL contains include_dcv=true.
Possible values: See Glossary – DCV methods
dcv_tokenobjectIf DCV method uses a random value, this object is returned and contains token information. Only returned if request URL contains include_dcv=true.
.. tokenstringRandom value used to prove control over the domain.
.. statusstringStatus of the domain validation process.
.. expiration_datestringTimestamp of when the token will expire.
Format: UTC timezone and ISO 8601 date
higher_level_domainsarray of objectsList of existing higher-level domains with a complete domain control validation (DCV) check for the same organization as the queried domain. If none exist, the response omits the higher_level_domains array.
Use the higher_level_domains list to see if there are any domains in your account with active validations you can reuse to prove control over the queried domain. When you complete DCV for a higher-level domain, you prove you control any subdomains of the validated domain. You can request an OV or EV TLS certificate for those subdomains without completing a new DCV check.
Note: The response only includes the higher_level_domains array if the request URL includes the query string include_dcv=true.
.. namestringDomain name (FQDN) of the higher-level domain.
.. idintegerDomain ID of the higher-level domain.
.. dcv_expiration_datetimestringExpiration date and time (UTC) of the most recent DCV check for the higher-level domain.
Format: UTC timezone and ISO 8601 date
dcv_expirationstringIf DCV is completed, this object is returned with information about when OV and EV domain validations expire. Only returned if request URL contains include_dcv=true.
.. evstringExpiration date for EV domain validation.
Format:
YYYY-MM-DD
.. ovstringExpiration date for OV domain validation.
Format:
YYYY-MM-DD
Note: On September 27, 2021, the expiration date for existing OV domain validations will shorten to 397 days from the date validation was completed. Learn more about this policy change: Domain validation changes in 2021.
.. ov_shortenedstringNew expiration date for OV domain validation after industry changes to shorten the domain validation reuse period go into effect on September 27, 2021. Only returned if request URL contains include_validation_reuse_status=true.
Format:
YYYY-MM-DD
Note: After September 27, 2021, the dcv_expiration.ov_shortened parameter will return the same date as the dcv_expiration.ov parameter. Learn more about this policy change: Domain validation changes in 2021.
.. ov_statusstringOV domain validation status. Only returned if request URL contains include_validation_reuse_status=true.
Possible values:
Note: After September 27, 2021, the ov_status parameter stopped returning industry_shortened_expired and industry_shortened_expiring_soon values. Learn more about this policy change: Domain validation changes in 2021.
.. ev_statusstringEV domain validation status.
Possible values:
.. dcv_approval_datestringDate of the most recent DCV approval for the domain. Only returned if request URL contains include_validation_reuse_status=true.
Format:
YYYY-MM-DD
containerobjectContainer the domain is attached to.
.. idintContainer ID.
.. parent_idintID of the container’s parent.
.. namestringName of the container.
.. is_activeboolActive status of the container.
base_domainstringBase domain of the domain.
dcv_approval_methodstringDCV method used to complete the most recent DCV check. Only returned if request URL contains include_dcv=true.
Possible values: See Glossary – DCV methods