Soumettre pour validation


Use this endpoint to submit a domain to be validated for the specified validation types.

After you submit a domain for validation, you can get the DCV token for the domain by using the Domain info endpoint. Additionally, you can generate a new DCV token by using the OV/EV SSL: Generate DCV token endpoint.

Include the optional dcv_method parameter to specify the DCV method to used when proving control over the domain.

curl -X POST \
  '{{domain_id}}/validation' \
  -H 'Content-Type: application/json' \
  -H 'X-DC-DEVKEY: {{api_key}}' \
  -d '{
	"validations": [
				"type": "ov"
				"type": "ev"
import requests

url = "{{domain_id}}/validation"

payload = "{\n\t\"validations\": [\n\t\t\t{\n\t\t\t\t\"type\": \"ov\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"type\": \"ev\"\n\t\t\t}\n\t\t]\n}"
headers = {
    'X-DC-DEVKEY': "{{api_key}}",
    'Content-Type': "application/json"

response = requests.request("POST", url, data=payload, headers=headers)

package main

import (

func main() {

	url := "{{domain_id}}/validation"

	payload := strings.NewReader("{\n\t\"validations\": [\n\t\t\t{\n\t\t\t\t\"type\": \"ov\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"type\": \"ev\"\n\t\t\t}\n\t\t]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	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)


var request = require("request");

var options = { method: 'POST',
  url: '{{domain_id}}/validation',
   { 'Content-Type': 'application/json',
     'X-DC-DEVKEY': '{{api_key}}' },
  body: { validations: [ { type: 'ov' }, { type: 'ev' } ] },
  json: true };

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

204 No Content
// empty
201 Created (email)
    "id": 112233,
    "validation_emails": {
        "name_scope": "",
        "base_emails": [
201 Created (dns-txt-token)
    "id": 112233,
    "dcv_token": {
        "token": "{{random_value}}",
        "expiration_date": "2020-02-21T06:29:24+00:00"
201 Created (dns-cname-token)
    "id": 112233,
    "dcv_token": {
        "token": "{{random_value}}",
        "expiration_date": "2020-02-21T07:01:29+00:00",
        "verification_value": ""
201 Created (http-token)
    "id": 112233,
    "dcv_token": {
        "token": "{{random_value}}",
        "expiration_date": "2020-02-21T07:01:29+00:00",
        "http_token_url": ""

Request parameters

Name Req/Opt Type Description
validations required array List of validation types to submit the domain for.
.. type required string Validation type identifier.
See Glossary – Validation types
dcv_method optional string DCV method to use for the domain.
See Glossary – DCV methods

Response parameters

Name Type Description
id int ID of the added domain.
validation_emails object Email addresses used when sending DCV emails.
Only returned for email DCV method.
.. name_scope string Domain scope used for WHOIS record and constructed email addresses.
.. base_emails array List of constructed email addresses.
.. whois_emails array List of email addresses on WHOIS record.
dcv_token object DCV token details.
Only returned for dns-txt-token, dns-cname-token, and http-token DCV methods.
.. token string Random value to use for DCV validation.
.. status string DCV status.
Possible values: pending, active
.. expiration_date string Timestamp for when the token expires.
Format: UTC timezone and ISO 8601 date
.. verification_value string Value for the CNAME record's host field (or equivalent).
Only returned for dns-cname-token DCV method.
.. http_token_url string Filename of the text file and where it should be placed on the web server.
Only returned for http-token DCV method.