---
title: "Get task status"
method: GET
path: "/api/async-tasks/{task_id}"
tags: ["Async API tasks"]
---

# Get task status

`GET /api/async-tasks/{task_id}`

## Request

- Base URL: `https://api.duda.co`
- URL: `https://api.duda.co/api/async-tasks/{task_id}`
- Auth: HTTP basic

Get the current status of an async task by task ID

## Path parameters

- `task_id` string, required

## Response `200`

OK

- AsyncAPIResponseRDT
  - `created_at` string, date-time
  - `error` TaskErrorRDT
    - `message` string
  - `finished_at` string, date-time
  - `id` string
  - `result` TaskResultRDT
    - `type` string, required
  - `status` 'CREATED' | 'IN_PROGRESS' | 'FAILED' | 'COMPLETED'
  - `type` 'GENERATE_SITE_WITH_AI' | 'GENERATE_SITE_FROM_URL' | 'IMPORT_CONTENT_FROM_URL' | 'CLASSIC_TO_FLEX_MIGRATION'

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `402`: Payment Required
- `405`: Method Not Allowed
- `429`: Too many requests. The rate limit was exceeded.
- `500`: Internal Server Error

---

[API](https://skmtc.dev/duda/apis/duda-partner-api.md) - [All operations](https://skmtc.dev/duda/apis/duda-partner-api/llms.txt) - [OpenAPI document](https://skmtc.dev/duda/apis/duda-partner-api/revisions/52be4d41cb12?raw)
