# Generate domain DCV random value

POST https://www.digicert.com/services/v2/domain/{{domain_id}}/dcv/token

Use this endpoint to generate a new domain control validation (DCV) random value for the domain. Use this random value to validate the domain using the DCV method set for the domain.

To use this endpoint, the DCV method for the domain must be set to dns-txt-token, dns-cname-token, or http-token. To change the domain's DCV method, use the Change domain DCV method API endpoint

To get the existing domain random value instead of generating a new one, use the Domain info endpoint.

## DCV random values for domains vs. orders

This endpoint generates a new random value for the domain. This is the domain random value. You can only use the domain random value to complete the DCV check for the given domain.

### Danger

Generating a new domain random value invalidates the domain random value previously generated for the given domain.

When you place an OV or EV TLS order using a DCV method that requires a random value, DigiCert generates a single random value for the entire order. This is the order random value. You can use the order random value to complete the DCV check for any domain submitted with the order.

### Tip

Order random values remain valid even when you generate a new domain random value.

When requesting a DCV check, you can use either check DCV endpoint: Check order DCV or Check domain DCV. If DigiCert finds a valid random value on the domain, the DCV check is completed, regardless of whether the random value is for the domain or the order.

## Request parameters

Name

Opt/Req

Type

Description

validations Deprecated*

ignored

array

List of validation types for the domain.

*Note: DigiCert has deprecated the validations request parameter.

.. type

ignored

string

Validation type identifier.

## Response parameters

Name

Type

Description

token

string

Random value used to validate domain control for domains using the dns-txt-token, http-token, or dns-cname-token DCV methods.

expiration_date

string

Date and time when the random value expires.

Format: UTC timezone and ISO 8601 date

http_token_url

string

For domains using the http-token DCV method, the URL path where the fileauth.txt file should be placed on the web server. Not returned for domains using other DCV methods.

verification_value

string

For domains using the dns-cname-token DCV method, the domain to use in your CNAME record. For more information, see Use the DNS CNAME validation method to verify domain control.

For domains using the http-token DCV method, the URL path where the fileauth.txt file should be placed on the web server.

Not returned for domains using the dns-txt-token DCV method.