--- title: "Download certificate" source_url: https://dev.digicert.com/certcentral-apis/services-api/certificates/download-certificate.html api_method: GET api_endpoint: "/services/v2/certificate/{{certificate_id}}/download/platform" api_url: "https://www.digicert.com/services/v2/certificate/{{certificate_id}}/download/platform" --- **GET** `https://www.digicert.com/services/v2/certificate/{{certificate_id}}/download/platform` Use this endpoint to download a certificate using the `certificate_id`. `certificate_id` is a numeric identifier assigned by DigiCert to each certificate at the time of issuance. > **Info** > > The returned certificate format is based on the `server_platform.id` on the order. To download the certificate for a different platform, append `/{{platform_id}}` to this endpoint. For valid `platform_id` values, see [Glossary – Server platforms](https://dev.digicert.com/md/certcentral-apis/services-api/glossary.md#server-platforms). ## Where to locate the Certificate ID? You can find the Certificate ID using the following methods: - **Certificate Order API Response**: Access the certificate ID in the `certificate_id` response parameter if the certificate has been successfully issued. - **CertCentral API**: Use the [Order info](https://dev.digicert.com/md/certcentral-apis/services-api/orders/order-info.md) API endpoint to obtain the certificate ID. The certificate ID is returned in the `id` response parameter, nested under the `certificate` object. Ensure you have the corresponding `order_id` from the administrator before using the API endpoint. - **CertCentral Platform**: Retrieve the certificate ID from the CertCentral UI. In CertCentral, in the left menu, go to **Certificates** > **Orders**. On the **Orders** page, in the **Order # column**, select the **Quick View** link of the corresponding certificate. In the **Order #** details pane (on the right), under **Certificate information**, you’ll see the **Certificate id**. - **Order Confirmation Email**: Locate the certificate ID in the order confirmation email. ## Example requests and responses **cURL** ```bash curl -X GET \ 'https://www.digicert.com/services/v2/certificate/{{certificate_id}}/download/platform' \ -H 'Content-Type: application/json' \ -H 'X-DC-DEVKEY: {{api_key}}' ``` **Python** ```python import requests url = "https://www.digicert.com/services/v2/certificate/{{certificate_id}}/download/platform" 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/certificate/{{certificate_id}}/download/platform" 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/certificate/{{certificate_id}}/download/platform', 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 // platform-specific certificate output ```