---
title: "Get long-running tasks"
method: GET
path: "/wiki/rest/api/longtask"
tags: ["Long-running task"]
---

# Get long-running tasks

`GET /wiki/rest/api/longtask`

Returns information about all active long-running tasks (e.g. space export),
such as how long each task has been running and the percentage of each task
that has completed.

**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
Permission to access the Confluence site ('Can use' global permission).

## Query parameters

- `key` string
- `start` integer
- `limit` integer

## Response `200`

Returned if the requested tasks are returned.

- LongTaskStatusArray
  - `results` LongTaskStatus[], required
    - `ari` string — the ARI for the long task, based on its ID
    - `id` string, required
    - `name` object, required
      - `key` string, required
      - `args` object[], required
    - `elapsedTime` integer, required
    - `percentageComplete` integer, required
    - `successful` boolean, required
    - `finished` boolean, required
    - `messages` Message[], required
      - `translation` string
      - `args` union[], required
        - union
          - string
          - object
    - `status` string
    - `errors` Message[]
      - `translation` string
      - `args` union[], required
        - union
          - string
          - object
    - `additionalDetails` object
      - `destinationId` string
      - `destinationUrl` string
      - `totalPageNeedToCopy` integer
      - `additionalProperties` string
  - `start` integer, required
  - `limit` integer, required
  - `size` integer, required
  - `_links` GenericLinks, required

## Other responses

- `401` — Returned if the calling user is not logged in to Confluence.

---

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