Skip to main content

Get the company's document statistics (the admin console home).

GET/api/v1/company/statisticssettings:read

Files and archived versions, bytes by file type, the bucket's size, documents loaded per week, documents by type and the totals of distributions, workflows and action requests, as the admin console's home shows them. They count the whole company, whatever the caller can read, so it needs View Tenant Usage Statistics. Counts are strings (bigint). The bucket size is the last measurement the Portal stored.

Scopesettings:read
AsynchronousNo
MCP toolget_company_statistics
Portal permissionsview_tenant_usage_statistics

Parameters​

NameInTypeRequiredDescription
Docwize-Versionheaderstring (date)Optional
If-None-MatchheaderstringOptionalAnswers 304 when the representation is unchanged (resources that publish an ETag).

Responses​

StatusDescriptionBody
200Success.application/json CompanyStatistics
304Not modified (If-None-Match matched the ETag).
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

CompanyStatistics​

FieldTypeRequiredDescription
action_request_countstringRequiredWhat the admin console calls total tasks.
archived_file_versionsstringRequiredEarlier versions of files, one row each.
bucket_size_bytesstringRequiredThe larger of the primary and archive buckets' sizes, as last measured; 0 before the first measurement.
distribution_countstringRequiredDistributions sent: what the admin console calls total emails.
documents_by_typearray of DocumentTypeCountRequired
files_storedstringRequiredCurrent files: one per document that has one.
size_by_file_typearray of FileTypeSizeRequiredBytes of current files by file type.
uploads_per_weekarray of UploadWeekRequiredDocuments entered per calendar week, oldest first.
workflow_countstringRequired

DocumentTypeCount​

FieldTypeRequiredDescription
countstringRequired
document_typestring or nullRequiredThe document type as stored on the documents; null for documents with none.

FileTypeSize​

FieldTypeRequiredDescription
file_typestring or nullRequiredThe stored file type (extension or MIME text); null for files that record none.
size_bytesstringRequired

UploadWeek​

FieldTypeRequiredDescription
countstringRequired
weekintegerRequiredThe database's week of the year, as the admin console charts it. ≥ -2147483648; ≤ 2147483647
yearintegerRequired≥ -2147483648; ≤ 2147483647