Request
Endpoint: !GetDCVEmailAddressList
https://secure.trust-provider.com/products/!GetDCVEmailAddressList
The GetDCVEmailAddressList API endpoint performs a real-time DNS TXT lookup for the specified domain and product, then returns a list of eligible DCV email addresses.
This list includes both extracted addresses and alternative addresses allowed by Sectigo for domain control validation (DCV), such as [email protected] and [email protected].
After calling GetDCVEmailAddressList, you must call AutoApplyOrder, AutoApplySSL, or AutoReplaceSSL within 24 hours, otherwise, the dcvEmailAddress parameter will not be accepted.
Only call this API when you intend to place an order.
|
Use the POST method for this endpoint.
Submit parameters in the x-www-form-urlencoded format.
Request parameters
The following table displays the required, optional, and conditional parameters.
| Parameter | Requirement | Type | Max.Length | Description |
|---|---|---|---|---|
|
required |
string |
64 chars |
Your account username. This value is case sensitive. |
|
required |
string |
128 chars |
Your account password. This value is case sensitive. |
|
required |
string |
255 chars |
Specifies the fully qualified domain name (FQDN). |
|
required |
integer |
(VMC/CMC only) Specifies which product to retrieve the DCV email addresses for. The allowed values are:
|
|
|
optional |
integer |
Specifies the response format. The allowed values are:
If omitted, the value defaults to To fetch the DNS TXT contact email address, set this parameter to |
Sample request
curl --location 'https://secure.trust-provider.com/products/!GetDCVEmailAddressList' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'domainName=domain_name' \
--data-urlencode 'responseformat=2' \
--data-urlencode 'product=801'
Response
The request is successful when the server returns a response with the status code equals 0.
Any status code less than 0 indicates an error condition.
|
The list of codes and their descriptions can be found in Error codes. |
The MIME type will be text/plain.
If the status code is less than 0, the response consists of the error code in the first line and the error message in the second line.
If the status code equals 0, the rest of the response consists of tab-separated name/value pairs, one pair per line.
Response parameters
The following table outlines the name/parameter pairs returned in a successful response.
| Parameter | Occurrence | Description | ||
|---|---|---|---|---|
|
multiple occurrences |
Alternative email addresses that Sectigo will accept for domain control validation.
Alternative email addresses will be given for all levels from level 2 up to however many components there are in the The acceptable email address options are:
|
Error codes
The following table outlines error responses returned by the GetDCVEmailAddressList API endpoint.
Each error response consists of an errorCode and an errorMessage indicating why the request failed.
| Error Code | Error Message | Description |
|---|---|---|
|
|
The request must use |
|
|
The provided argument is not recognized. |
|
|
The required argument is missing from the request. |
|
|
The argument value does not meet validation requirements. |
|
|
An unknown error occurred. |
|
|
Authentication has failed due to one of the specified reasons. Verify your login credentials or check account restrictions. |
|
|
The request method should be |
|
|
The provided domain name may not be an Internet-accessible IP address. |
|
|
The provided domain name cannot be an intranet server name or intranet IP address. |
|
|
The user does not have permission to use a voucher with the specified context. |
|
|
The user does not have the permission to perform auto-apply operations. |
|
|
The request for the DCV email address list could not be completed. |