# OV/EV SSL: Generate DCV token

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

Use this endpoint to generate a new random value to use for domain control validation (DCV) for a domain submitted for OV or EV validation. Use the returned token to validate the domain using the DCV method set for the domain (http-txt-token, dns-txt-token, or dns-cname-token).

### Note

Calling this endpoint for a domain where the DCV method is not set or does not require a token returns an invalid_dcv_method error.

### Notice

This endpoint only generates DCV tokens for OV and EV domains. To generate a DCV token for a DV domain, use the DV SSL: Generate DCV token endpoint.

## 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. We ignore this parameter in calls to the OV/EV SSL: Generate DCV token endpoint.

.. 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 token 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.