# Read task figures

How the workspace's queue stands: how many tasks are open, late, due today, breaching SLA, and the open ones broken down by type and by priority. Counts the WHOLE queue, so reach for this instead of adding up a page of GET /v1/tasks.

Access class: `workspace`.

## Endpoint

`GET /v1/tasks/stats`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| body | query | null | No |
| params | query | object | No |
| query | query | object | No |

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "byPriority": [
      "string"
    ],
    "byType": [
      "string"
    ],
    "completed": 1.5,
    "dueToday": 1.5,
    "escalated": 1.5,
    "inProgress": 1.5,
    "overdue": 1.5,
    "pending": 1.5,
    "slaAtRisk": 1.5,
    "slaBreached": 1.5,
    "total": 1.5
  }
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
