List requests

GET
https://www.digicert.com/services/v2/request

Use this endpoint to list all request.

Change the ACCEPT header to text/csv to return a CSV output of the results.

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

url = "https://www.digicert.com/services/v2/request"

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

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

print(response.text)
Go
package main

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

func main() {

	url := "https://www.digicert.com/services/v2/request"

	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/request',
  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
{
  "requests": [
    {
      "id": 198,
      "date": "2018-10-16T20:05:28+00:00",
      "type": "new_request",
      "status": "pending",
      "requester": {
        "id": 14,
        "first_name": "John",
        "last_name": "Smith",
        "email": "john.smith@digicert.com"
      },
      "order": {
        "id": 12345678,
        "certificate": {
          "common_name": "example.com"
        },
        "organization": {
          "id": 112233,
          "name": "Epigyne Unwieldiness llc"
        },
        "container": {
          "id": 5,
          "name": "History Department"
        },
        "product": {
          "name_id": "ssl_plus",
          "name": "Standard SSL",
          "type": "ssl_certificate"
        }
      }
    },
    ...
  ],
  "page": {
    "total": 14,
    "limit": 0,
    "offset": 0
  }
}

URL query strings

Name Type Description
offset optional int
limit optional int

Response parameters

Name Type Description
requests array List of requests.
.. id int Request ID.
.. date string Timestamp of when the request was submitted.
Format: UTC timezone and ISO 8601 date
.. type string Request type.
Possible values: new_request, revoke, duplicate, reissue
.. status string Status of the request.
Possible values: submitted, pending, approved, rejected
.. requester object Details about the user that submitted the request.
.. order object Details about the order associated with the request.
.. .. id int Order ID.
.. .. certificate object Certificate details.
.. .. .. common_name string Name secured by the certificate.
.. .. organization object Details about the organization associated with the order.
.. .. .. id int Organization ID.
.. .. .. name string Legal name of the organization.
.. .. container object Details about the container associated with the order.
.. .. .. id int Container ID.
.. .. .. name string Name of the container.
.. .. product object Details about the ordered product.
.. .. .. name_id string Name ID of the product.
See Glossary – Product identifiers
.. .. .. name string Display name of the product.
See Glossary – Product identifiers
.. .. .. type string Product type.
See Glossary – Product types
page object Details about results.
Modified using URL query strings.