---
title: "List project last activities"
method: GET
path: "/v2/projects/{project_id}/last_activities"
tags: ["activities"]
---

# List project last activities

`GET /v2/projects/{project_id}/last_activities`

## Request

- Base URL: `https://api.hubstaff.com`
- URL: `https://api.hubstaff.com/v2/projects/{project_id}/last_activities`
- Auth: OAuth 2
  - Authorization code: `https://account.hubstaff.com/authorizations/new`
  - Token URL: `https://account.hubstaff.com/access_tokens` scopes: `hubstaff:read`, `hubstaff:write`
- TypeScript: <https://skmtc.dev/hubstaff/apis/hubstaff-v2-api/docs/v2/projects/:project_id/last_activities/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the most recent activity for each member in the project.

## Path parameters

- `project_id` integer, required

## Query parameters

- `page_start_id` integer
- `page_limit` integer
- `include_removed` boolean
- `include` string[]

## Response `200`

Last activities for members

- object
  - `last_activities` LastActivity[]
    - `last_client_activity` string, date-time, required: Last client activity of user
    - `online` boolean, required: Whether we consider the user online or not
    - `last_project_id` integer: Last project ID the user worked on
    - `last_task_id` integer, required: Last task ID the user worked on
    - `user_id` integer, required: User ID

## Other responses

- `400`: Invalid parameters
- `401`: Unauthorized
- `403`: API access is only for organizations on an active plan
- `404`: Could not find record
- `429`: Rate limit exceeded

---

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