--- title: "List DCV methods" source_url: https://dev.digicert.com/certcentral-apis/services-api/domains/list-dcv-methods.html api_method: GET api_endpoint: "/services/v2/domain/dcv/method" api_url: "https://www.digicert.com/services/v2/domain/dcv/method" --- **GET** `https://www.digicert.com/services/v2/domain/dcv/method` Use this endpoint to list domain control validation (DCV) methods available to domains. ## Example requests and responses **cURL** ```bash curl -X GET \ https://www.digicert.com/services/v2/domain/dcv/method \ -H 'Content-Type: application/json' \ -H 'X-DC-DEVKEY: {{api_key}}' ``` **Python** ```python import requests url = "https://www.digicert.com/services/v2/domain/dcv/method" headers = { 'X-DC-DEVKEY': "{{api_key}}", 'Content-Type': "application/json" } response = requests.request("GET", url, headers=headers) print(response.text) ``` **Go** ```go package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "https://www.digicert.com/services/v2/domain/dcv/method" 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)) } ``` **NodeJS** ```javascript var request = require("request"); var options = { method: 'GET', url: 'https://www.digicert.com/services/v2/domain/dcv/method', 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 ```json { "methods": [ { "name": "email", "display_name": "Verification Email", "description": "This method sends a verification link and token via email", "default": true }, { "name": "dns-cname-token", "display_name": "DNS CNAME Record", "description": "This method lets you add a CNAME record from your domain registrar's control panel", "default": false }, { "name": "http-token", "display_name": "HTTP Practical Demonstration", "description": "This method lets you add a token value to a specific URL on the domain being validated", "default": false }, { "name": "dns-txt-token", "display_name": "DNS TXT Record", "description": "This method lets you add a TXT record from your domain registrar's control panel", "default": false } ] } ``` ## Response parameters
Name Type Description
methods array List of available DCV methods.
.. name string DCV method identifier.
.. display_name string Full display name of the DCV method.
.. description string Description of the DCV method.
.. default bool Whether the DCV method is the default for your account.