---
title: "Get last activity for every workspace user"
method: GET
path: "/workspaces/{workspace_id}/dashboard/all_activity"
tags: ["dashboard"]
---

# Get last activity for every workspace user

`GET /workspaces/{workspace_id}/dashboard/all_activity`

## Request

- Base URL: `https://localhost:8080/api/v9`
- URL: `https://localhost:8080/api/v9/workspaces/{workspace_id}/dashboard/all_activity`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/toggl/apis/toggl-api/docs/workspaces/:workspace_id/dashboard/all_activity/get.ts> (a function with typed inputs; its response is checked against the schema)

Dashboard's main purpose is to give an overview of what users in the workspace are doing and have been doing.
The activity object holds the data of 20 latest actions in the workspace or latest activity for every workspace user.
Activity object has the following properties
* user_id: user ID
* project_id: project ID (ID is 0 if time entry doesn't have project connected to it)
* duration: time entry duration in seconds. If the time entry is currently running, the duration attribute contains a negative value, denoting the start of the time entry in seconds since epoch (Jan 1 1970). The correct duration can be calculated as current_time + duration, where current_time is the current time in seconds since epoch.
* description: (Description property is not present if time entry description is empty)
* stop: time entry stop time (ISO 8601 date and time. Stop property is not present when time entry is still running)
* tid: task id, if applicable

## Path parameters

- `workspace_id` integer, required

## Request body `application/x-www-form-urlencoded`

- object
  - `since` integer: Filter activities since this date using UNIX timestamp.

## Response `200`

Successful operation

- DashboardAllActivities[]
  - `description` string
  - `duration` integer
  - `project_id` integer
  - `stop` string, date-time
  - `tid` integer
  - `user_id` integer

## Other responses

- `500`: Internal Server Error

---

[API](https://skmtc.dev/toggl/apis/toggl-api.md) - [All operations](https://skmtc.dev/toggl/apis/toggl-api/llms.txt) - [OpenAPI document](https://skmtc.dev/toggl/apis/toggl-api/revisions/3085aee16990?raw)
