Skip to content

Current counters of the tenant and its usage against the plan's limits.

GET
/v1/admin/statistics
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.

OK

Media typeapplication/json

The tenant’s counters, its use of the plan, and the capacity thresholds reached.

object
counters
required

The tenant’s current counters.

object
liveNodes
required

Nodes now: what the plan’s node limit counts.

integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
liveFolderNodes
required

Of those, folders.

integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
liveContentNodes
required

Of those, documents and messages.

integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
liveRecordNodes
required

Of those, records.

integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
deletedNodes
required

Deleted nodes still kept for the retention period.

integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
contentSize
required

The size of the documents in the sources, in bytes; nothing of it is stored.

integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
extractedTextSize
required

The text read from documents for indexing, in bytes: what the plan’s extracted text volume counts.

integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
chunks
required

Indexed passages of text.

integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
vectors
required

Passages indexed for meaning-based search.

integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
partiallyIndexed
required

Nodes whose index is incomplete for any reason.

integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
plan
required

Its use of the plan’s limits.

object
planCode
required

The plan: basic, pro or scale.

string
maxNodes
required

The plan’s node limit, the trial’s while on trial.

integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
liveNodes
required

Nodes now.

integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
maxMountFolders
required

The plan’s mount folder limit; null for unlimited.

null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
mountFolders
required

Mount folders now, in every status.

integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
retrievalBytesPerMonth
required

The monthly retrieval allowance, in bytes.

integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
retrievedBytesThisMonth
required

Retrieved this UTC month.

integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
retrievalBytesPerDay
required

The daily retrieval allowance, in bytes.

integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
retrievedBytesToday
required

Retrieved this UTC day.

integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
maxOcrPagesPerDocument
required

How many pages of one document are read by OCR.

integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
maxExtractedTextBytes
required

The fair-use extracted text volume, against counters.extractedTextSize.

integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
throttledUntil
required

While downloads are slowed: the end of the UTC day (over the daily allowance) or month (over the monthly). Null otherwise.

null | string format: date-time
monthlyRetrieval
required

Where the month stands on the retrieval ladder.

object
state
required

normal, throttled (downloads slowed) or stopped (new downloads refused until the month ends).

string
step
required

The ladder’s step while throttled, from 1; null otherwise.

null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
percent
required

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.

integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
packBytes
required

Bandwidth packs bought for the month, on top of retrievalBytesPerMonth.

integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
stopsAtBytes
required

The month’s retrieved bytes at which content retrieval stops.

integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
resetsAt
required

The start of the next UTC month, when the ladder starts afresh.

string format: date-time
notices
required

The capacity thresholds in force: reached and not fallen back below, in the current month and day.

Array<object>

A capacity threshold reached: admins are emailed at 80, 95 and 100 % of a limit.

object
metric
required

nodes, extractedText, monthlyRetrieval or dailyRetrieval.

string
period
required

Empty for nodes and extracted text; the UTC month (YYYY-MM) or day (YYYY-MM-DD) otherwise.

string
threshold
required

Percent of the limit reached: 80, 95 or 100.

integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
usage
required

The use when it was reached.

integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
limit
required

The limit.

integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
reachedAt
required

When it was reached.

string format: date-time
notifiedAt
required

When the tenant admins were emailed; null while the email is pending.

null | string format: date-time

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).

Media typeapplication/problem+json

RFC 9457 problem details. code is the stable reason; confirmation problems add impact and impactToken.

object
type

urn:contentsurface:problem:{code}.

string
title

A short summary for people; may change.

string
status

The HTTP status code.

integer
detail

What happened in this case, for people; may change.

string
code

The stable, machine-readable reason, such as version-mismatch; branch on this.

string
field

For validation-failed: the request field that is not valid.

string
impactToken

For confirmation-required: repeat the call with ?confirm={impactToken} to go ahead.

string
impact

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.

Media typeapplication/problem+json

RFC 9457 problem details. code is the stable reason; confirmation problems add impact and impactToken.

object
type

urn:contentsurface:problem:{code}.

string
title

A short summary for people; may change.

string
status

The HTTP status code.

integer
detail

What happened in this case, for people; may change.

string
code

The stable, machine-readable reason, such as version-mismatch; branch on this.

string
field

For validation-failed: the request field that is not valid.

string
impactToken

For confirmation-required: repeat the call with ?confirm={impactToken} to go ahead.

string
impact

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.

Media typeapplication/problem+json

RFC 9457 problem details. code is the stable reason; confirmation problems add impact and impactToken.

object
type

urn:contentsurface:problem:{code}.

string
title

A short summary for people; may change.

string
status

The HTTP status code.

integer
detail

What happened in this case, for people; may change.

string
code

The stable, machine-readable reason, such as version-mismatch; branch on this.

string
field

For validation-failed: the request field that is not valid.

string
impactToken

For confirmation-required: repeat the call with ?confirm={impactToken} to go ahead.

string
impact

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.

Media typeapplication/problem+json

RFC 9457 problem details. code is the stable reason; confirmation problems add impact and impactToken.

object
type

urn:contentsurface:problem:{code}.

string
title

A short summary for people; may change.

string
status

The HTTP status code.

integer
detail

What happened in this case, for people; may change.

string
code

The stable, machine-readable reason, such as version-mismatch; branch on this.

string
field

For validation-failed: the request field that is not valid.

string
impactToken

For confirmation-required: repeat the call with ?confirm={impactToken} to go ahead.

string
impact

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
}