List API keys
2 minute read
GET
https://www.digicert.com/partner-subscription/api/v1/api-key
Use this endpoint to retrieve a list of API keys accessible to your authenticated partner subscriptions account.
Authorization behavior depends on account type. Parent accounts receive their own API keys and all subaccount API keys. Subaccounts receive only their own API keys. In the response, the
account_id field identifies which account owns each API key.Example requests and responses
curl -X GET \
https://www.digicert.com/partner-subscription/api/v1/api-key \
-H 'X-PARTNER-APIKEY: {{partner_api_key}}'import requests
url = "https://www.digicert.com/partner-subscription/api/v1/api-key"
headers = {
'X-PARTNER-APIKEY': "{{partner_api_key}}"
}
response = requests.request("GET", url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://www.digicert.com/partner-subscription/api/v1/api-key"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-PARTNER-APIKEY", "{{partner_api_key}}")
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/partner-subscription/api/v1/api-key',
headers: {
'X-PARTNER-APIKEY': '{{partner_api_key}}'
}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});200 OK
{
"api_keys": [
{
"id": 12345,
"name": "Production API Key",
"account_id": 67890,
"status": "active",
"created_at": "2025-01-15T10:30:00Z",
"last_used_date": "2025-01-28T14:22:00Z",
"api_key_last4": "xyz9"
},
{
"id": 12346,
"name": "Subaccount API Key",
"account_id": 67891,
"status": "active",
"created_at": "2025-01-20T09:15:00Z",
"last_used_date": "2025-01-29T08:10:00Z",
"api_key_last4": "abc5"
}
]
}
URL path and query parameters
This endpoint does not use URL query parameters.
Request parameters
This endpoint does not use request parameters.
Response parameters
| Name | Type | Description |
|---|---|---|
| api_keys | array[object] | Array of API key objects accessible to the authenticated account. |
| .. id | integer | Unique identifier of the API key. |
| .. name | string | Descriptive name of the API key. |
| .. account_id | integer | Identifier of the account that owns the API key. |
| .. status | string | Operational status of the API key. Allowed values: active, inactive |
| .. created_at | string | API key creation date in ISO 8601 format. |
| .. last_used_date | string | Date and time the API key was last used. |
| .. api_key_last4 | string | Last four characters of the API key. |
Was this page helpful?
Provide feedback