workspaces_stats_retrieve
const url = 'https://example.com/api/workspaces/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/stats';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://example.com/api/workspaces/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/stats \ --header 'Authorization: Bearer <token>'Return the statistics of the data of a workspace.
The owner of the workspace sees all its data; any other member sees the data linked to the nodes they belong to. A data object linked to several nodes is counted once in every total.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”A UUID string identifying this workspace.
Responses
Section titled “Responses”Statistics of the data of a workspace that the user may see.
object
Number of data whose size is known: the volume covers these only.
Volume in octets.
The data held by the connections of one plugin.
object
Number of data whose size is known: the volume covers these only.
Volume in octets.
The data held by one connection.
object
Number of data whose size is known: the volume covers these only.
Volume in octets.
The data of one file extension, or of one kind when they have none.
object
Number of data whose size is known: the volume covers these only.
Volume in octets.
The data linked to a node or to any of its descendants, each counted once.
object
Number of data whose size is known: the volume covers these only.
Volume in octets.
Null when the node is a root, or when its parent is not visible.
Some data are linked to several children of the node, or to the node and a child: the totals of the children add up to more than its own.
The data added to madbot on one day.
object
Example generated
{ "data_count": 1, "sized_data_count": 1, "total_size": 1, "node_count": 1, "source_count": 1, "sources": [ { "data_count": 1, "sized_data_count": 1, "total_size": 1, "plugin": "example", "name": "example", "logo": "https://example.com", "connections": [ { "data_count": 1, "sized_data_count": 1, "total_size": 1, "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example" } ] } ], "file_types": [ { "data_count": 1, "sized_data_count": 1, "total_size": 1, "extension": "example", "type": "example" } ], "nodes": [ { "data_count": 1, "sized_data_count": 1, "total_size": 1, "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "parent": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "title": "example", "icon": "example", "shared": true } ], "timeline": [ { "date": "2026-04-15", "data_count": 1, "cumulative_count": 1 } ]}object
object
Example
{ "code": "forbidden", "message": "You do not have permission to perform this operation. Check the `details` property for more details.", "details": [ { "parameter": "workspace", "code": "not_allowed", "message": "You are not a member of this workspace." } ]}object
object
Example
{ "code": "object_not_found", "message": "Object not found. Check the `details` property for more details.", "details": [ { "parameter": "<id>", "code": "does_not_exist", "message": "\"<id>\" does not exist." } ]}
