---
title: "Get tasks"
method: GET
path: "/datainsights/v1.1/tasks"
tags: ["Task"]
---

# Get tasks

`GET /datainsights/v1.1/tasks`

Returns all the tasks for a single property.

## Query parameters

- `offset` integer, required
- `limit` integer, required

## Headers

- `X-PROPERTY-ID` integer, required

## Response `200`

OK

- Tasks
  - `offset` integer — The difference between start of the data and the start of the response data
  - `limit` integer — The maximum number of results in the response
  - `total` integer — The total number of records
  - `tasks` Task[]
    - `id` string — UUID of the task
    - `name` 'export_report_by_id' | 'export_report_by_query' | 'export_stock_report_by_id' | 'export_stock_report_by_query' | 'email_export_report_by_ids' | 'export_reports_by_ids' — Name of which task is applied
    - `property_id` integer — Property ID of the task
    - `property_ids` integer[]
    - `user_id` integer — User id that submitted the task
    - `created_at` string, date-time — Created at timestamp of the task
    - `updated_at` string, date-time — Updated at timestamp of the task

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `500` — Internal Server Error

---

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