Get a summary of documentation issues found on a site
Returns aggregate statistics about the documentation issues GitBook identified on a site. Accepts the same filters as listSiteFindings. Use this to answer "how healthy are my docs" before drilling into individual findings.
A unique entity identifier
^[a-zA-Z0-9_-]+$The unique id of the site
Filter findings by associated site topic ID.
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.
Estimated end-user severity of a site finding.
What GitBook did on its own to resolve a finding.
drafteddrafted a fix that waits for approval.appliedhas its fix live, applied on its own or approved from a draft, resolving the finding.undonehad its fix undone or rejected, so GitBook won't try again.
Only return findings GitBook drafted or applied a fix for at or after this date. Combine with autoResolution and status to count recent automatic fixes.
Filter findings that have at least one associated change request.
OK
Aggregated stats for the findings identified on a site.
Total count of findings included in the aggregation.
Count of findings with at least one piece of evidence coming from a site question.
Count of change requests created to fix a finding that have been merged.
GET /v1/orgs/{organizationId}/sites/{siteId}/stats/findings HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
OK
{
"total": 1,
"statuses": {
"open": 1,
"done": 1,
"canceled": 1
},
"severities": {
"low": 1,
"medium": 1,
"high": 1
},
"connectors": {
"ANY_ADDITIONAL_PROPERTY": 1
},
"brokenLinks": {
"redirectSuggested": 1,
"noMatchingPage": 1
},
"questions": 1,
"mergedChangeRequests": 1
}Last updated
Was this helpful?