Current counters of the tenant and its usage against the plan's limits.
const url = 'https://api.contentsurface.io/v1/admin/statistics';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://api.contentsurface.io/v1/admin/statistics \ --header 'Authorization: Bearer <token>'The tenant’s current counters — nodes by kind, deleted nodes, content and extracted text size, indexed passages — its use of the plan’s limits, and the capacity thresholds reached this month and today. Tenant admins and repository admins.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
The tenant’s counters, its use of the plan, and the capacity thresholds reached.
object
The tenant’s current counters.
object
Nodes now: what the plan’s node limit counts.
Of those, folders.
Of those, documents and messages.
Of those, records.
Deleted nodes still kept for the retention period.
The size of the documents in the sources, in bytes; nothing of it is stored.
The text read from documents for indexing, in bytes: what the plan’s extracted text volume counts.
Indexed passages of text.
Passages indexed for meaning-based search.
Nodes whose index is incomplete for any reason.
Its use of the plan’s limits.
object
The plan: basic, pro or scale.
The plan’s node limit, the trial’s while on trial.
Nodes now.
The plan’s mount folder limit; null for unlimited.
Mount folders now, in every status.
The monthly retrieval allowance, in bytes.
Retrieved this UTC month.
The daily retrieval allowance, in bytes.
Retrieved this UTC day.
How many pages of one document are read by OCR.
The fair-use extracted text volume, against counters.extractedTextSize.
While downloads are slowed: the end of the UTC day (over the daily allowance) or month (over the monthly). Null otherwise.
Where the month stands on the retrieval ladder.
object
normal, throttled (downloads slowed) or stopped (new downloads refused until the month ends).
The ladder’s step while throttled, from 1; null otherwise.
Use in percent: of the allowance and packs up to 100, beyond it 100 plus the bytes over in percent of the allowance — the scale of the steps.
Bandwidth packs bought for the month, on top of retrievalBytesPerMonth.
The month’s retrieved bytes at which content retrieval stops.
The start of the next UTC month, when the ladder starts afresh.
The capacity thresholds in force: reached and not fallen back below, in the current month and day.
A capacity threshold reached: admins are emailed at 80, 95 and 100 % of a limit.
object
nodes, extractedText, monthlyRetrieval or dailyRetrieval.
Empty for nodes and extracted text; the UTC month (YYYY-MM) or day (YYYY-MM-DD) otherwise.
Percent of the limit reached: 80, 95 or 100.
The use when it was reached.
The limit.
When it was reached.
When the tenant admins were emailed; null while the email is pending.
Example
{ "counters": { "liveNodes": 46210, "liveFolderNodes": 3840, "liveContentNodes": 41120, "liveRecordNodes": 1250, "deletedNodes": 312, "contentSize": 182400000000, "extractedTextSize": 9850000000, "chunks": 1204000, "vectors": 1198400, "partiallyIndexed": 37 }, "plan": { "planCode": "pro", "maxNodes": 250000, "liveNodes": 46210, "maxMountFolders": 10, "mountFolders": 4, "retrievalBytesPerMonth": 500000000000, "retrievedBytesThisMonth": 212300000000, "retrievalBytesPerDay": 60000000000, "retrievedBytesToday": 4100000000, "maxOcrPagesPerDocument": 50, "maxExtractedTextBytes": 500000000000, "throttledUntil": null, "monthlyRetrieval": { "state": "normal", "step": null, "percent": 42, "packBytes": 0, "stopsAtBytes": 600000000000, "resetsAt": "2026-12-01T00:00:00+00:00" } }, "notices": []}No valid access token, or it no longer holds for the user (suspended, signed out, relation removed).
RFC 9457 problem details. code is the stable reason; confirmation problems add impact and impactToken.
object
urn:contentsurface:problem:{code}.
A short summary for people; may change.
The HTTP status code.
What happened in this case, for people; may change.
The stable, machine-readable reason, such as version-mismatch; branch on this.
For validation-failed: the request field that is not valid.
For confirmation-required: repeat the call with ?confirm={impactToken} to go ahead.
For confirmation-required: what the change would affect, such as the users or folders losing access.
Example
{ "type": "urn:contentsurface:problem:unauthorized", "title": "Not authenticated.", "status": 401, "detail": "A valid access token is required.", "code": "unauthorized"}Authenticated but not allowed: a missing scope or role, an impersonated token on an admin endpoint, or an inactive tenant.
RFC 9457 problem details. code is the stable reason; confirmation problems add impact and impactToken.
object
urn:contentsurface:problem:{code}.
A short summary for people; may change.
The HTTP status code.
What happened in this case, for people; may change.
The stable, machine-readable reason, such as version-mismatch; branch on this.
For validation-failed: the request field that is not valid.
For confirmation-required: repeat the call with ?confirm={impactToken} to go ahead.
For confirmation-required: what the change would affect, such as the users or folders losing access.
Example
{ "type": "urn:contentsurface:problem:role-required", "title": "Not allowed.", "status": 403, "detail": "This endpoint requires one of the roles: tenantAdmin, repositoryAdmin.", "code": "role-required"}Absent: not existing, in another tenant, or not readable by the caller — never distinguished.
RFC 9457 problem details. code is the stable reason; confirmation problems add impact and impactToken.
object
urn:contentsurface:problem:{code}.
A short summary for people; may change.
The HTTP status code.
What happened in this case, for people; may change.
The stable, machine-readable reason, such as version-mismatch; branch on this.
For validation-failed: the request field that is not valid.
For confirmation-required: repeat the call with ?confirm={impactToken} to go ahead.
For confirmation-required: what the change would affect, such as the users or folders losing access.
Example
{ "type": "urn:contentsurface:problem:not-found", "title": "Not found.", "status": 404, "detail": "The resource does not exist.", "code": "not-found"}Load protection: the tenant is making too many calls, or running too many searches or content streams, at once. Transient and never a quota; retry after Retry-After seconds.
RFC 9457 problem details. code is the stable reason; confirmation problems add impact and impactToken.
object
urn:contentsurface:problem:{code}.
A short summary for people; may change.
The HTTP status code.
What happened in this case, for people; may change.
The stable, machine-readable reason, such as version-mismatch; branch on this.
For validation-failed: the request field that is not valid.
For confirmation-required: repeat the call with ?confirm={impactToken} to go ahead.
For confirmation-required: what the change would affect, such as the users or folders losing access.
Example
{ "type": "urn:contentsurface:problem:too-many-requests", "title": "Too many requests.", "status": 429, "detail": "The tenant is making more API calls than one replica serves at once; retry shortly.", "code": "too-many-requests", "retryAfter": 1}