/dashboard/stats
GET
/dashboard/stats
const url = 'https://pki.example.com/api/v1/dashboard/stats';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://pki.example.com/api/v1/dashboard/stats \ --header 'Authorization: Bearer <token>'Get dashboard statistics (CA and certificate counts)
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
totalCAs
integer
activeCAs
integer
totalCertificates
integer
activeCertificates
integer
Example generated
{ "totalCAs": 1, "activeCAs": 1, "totalCertificates": 1, "activeCertificates": 1}Default Response
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Array<object>
object
field
string
message
string
Example generated
{ "error": { "code": "example", "message": "example", "details": [ { "field": "example", "message": "example" } ] }}