Guest access URL

GET
https://www.digicert.com/services/v2/account/guest-access

Use this endpoint to get the guest access URL for your account.

Example requests and responses

cURL
curl --request GET 'https://www.digicert.com/services/v2/account/guest-access' \
--header 'X-DC-DEVKEY: {{api_key}}' \
Python
import requests

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

payload={}
headers = {
  'X-DC-DEVKEY': '{{api_key}}'
}

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/account/guest-access"
		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}}")

		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/account/guest-access',
  'headers': {
    'X-DC-DEVKEY': '{{api_key}}',
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});
200 Guest access enabled
{
  "enabled": true,
  "guest_access_url": {{guest_access_url}}
}
200 Guest access disabled
{
  "enabled": false
}

Response parameters

Name Type Description
enabled boolean If true, guest access is enabled for the account. Otherwise, false.
guest_access_url string Guest access URL. Only returned if enabled is true.