---
title: "Get tasks"
method: GET
path: "/tasks"
tags: ["Task"]
---

# Get tasks

`GET /tasks`

Returns all tasks. The number of results is limited by the `limit` parameter and additional results (if available)
will be available through the `next` URL present in the `Link` response header.

**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
Permission to access the Confluence site ('Can use' global permission).
Only tasks that the user has permission to view will be returned.

## Query parameters

- `body-format` 'storage' | 'atlas_doc_format' — The primary formats a body can be represented as. A subset of BodyRepresentation. These formats are the only allowed formats in certain use cases.
- `include-blank-tasks` boolean
- `status` 'complete' | 'incomplete'
- `task-id` integer[]
- `space-id` integer[]
- `page-id` integer[]
- `blogpost-id` integer[]
- `created-by` string[]
- `assigned-to` string[]
- `completed-by` string[]
- `created-at-from` integer
- `created-at-to` integer
- `due-at-from` integer
- `due-at-to` integer
- `completed-at-from` integer
- `completed-at-to` integer
- `cursor` string
- `limit` integer

## Response `200`

Returned if the requested tasks are returned.

- object
  - `results` Task[]
    - `id` string — ID of the task.
    - `localId` string — Local ID of the task. This ID is local to the corresponding page or blog post.
    - `spaceId` string — ID of the space the task is in.
    - `pageId` string — ID of the page the task is in.
    - `blogPostId` string — ID of the blog post the task is in.
    - `status` 'complete' | 'incomplete' — Status of the task.
    - `body` TaskBodySingle — Contains fields for each representation type requested.
      - `storage` BodyType
        - `representation` string — Type of content representation used for the value field.
        - `value` string — Body of the content, in the format found in the representation field.
      - `atlas_doc_format` BodyType
        - `representation` string — Type of content representation used for the value field.
        - `value` string — Body of the content, in the format found in the representation field.
    - `createdBy` string — Account ID of the user who created this task.
    - `assignedTo` string — Account ID of the user to whom this task is assigned.
    - `completedBy` string — Account ID of the user who completed this task.
    - `createdAt` string, date-time — Date and time when the task was created. In format "YYYY-MM-DDTHH:mm:ss.sssZ".
    - `updatedAt` string, date-time — Date and time when the task was updated. In format "YYYY-MM-DDTHH:mm:ss.sssZ".
    - `dueAt` string, date-time — Date and time when the task is due. In format "YYYY-MM-DDTHH:mm:ss.sssZ".
    - `completedAt` string, date-time — Date and time when the task was completed. In format "YYYY-MM-DDTHH:mm:ss.sssZ".
  - `_links` MultiEntityLinks
    - `next` string — Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This property will not be present if there is no additional data available.
    - `base` string — Base url of the Confluence site.

## Other responses

- `400` — Returned if an invalid request is provided.
- `401` — Returned if the authentication credentials are incorrect or missing from the request.

---

[API](https://skmtc.net/atlassian/apis/the-confluence-cloud-rest-api-v2.md) · [All operations](https://skmtc.net/atlassian/apis/the-confluence-cloud-rest-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/atlassian/the-confluence-cloud-rest-api-v2/versions/c4bd1ed570f2/schema)
