Check permission

GET https://www.digicert.com/services/v2/authorization/view_orders
Use this endpoint to check if the authenticated user can perform the specified action. For possible {{permission}} values, see Glossary – Permissions.

Example requests and responses

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

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

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

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

print(response.text)
package main

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

func main() {

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

	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))

}
var request = require("request");

var options = { method: 'GET',
  url: 'https://www.digicert.com/services/v2/authorization/view_orders',
  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

{
  "authorized": true,
  "permission": "view_orders"
}

Response parameters

NameTypeDescription
authorizedboolSpecifies if the user is authorized to perform action.
Possible values: true, false
permissionstringPermission action. SeeGlossary – Permissions.