---
ai:
  exclude: true
search:
  tags:
    - Long Task
    - GET
seo:
  description: >-
    Returns information about all tracked long-running tasks. Reference for the
    GET /rest/api/longtask endpoint in the Confluence Data Center API.
sidebar:
  label: Get tasks
  badge: GET
title: Get tasks
type: openapi-operation
---
Returns information about all tracked long-running tasks.

`GET /rest/api/longtask`

**Responses**

- `200` — returns a full JSON representation of a list of long tasks.

Response example, 200:

```json
{
  "results": [
    {
      "id": "string",
      "name": {
        "key": "string",
        "args": [
          {}
        ],
        "translation": "string"
      },
      "elapsedTime": 123456,
      "percentageComplete": 50,
      "successful": true,
      "messages": [
        {
          "key": "string",
          "args": [
            {}
          ],
          "translation": "string"
        }
      ]
    }
  ],
  "start": 25,
  "limit": 25,
  "size": 25,
  "_links": {
    "base": "http://localhost:8085/rest/api",
    "self": "http://localhost:8085/rest/api",
    "context": "http://localhost:8085/rest/api",
    "next": "http://localhost:8085/rest/api/latest/../paginate?limit=25&start=50",
    "prev": "http://localhost:8085/rest/api/latest/../paginate?limit=25&start=0"
  }
}
```
