# “Tasks” Endpoints - GET Tasks

**URL:** <https://community.toggl.com/t/tasks-endpoints-get-tasks/383>\
**Category:** API References\
**Tags:** api, endpoints, get, tasks\
**Created:** [December 2, 2024, 5:32pm UTC](https://community.toggl.com/t/tasks-endpoints-get-tasks/383 "2024-12-02T17:32:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Support](https://yyz2.discourse-cdn.com/flex012/user_avatar/community.toggl.com/support/32/1577_2.png) [@Support](https://community.toggl.com/u/Support)\
**Post date:** [December 2, 2024, 5:32pm UTC](https://community.toggl.com/t/tasks-endpoints-get-tasks/383/1 "2024-12-02T17:32:34Z")

</div>

```auto
https://api.track.toggl.com/api/v9/workspaces/{workspace_id}/tasks

```

List Workspace tasks.

- cURL
- Go
- Ruby
- JavaScript
- Python
- Rust

```auto
extern crate tokio;extern crate serde_json;use reqwest::{Client};use reqwest::header::{CONTENT_TYPE};#[tokio::main]async fn main() -> Result<(), reqwest::Error> { let client = Client::new().basic_auth("<email>", "<password>"); let json = client.request(Method::GET, "https://api.track.toggl.com/api/v9/workspaces/{workspace_id}/tasks".to_string()) .header(CONTENT_TYPE, "application/json") .send() .await? .json() .await?; println!("{:#?}", json); Ok(())}

```

### Parameters[​](https://engineering.toggl.com/docs/api/tasks/#parameters-6)

#### Path[​](https://engineering.toggl.com/docs/api/tasks/#path-6)

| name | type | required | description |
| --- | --- | --- | --- |
| workspace\_id | integer | true | Numeric ID of the workspace |

#### Query[​](https://engineering.toggl.com/docs/api/tasks/#query)

| name | type | required | description |
| --- | --- | --- | --- |
| since | integer | false | Retrieve tasks created/modified/deleted since this date using UNIX timestamp. |
| page | integer | false | Page number, default 1 |
| per\_page | integer | false | Number of items per page, default 50 |
| sort\_order | string | false | Sort order, default ASC |
| sort\_field | string | false | Field used for sorting. Default is name. Valid values are ‘name’ and ‘created\_at’ |
| active | boolean | false | Filter by active state. You can also pass ‘both’ to get both active and inactive tasks. |
| pid | integer | false | Filter by project id |
| start\_date | string | false | Smallest boundary date in the format YYYY-MM-DD |
| end\_date | string | false | Biggest boundary date in the format YYYY-MM-DD |

### Response[​](https://engineering.toggl.com/docs/api/tasks/#response-6)

#### 200[​](https://engineering.toggl.com/docs/api/tasks/#200-6)

| Name | Type | Description |
| --- | --- | --- |
| data | Array of object | - |
| page | integer | - |
| per\_page | integer | - |
| sort\_field | string | - |
| sort\_order | string | - |
| total\_count | integer | - |

##### data[​](https://engineering.toggl.com/docs/api/tasks/#data)

| Name | Type | Description |
| --- | --- | --- |
| active | boolean | False when the task has been done |
| at | string | When the task was created/last modified |
| client\_name | string | null |
| estimated\_seconds | integer | null |
| id | integer | Task ID |
| integration\_ext\_id | string | The external ID of the linked entity in the external system (e.g. JIRA/SalesForce) |
| integration\_ext\_type | string | The external type of the linked entity in the external system (e.g. JIRA/SalesForce) |
| integration\_provider | string | The provider (e.g. JIRA/SalesForce) that has an entity linked to this Toggl Track entity |
| name | string | Task Name |
| permissions | string | - |
| project\_billable | boolean | - |
| project\_color | string | Metadata |
| project\_id | integer | Project ID |
| project\_name | string | - |
| rate | number | Rate for this task |
| rate\_last\_updated | string | null |
| recurring | boolean | Whether this is a recurring task |
| toggl\_accounts\_id | string | null |
| tracked\_seconds | integer | The value tracked\_seconds is in milliseconds, not in seconds. |
| user\_id | integer | null |
| workspace\_id | integer | Workspace ID |

#### 403[​](https://engineering.toggl.com/docs/api/tasks/#403-6)

User does not have access to this resource.

#### 500[​](https://engineering.toggl.com/docs/api/tasks/#500-6)

Internal Server Error

---

<div class="post-metadata">

**Author:** ![Claire](https://yyz2.discourse-cdn.com/flex012/user_avatar/community.toggl.com/claire/32/2850_2.png) [@Claire](https://community.toggl.com/u/Claire)\
**Post date:** [January 23, 2026, 1:29pm UTC](https://community.toggl.com/t/tasks-endpoints-get-tasks/383/2 "2026-01-23T13:29:54Z")

</div>

I’ve got an issue with this endpoint: when my project is recurring tracked\_seconds is set to 0. If I switch my project to non-recurring, I get my tracked\_second correctly. If I switch back it disappears again. Any idea why ?
