GET Analytics Certificates Revocation

The GET /Analytics/Certificates/Revocation method returns the number of certificates revoked in a given time period, from the current date, for each period requested. This method returns HTTP 200 OK on a success with the certificate count.

Tip:  The following permissions (see Security Roles and Claims) are required to use this feature:

/certificates/collections/read/
OR
/certificates/collections/read/#/ (where # is a reference to a specific certificate collection ID)

Permissions for certificates can be configured at multiple levels. You can apply them system-wide—for all certificates—or use fine-grained control by assigning permissions at the certificate collection level. The appropriate level depends on how the certificates are accessed. See Certificate Collection Permissions for more information about system-wide versus more targeted permission models.

Table 258: GET Analytics Certificates Revocation Input Parameters

Name In Description
collectionId Query

Required. An integer that represents the ID of the collection to query to generate the certificate count.

Use 0 for All Certificates (built-in collection).

Use the GET Certificate Collections method to retrieve a list of all the certificate collections to determine the collection ID.

TotalPeriods Query Required.  An integer that determines how many weeks of data to return. Must be greater than 0 and less than or equal to 52.

Table 259: GET Analytics Certificates Revocation Response Data

Name In Description
Period Body

An integer that represents the number of weeks ago from the current date that the count represents. Returns counts for each period requested, in the format:

{
	"Period": 1,
	"EvalDate": "2025-10-16T17:45:36Z",
	"Count": 407
},
{
	"Period": 2,
	"EvalDate": "2025-10-16T17:45:36Z",
	"Count": 59
},
EvalDate Body A date/time string that represents the current date used to run the query (from which the periods are calculated). The date and time will be given using the ISO 8601 UTC time format YYYY-MM-DDTHH:mm:ss.000Z (e.g., 2023-11-19T16:23:01Z).
Count Body

An integer that represents the count of certificates revoked in each period requested.

Tip:  See the Keyfactor API Reference and Utility which provides a utility through which the Keyfactor APIClosed An API is a set of functions to allow creation of applications. Keyfactor offers the Keyfactor API, which allows third-party software to integrate with the advanced certificate enrollment and management features of Keyfactor Command. endpoints can be called and results returned. It is intended to be used primarily for validation, testing and workflowClosed A workflow is a series of steps necessary to complete a process. In Keyfactor Command, it refers to the workflow builder, which allows you to automate event-driven tasks such as when a certificate is requested, revoked or found in a certificate store. development. It also serves secondarily as documentation for the API. The link to the Keyfactor API Reference and Utility is in the dropdown from the help icon () at the bottom of the Management Portal side menu.