List certificate notes

GET
https://www.digicert.com/services/v2/certificate/{{certificate_id}}/note

Use this endpoint to list notes attached to a certificate.

cURL
curl -X GET \
  'https://www.digicert.com/services/v2/certificate/{{certificate_id}}/note' \
  -H 'Content-Type: application/json' \
  -H 'X-DC-DEVKEY: {{api_key}}'
Python
import requests

url = "https://www.digicert.com/services/v2/certificate/{{certificate_id}}/note"

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

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

print(response.text)
Go
package main

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

func main() {

	url := "https://www.digicert.com/services/v2/certificate/{{certificate_id}}/note"

	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
var request = require("request");

var options = { method: 'GET',
  url: 'https://www.digicert.com/services/v2/certificate/{{certificate_id}}/note',
  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
{
  "notes": [
    {
      "date_created": "2019-02-05T21:34:42+00:00",
      "text": "Note text.",
      "user": {
        "id": 123,
        "first_name": "Locke",
        "last_name": "Cole",
        "email": "lock.cole@example.com"
      }
    }
  ]
}

Response parameters

Name Type Description
notes array List of certificate notes.
.. date_created string Timestamp of when the note was created.
Format: UTC timezone and ISO 8601 date
.. text string Note message text.
.. user object Details about the user that added the note.
.. .. id int User ID.
.. .. first_name string First name of user.
.. .. last_name string Last name of user.
.. .. email string Email address of user.