Get the company's document statistics (the admin console home).
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.
| |
|---|
| Scope | settings:read |
| Asynchronous | No |
| MCP tool | get_company_statistics |
| Portal permissions | view_tenant_usage_statistics |
Parameters
| Name | In | Type | Required | Description |
|---|
Docwize-Version | header | string (date) | Optional | |
If-None-Match | header | string | Optional | Answers 304 when the representation is unchanged (resources that publish an ETag). |
Responses
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
CompanyStatistics
| Field | Type | Required | Description |
|---|
action_request_count | string | Required | What the admin console calls total tasks. |
archived_file_versions | string | Required | Earlier versions of files, one row each. |
bucket_size_bytes | string | Required | The larger of the primary and archive buckets' sizes, as last measured; 0 before the first measurement. |
distribution_count | string | Required | Distributions sent: what the admin console calls total emails. |
documents_by_type | array of DocumentTypeCount | Required | |
files_stored | string | Required | Current files: one per document that has one. |
size_by_file_type | array of FileTypeSize | Required | Bytes of current files by file type. |
uploads_per_week | array of UploadWeek | Required | Documents entered per calendar week, oldest first. |
workflow_count | string | Required | |
DocumentTypeCount
| Field | Type | Required | Description |
|---|
count | string | Required | |
document_type | string or null | Required | The document type as stored on the documents; null for documents with none. |
FileTypeSize
| Field | Type | Required | Description |
|---|
file_type | string or null | Required | The stored file type (extension or MIME text); null for files that record none. |
size_bytes | string | Required | |
UploadWeek
| Field | Type | Required | Description |
|---|
count | string | Required | |
week | integer | Required | The database's week of the year, as the admin console charts it. ≥ -2147483648; ≤ 2147483647 |
year | integer | Required | ≥ -2147483648; ≤ 2147483647 |