Count directories
GET
/documents/directories/countThe number of folders the token can read, as data.total. Deleted folders are not counted. Deprecated: use GET /folders?totals=true and read meta.totals[0].count instead. Withdrawn on 2027-06-30. Responses carry Deprecation, Sunset and a successor Link.
Responses
200
OK
{
"data": {
"total": 482
}
}403Error
Authorization failed. error.code is one of org_disabled,
ip_blocked, missing_scope, scope_disabled, user_disabled.
Examples
curl https://your-org-domain/kong/core/api/v2/documents/directories/count\
-H "Authorization: Bearer $HELM_API_KEY"\
-H "Content-Type: application/json"