---
title: "List Site Tasks"
method: GET
path: "/v1/sites/{id}/tasks"
tags: ["Sites"]
---

# List Site Tasks

`GET /v1/sites/{id}/tasks`

Get a list of all the tasks for a site

## Path parameters

- `id` integer, required — ID of the Site you are interacting with

## Query parameters

- `task_id` string, uuid — ID of this task
- `task_type` 'automated_restore' | 'backup' | 'clone_site' | 'cloud_backup_create' | 'cloud_backup_restore' | 'publish' | 'restore' | 'staging' — Type of task
- `task_status` 'DONE' | 'ERROR' | 'NEW' | 'PROGRESS' — Current state/status of the task
- `page` integer — Page of results to include (default = 1)
- `per_page` integer — Results per page
- `sort` 'id' | 'perc' | 'task_status' | 'task_type' | 'updated'
- `direction` 'asc' | 'desc' | 'ASC' | 'DESC' — Direction to sort results in (asc = ascending, desc = descending)

## Response `200`

OK

- ListTasksResponse
  - `success` boolean — whether the request succeeded
  - `errors` string[]
  - `messages` string[], nullable
  - `metadata` object
    - `page` integer — Page number of the results
    - `page_size` integer — Number of results per page
    - `total` integer — Total number of results
    - `sort` string — Sorting criteria
    - `direction` 'asc' | 'desc' — Sorting direction
  - `result` object[]
    - `id` string, uuid — ID of this task
    - `task_status` 'DONE' | 'ERROR' | 'NEW' | 'PROGRESS' — Current state/status of the task
    - `site_id` integer — ID of the Site the task is acting on
    - `perc` integer — Percentage of completion
    - `updated` string — Time stamp of when the record was last updated
    - `created` string — Time stamp of when the record was created
    - `message` string — Information about the task. Errors if it failed
    - `task_type` 'automated_restore' | 'backup' | 'clone_site' | 'cloud_backup_create' | 'cloud_backup_restore' | 'publish' | 'restore' | 'staging' — Type of task
    - `task_level` 'account' | 'site' — Level at which the task exists
    - `meta_data` SiteMetadata

## Other responses

- `400` — Bad Request
- `401` — Authentication failed
- `403` — Not authorized to access endpoint
- `404` — Given site not found for user
- `405` — Invalid input
- `500` — Internal error

---

[API](https://skmtc.net/rocket/apis/rocket-net-api.md) · [All operations](https://skmtc.net/rocket/apis/rocket-net-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rocket/rocket-net-api/versions/db0dcbbc5764/schema)
