Get aggregate statistics about the findings identified on a site
get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequiredPattern:
A unique entity identifier
^[a-zA-Z0-9_-]+$siteIdstringRequired
The unique id of the site
Query parameters
topicstringOptional
Filter findings by associated site topic ID.
statusstring · enumOptionalPossible values:
Status of a site finding.
candidateis a finding that has been raised but not yet confirmed. Typically these are not shown to users.openis a finding that has been surfaced to users and is still under investigation.doneis a finding that has been resolved and is no longer under investigation.canceledis a finding that has been canceled and is no longer under investigation.
severitystring · enumOptionalPossible values:
Estimated end-user severity of a site finding.
hasChangeRequestsbooleanOptional
Filter findings that have at least one associated change request.
Responses
200
OK
application/json
Aggregated stats for the findings identified on a site.
totalnumberRequired
Total count of findings included in the aggregation.
questionsnumberRequired
Count of findings with at least one piece of evidence coming from a site question.
mergedChangeRequestsnumberRequired
Count of change requests created to fix a finding that have been merged.
get/orgs/{organizationId}/sites/{siteId}/stats/findings
GET /v1/orgs/{organizationId}/sites/{siteId}/stats/findings HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200
OK
{
"total": 1,
"statuses": {
"open": 1,
"done": 1,
"canceled": 1
},
"severities": {
"low": 1,
"medium": 1,
"high": 1
},
"connectors": {
"ANY_ADDITIONAL_PROPERTY": 1
},
"questions": 1,
"mergedChangeRequests": 1
}Last updated
Was this helpful?