Skip to content

/dashboard/stats

GET
/dashboard/stats
curl --request GET \
--url https://pki.example.com/api/v1/dashboard/stats \
--header 'Authorization: Bearer <token>'

Get dashboard statistics (CA and certificate counts)

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"
}
]
}
}