帐户详情

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

Use this endpoint to get details about your CertCentral account.

Example requests and responses

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

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

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/account"

	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/account',
  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
{
  "id": 112234,
  "make_renewal_calls": true,
  "express_install_enabled": false,
  "admin_email": "notifications@digicert.com, will.smith@digicert.com",
  "display_rep": true,
  "rep_name": "Jane",
  "rep_phone": "Smith",
  "rep_email": "jane.smith@digicert.com",
  "balance_negative_limit": 0,
  "pricing_model": "flatfee",
  "cert_transparency": "embed",
  "cert_central_type": "retail"
}

Response parameters

Name Type Description
id int Account ID.
make_renewal_calls bool Specifies if renewal calls are enabled.
express_install_enabled bool Specifies if express install is enabled.
admin_email string Email address(es) copied on all emails sent out for the account.
display_rep bool Specifies if the account manager is displayed in the CertCentral UI.
rep_name string Name of your account manager.
rep_phone string Phone number of your account manager.
rep_email string Email address of your account manager.
balance_negative_limit int Dollar amount that the account balance can go into the negative.
pricing_model string Current pricing model for the account.
Possible values: flatfee, percert, combined, none
cert_transparency string Specifies if certificates are logged to public CT logs.
Possible values: embed (logged), off (not logged)
cert_central_type string CertCentral account type.
Possible values: retail, enterprise, reseller
is_reseller_customer bool Returns true if this subaccount or any of its parent accounts have an account type of reseller. Otherwise, false. Only returned if the API key in the request header belongs to a user in:
  • A subaccount of a parent account.
  • A subaccount of another subaccount.