---
title: "Tasks"
method: GET
path: "/workspaces/{workspace_id}/tasks"
tags: ["tasks"]
---

# Tasks

`GET /workspaces/{workspace_id}/tasks`

## Request

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

List Workspace tasks.

## Path parameters

- `workspace_id` integer, required

## Query parameters

- `since` integer
- `page` integer
- `per_page` integer
- `sort_order` string
- `sort_field` string
- `active` boolean
- `pid` integer
- `start_date` string, date
- `end_date` string, date

## Response `200`

Successful operation.

- TaskResponse
  - `data` TaskWithTotal[]
    - `active` boolean: False when the task has been done
    - `at` string: When the task was created/last modified
    - `estimated_seconds` integer, nullable: Estimation time for this task in seconds
    - `id` integer: Task ID
    - `name` string: Task Name
    - `permissions` string
    - `project_id` integer: Project ID
    - `recurring` boolean: Whether this is a recurring task
    - `server_deleted_at` string, nullable: When the task was deleted
    - `toggl_accounts_id` string, nullable: Task assignee, if set above this will be the toggl_account_id for that user
    - `tracked_seconds` integer: The value tracked_seconds is in milliseconds, not in seconds.
    - `user_id` integer, nullable: Task assignee, if available
    - `workspace_id` integer: Workspace ID
  - `page` integer
  - `per_page` integer
  - `sort_field` string
  - `sort_order` string
  - `total_count` integer

## Other responses

- `403`: User does not have access to this resource.
- `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)
