Get VMC logo

GET
https://www.digicert.com/services/v2/order/certificate/{{order_id}}/vmc/logo

Use this endpoint to get the logo from a Verified Mark Certificate order.

Request format

You can request the SVG data for the logo, or you can request a base64-encoded string with the compressed logo data.

  • To get the SVG data for the logo, set the Accept header to image/svg+xml.
  • To get a base64-encoded string with the compressed logo data, set the Accept header to application/json.

Example requests and responses

cURL
curl --request GET 'https://www.digicert.com/services/v2/order/certificate/12345/vmc/logo' \
--header 'Accept: application/json' \
--header 'X-DC-DEVKEY: {{api_key}}'
Python
import requests
import json

url = "https://www.digicert.com/services/v2/order/certificate/144457106/vmc/logo"

payload={}
headers = {
  'X-DC-DEVKEY': {{api_key}},
  'Content-Type': 'application/json'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)
Go
package main

import (
		"fmt"
		"net/http"
		"io/ioutil"
)

func main() {

		url := "https://www.digicert.com/services/v2/order/certificate/144457106/vmc/logo"
		method := "GET"

		client := &http.Client {
		}
		req, err := http.NewRequest(method, url, nil)

		if err != nil {
				fmt.Println(err)
				return
		}
		req.Header.Add("X-DC-DEVKEY", {{api_key}})
		req.Header.Add("Content-Type", "application/json")

		res, err := client.Do(req)
		if err != nil {
				fmt.Println(err)
				return
		}
		defer res.Body.Close()

		body, err := ioutil.ReadAll(res.Body)
		if err != nil {
				fmt.Println(err)
				return
		}
		fmt.Println(string(body))
}
NodeJS
var request = require('request');
var options = {
  'method': 'GET',
  'url': 'https://www.digicert.com/services/v2/order/certificate/144457106/vmc/logo',
  'headers': {
    'X-DC-DEVKEY': {{api_key}},
    'Content-Type': 'application/json'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});
200 OK
{
  "logo": {{compressed_base64_encoded_svg_logo}}
}

Path parameters

Name Req/Opt Description
order_id required ID of a Verified Mark Certificate order.

Response parameters

Name Type Description
logo string Compressed logo data, formatted as a base64-encoded string.