> **Reading as an AI agent?** This is the Markdown version of https://docs.meshy.ai/api/v2/tasks, part of the Meshy API v2 docs.
>
> - v2 docs index: https://docs.meshy.ai/api/v2/llms.txt
> - All v2 pages in one file: https://docs.meshy.ai/api/v2/llms-full.txt
> - OpenAPI spec for v2: https://docs.meshy.ai/api/v2/openapi.yaml

---

# Tasks

Get, list, stream, and delete every v2 task through four routes under `/openapi/v2/tasks`. Every v2 endpoint that creates a task returns the same task object.

> **Note:** Moving from v1? The main changes for reading tasks:
>   * The routes on this page replace the per-endpoint read routes, such as `GET /openapi/v1/image-to-3d/{id}`.
>   * Results are in `output`.
>
>   See [Task reads in the migration reference](/api/migrate-to-v2/reference#reading-tasks).

---

## How a task runs
A create request returns the [task object](#the-task-object) right away, without waiting for the result. The task then runs in the background and moves through these statuses:

`PENDING` -> `IN_PROGRESS` -> `SUCCEEDED` | `FAILED`

- `PENDING`: Waiting in the queue
- `IN_PROGRESS`: Generating the result
- `SUCCEEDED`: Download the files in `output`
- `FAILED`: Credits refunded

This table shows what your code should do in each status.

| Status | What your code should do |
| --- | --- |
| `PENDING` | Keep waiting. `preceding_tasks` is the task's position in the queue, and `1` means it starts next. |
| `IN_PROGRESS` | Keep waiting. `progress` says how much of the work is done. |
| `SUCCEEDED` | Download the files in `output` before `expires_at`. |
| `FAILED` | Read `task_error`, then fix the input or create another task. See [Errors](https://docs.meshy.ai/api/v2/errors.md#task-errors). |
| `CANCELED` | Stop waiting. The task doesn't produce a result. No v2 task type uses this status, but treat it as final. |

To follow a task, use one of these:

- [Get the task](#get-a-task) until it finishes.
- [Stream the task](#stream-a-task).
- Receive a [webhook](https://docs.meshy.ai/api/v2/webhooks.md).

From your code, getting the task until it finishes looks like this:

Create a task, then get it from the Tasks route until it finishes.

1. `POST /openapi/v2/image-to-3d` returns `202 {"id": "<task_id>", "status": "PENDING"}` with `Location: /openapi/v2/tasks/<task_id>` (task created).
2. Repeat after `Retry-After` seconds: `GET /openapi/v2/tasks/<task_id>` returns `200 {"status": "IN_PROGRESS", "progress": 45}` with `Retry-After: 5`.
3. A later `GET /openapi/v2/tasks/<task_id>` returns `200 {"status": "SUCCEEDED", "output": {"model_urls": {"glb": "..."}}}`.

Every endpoint works this way. If your app stops waiting, the task keeps running. Get it later with the same task ID.

Two response headers help you follow a task:

- `Location`: the path to read the task from, `/openapi/v2/tasks/{id}`. It's on the create response.
- `Retry-After`: how many seconds to wait before you poll again. It's on the create response, and on every read of a `PENDING` or `IN_PROGRESS` task. The value is a hint, and it's shorter when the task is about to start or finish. A task that's already finished gets no `Retry-After`, for example when Analyze Printability returns a cached result right away. If the header is missing, wait 5 seconds. Polls count toward your [rate limit](https://docs.meshy.ai/api/v2/rate-limits.md).

For typical processing times, and how long your code should wait before it gives up, see [Processing times](/api/task-lifecycle#processing-times). The task keeps running even if your code stops waiting.

To get notified instead of polling, use a webhook with Payload version set to v2 on the [Webhooks page](https://www.meshy.ai/developers/webhooks). Each delivery carries the [task object](#the-task-object), with the header `Meshy-Webhook-Version: v2`. See [Webhooks](https://docs.meshy.ai/api/v2/webhooks.md).

---

## The task object
The create response, every read route on this page, and each v2 [webhook](https://docs.meshy.ai/api/v2/webhooks.md) delivery return this object. Only `input` and `output` depend on the [task type](#task-types).

  - `id` · *string*

  The task ID. Use it with the routes on this page.

  - `type` · *string*

  The task type, set by the endpoint that created the task. See [Task types](#task-types). Meshy adds a type for each new endpoint, so skip or log types your code doesn't handle.

  - `status` · *string*

  The task's status. See [How a task runs](#how-a-task-runs).

  Available values:
  * `PENDING`: waiting in the queue
  * `IN_PROGRESS`: generating the result
  * `SUCCEEDED`: final, with the results in `output`
  * `FAILED`: final, with the reason in `task_error`
  * `CANCELED`: final, with no result

  - `progress` · *integer*

  Percentage of the work done, from `0` to `100`. It's `100` when the task succeeds.

  - `created_at` · *integer*

  Time the task was created, in Unix milliseconds.

  - `started_at` · *integer | null*

  Time a worker started the task, in Unix milliseconds. `null` until then.

  - `finished_at` · *integer | null*

  Time the task reached a final status, in Unix milliseconds. `null` until then.

  - `expires_at` · *integer | null*

  Time the signed URLs in `output` stop working, in Unix milliseconds. It's 3 days after `finished_at`.

  `null` until the task succeeds. Always `null` for Text to 3D tasks, and for Enterprise plans, which keep files indefinitely. See [Asset retention](https://docs.meshy.ai/api/v2/asset-retention.md).

  - `preceding_tasks` · *integer*

  The task's position in the queue while it's `PENDING`. `1` means it starts next. `0` after the task leaves the queue, and always `0` in [list](#list-tasks) results.

  - `consumed_credits` · *integer | null*

  Number of credits charged for the task, after any refund. `0` for a failed task. `null` if Meshy couldn't read the charge. In that case, get the task again.

  - `task_error` · *object | null*

  The reason the task failed, with these fields:
  * `type`
  * `code`
  * `message`
  * `doc_url`

  `null` unless `status` is `FAILED`. See [Errors](https://docs.meshy.ai/api/v2/errors.md#task-errors).

  - `input` · *object | null*

  The parameters you sent to create the task, as you sent them. Meshy doesn't fill in defaults you left out, and it leaves out keys the endpoint doesn't accept.

  An image you sent as a data URI comes back as a signed URL to Meshy's copy, or shortened if there's no copy. A task created on v1 keeps its v1 parameter names.

  `null` when Meshy has no saved copy of the request. This happens for a moment right after the task is created, and for some older tasks.

  - `output` · *object | null*

  The results, shaped by `type`. `null` until the task succeeds. Each endpoint page describes its output, and [Task types](#task-types) lists the fields.

Every field in the preceding list is always present:

* A value that doesn't exist yet is `null`, never `0` or `""`.
* Arrays are never `null`, except `dimensions_mm` in an `intended_print` object.

Two task types can add one more top-level field:

* [Auto Split](https://docs.meshy.ai/api/v2/auto-split.md#auto-split-output) can add `prompt_ignored`.
* [Repair Printability](https://docs.meshy.ai/api/v2/repair-printability.md#repair-printability-output) adds `intended_print` to every task created on v2.

Meshy can add fields at any time, so ignore fields you don't use.

**A task in progress**

```json
{
  "id": "018a210d-8ba4-705c-b111-1f1776f7f578",
  "type": "image-to-3d",
  "status": "IN_PROGRESS",
  "progress": 42,
  "created_at": 1791846275575,
  "started_at": 1791846275578,
  "finished_at": null,
  "expires_at": null,
  "preceding_tasks": 0,
  "consumed_credits": 30,
  "task_error": null,
  "input": {
    "image_url": "https://docs.meshy.ai/images/api/quick-start/source-photo.webp",
    "texture_model": "meshy-7"
  },
  "output": null
}
```

**A succeeded task**

```json
{
  "id": "018a210d-8ba4-705c-b111-1f1776f7f578",
  "type": "image-to-3d",
  "status": "SUCCEEDED",
  "progress": 100,
  "created_at": 1791846275575,
  "started_at": 1791846275578,
  "finished_at": 1791846334536,
  "expires_at": 1792105534536,
  "preceding_tasks": 0,
  "consumed_credits": 30,
  "task_error": null,
  "input": {
    "image_url": "https://docs.meshy.ai/images/api/quick-start/source-photo.webp",
    "texture_model": "meshy-7"
  },
  "output": {
    "model_urls": {
      "glb": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.glb?Expires=***"
    },
    "thumbnail_url": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview.png?Expires=***",
    "thumbnail_urls": null,
    "texture_urls": [
      {
        "base_color": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0.png?Expires=***",
        "metallic": null,
        "roughness": null,
        "normal": null,
        "metallic_roughness": null,
        "emission": null
      }
    ]
  }
}
```

**A failed task**

```json
{
  "id": "018a210d-8ba4-705c-b111-1f1776f7f578",
  "type": "convert",
  "status": "FAILED",
  "progress": 0,
  "created_at": 1790911760868,
  "started_at": 1790911760873,
  "finished_at": 1790911770684,
  "expires_at": null,
  "preceding_tasks": 0,
  "consumed_credits": 0,
  "task_error": {
    "type": "invalid_input",
    "code": "invalid_input",
    "message": "No valid objects found in uploaded model. The file may be empty or contain no importable geometry.",
    "doc_url": "https://docs.meshy.ai/en/api/v2/errors#invalid-input"
  },
  "input": {
    "model_url": "https://example.com/model.glb",
    "target_formats": ["fbx"]
  },
  "output": null
}
```

---

## Task types
The `type` field and the `type` filter on [List tasks](#list-tasks) use these values. Each endpoint page describes its `output` in full.

| `type` | Created by | `output` fields |
| --- | --- | --- |
| `text-to-3d-preview` | [Text to 3D](https://docs.meshy.ai/api/v2/text-to-3d.md#text-to-3d-output), preview | `model_urls`, `thumbnail_url`, `alpha_thumbnail_url`, `texture_urls` |
| `text-to-3d-refine` | [Text to 3D](https://docs.meshy.ai/api/v2/text-to-3d.md#text-to-3d-output), refine | `model_urls`, `thumbnail_url`, `alpha_thumbnail_url`, `texture_urls` |
| `text-to-3d` | [Text to 3D](https://docs.meshy.ai/api/v2/text-to-3d.md#text-to-3d-output), in one call | `model_urls`, `thumbnail_url`, `alpha_thumbnail_url`, `texture_urls` |
| `image-to-3d` | [Image to 3D](https://docs.meshy.ai/api/v2/image-to-3d.md#image-to-3d-output) | `model_urls`, `thumbnail_url`, `thumbnail_urls`, `texture_urls` |
| `multi-image-to-3d` | [Multi-Image to 3D](https://docs.meshy.ai/api/v2/multi-image-to-3d.md#multi-image-to-3d-output) | `model_urls`, `thumbnail_url`, `thumbnail_urls`, `texture_urls` |
| `remesh` | [Remesh](https://docs.meshy.ai/api/v2/remesh.md#remesh-output) | `model_urls`, `thumbnail_url`, `texture_urls` |
| `convert` | [Convert](https://docs.meshy.ai/api/v2/convert.md#convert-output) | `model_urls`, `texture_urls` |
| `resize` | [Resize](https://docs.meshy.ai/api/v2/resize.md#resize-output) | `model_urls`, `texture_urls` |
| `uv-unwrap` | [UV Unwrap](https://docs.meshy.ai/api/v2/uv-unwrap.md#uv-unwrap-output) | `model_urls`, `thumbnail_url` |
| `rig` | [Rigging](https://docs.meshy.ai/api/v2/rigging.md#rigging-output) | `rigged_character_glb_url`, `rigged_character_fbx_url`, `basic_animations` |
| `rig-check` | [Rigging Check](https://docs.meshy.ai/api/v2/rigging-check.md#rigging-check-output) | `riggable`, `animation_type`, `animatable`, `reasons` |
| `animate` | [Animation](https://docs.meshy.ai/api/v2/animation.md#animation-output) | `animation_glb_url`, `animation_fbx_url`, `processed_usdz_url`, `processed_armature_fbx_url`, `processed_animation_fps_fbx_url` |
| `text-to-motion` | [Text to Motion](https://docs.meshy.ai/api/v2/text-to-motion.md#text-to-motion-output) | `motion_url`, `motion_format`, `duration_ms`, `mode` |
| `retexture` | [Retexture](https://docs.meshy.ai/api/v2/retexture.md#retexture-output) | `model_urls`, `thumbnail_url`, `texture_urls` |
| `text-to-image` | [Text to Image](https://docs.meshy.ai/api/v2/text-to-image.md#text-to-image-output) | `image_urls` |
| `image-to-image` | [Image to Image](https://docs.meshy.ai/api/v2/image-to-image.md#image-to-image-output) | `image_urls` |
| `print-multi-color` | [Multi-Color Print](https://docs.meshy.ai/api/v2/multi-color-print.md#multi-color-print-output) | `model_urls` |
| `print-analyze` | [Analyze Printability](https://docs.meshy.ai/api/v2/analyze-printability.md#analyze-printability-output) | `printability` |
| `print-repair` | [Repair Printability](https://docs.meshy.ai/api/v2/repair-printability.md#repair-printability-output) | `model_urls`, `thumbnail_url`, `print_repair_report` |
| `print-split` | [Auto Split](https://docs.meshy.ai/api/v2/auto-split.md#auto-split-output) | `model_urls`, `thumbnail_url`, `part_count` |
| `relief` | [Relief](https://docs.meshy.ai/api/v2/relief.md#relief-output) | `model_urls`, `texture_urls`, `depth_map_url`, `thumbnail_url` |

A few rules hold for every type:

- `model_urls` has one key per file format the task produced, such as `glb` or `fbx`. Formats the task didn't produce have no key.
- Each item in `texture_urls` has all six of these maps, with `null` for a map the task didn't produce:
  - `base_color`
  - `metallic`
  - `roughness`
  - `normal`
  - `metallic_roughness`
  - `emission`
- Every URL is signed and stops working at `expires_at`. Download the files you need before then. See [Asset retention](https://docs.meshy.ai/api/v2/asset-retention.md).

Creative Lab tasks aren't part of API v2, so they don't appear on these routes. Read them with their own [Creative Lab](/api/creative-lab-figure) routes.

---

---

## GET /openapi/v2/tasks/:id -- Get a task

Returns one task of any type, including tasks you created on v1. Creative Lab tasks aren't available here.

While the task is `PENDING` or `IN_PROGRESS`, the `Retry-After` header says how many seconds to wait before you get the task again.

### Parameters

  - `id` · *path* · **required**

  The task ID from the create response.

### Returns

The [task object](#the-task-object).

### Errors

  - `400 - Bad Request`

  The ID isn't a valid task ID (`request_invalid`). Send the `id` from the create response.

  - `404 - Not Found`

  No task with this ID belongs to your account (`task_not_found`).

  Deleted tasks, tasks past their [retention period](https://docs.meshy.ai/api/v2/asset-retention.md), and Creative Lab tasks also return `404`. Check the ID, and use an API key from the account that created the task.

**cURL**

```bash
# Get one task by its ID
curl https://api.meshy.ai/openapi/v2/tasks/018a210d-8ba4-705c-b111-1f1776f7f578 \
  -H "Authorization: Bearer ${MESHY_API_KEY}"
```

```javascript
// Get one task by its ID
const res = await fetch(
  "https://api.meshy.ai/openapi/v2/tasks/018a210d-8ba4-705c-b111-1f1776f7f578",
  { headers: { Authorization: `Bearer ${process.env.MESHY_API_KEY}` } },
);
if (!res.ok) throw new Error(`${res.status}: ${(await res.json()).message}`);
const task = await res.json();
console.log(task.status, task.progress);
```

```python
# Get one task by its ID
import os
import requests

response = requests.get(
    "https://api.meshy.ai/openapi/v2/tasks/018a210d-8ba4-705c-b111-1f1776f7f578",
    headers={"Authorization": f"Bearer {os.environ['MESHY_API_KEY']}"},
)
response.raise_for_status()
task = response.json()
print(task["status"], task["progress"])
```

**Response headers**

```text
HTTP/2 200
Content-Type: application/json; charset=utf-8
Retry-After: 5
```

---

## GET /openapi/v2/tasks -- List tasks

Returns your tasks, newest first by default.

### Parameters

  - `type` · *string*

  The [task type](#task-types) to list. `text-to-3d` matches all three Text to 3D types. Leave it out to list tasks of every type.

  - `page_num` · *integer* · default: `1`

  The page to return, from `1` to `255`. `0` returns the first page. A value outside `0` to `255` returns `400`.

  - `page_size` · *integer* · default: `10`

  Number of tasks per page, up to `100`. A value from `101` to `255` returns 100 tasks, and `0` uses the default. A value outside `0` to `255` returns `400`.

  - `sort_by` · *string* · default: `-created_at`

  The sort order.

  Available values:
  * `-created_at`: newest first
  * `+created_at`: oldest first

### Returns

An object with two fields:

  - `data` · *array*

  The tasks on this page, each a full [task object](#the-task-object). An empty array, never `null`, when there are none.

  - `has_more` · *boolean*

  Whether there's another page. If `true`, request the next page with `page_num` plus one. `false` on the last page.

The response has no total count.

### Errors

  - `400 - Bad Request`

  One of these query parameters is invalid:
  * `type` isn't a known [task type](#task-types). The message lists the valid values.
  * `page_num` or `page_size` isn't a whole number from `0` to `255`.
  * `sort_by` isn't `-created_at` or `+created_at`.

  Fix the parameter, then send the request again.

**cURL**

```bash
# List your two newest Image to 3D tasks
curl "https://api.meshy.ai/openapi/v2/tasks?type=image-to-3d&page_size=2" \
  -H "Authorization: Bearer ${MESHY_API_KEY}"
```

```javascript
// List your two newest Image to 3D tasks
const params = new URLSearchParams({ type: "image-to-3d", page_size: "2" });
const res = await fetch(`https://api.meshy.ai/openapi/v2/tasks?${params}`, {
  headers: { Authorization: `Bearer ${process.env.MESHY_API_KEY}` },
});
if (!res.ok) throw new Error(`${res.status}: ${(await res.json()).message}`);
const { data, has_more } = await res.json();
for (const task of data) console.log(task.id, task.status);
```

```python
# List your two newest Image to 3D tasks
import os
import requests

response = requests.get(
    "https://api.meshy.ai/openapi/v2/tasks",
    headers={"Authorization": f"Bearer {os.environ['MESHY_API_KEY']}"},
    params={"type": "image-to-3d", "page_size": 2},
)
response.raise_for_status()
page = response.json()
for task in page["data"]:
    print(task["id"], task["status"])
```

**Response (task objects shortened)**

```json
{
  "data": [
    {
      "id": "018a210d-8ba4-705c-b111-1f1776f7f578",
      "type": "image-to-3d",
      "status": "SUCCEEDED",
      "progress": 100,
      "...": "..."
    },
    {
      "id": "018a2110-7a91-7c2e-9b10-5d6e7f8a9b0c",
      "type": "image-to-3d",
      "status": "IN_PROGRESS",
      "progress": 42,
      "...": "..."
    }
  ],
  "has_more": true
}
```

---

## GET /openapi/v2/tasks/:id/stream -- Stream a task

Streams a task's updates as [Server-Sent Events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events) until the task reaches a final status.

### Parameters

  - `id` · *path* · **required**

  The task ID from the create response.

### Returns

A `text/event-stream` with two kinds of events:

  - `message`

  The full [task object](#the-task-object). The first event arrives right away, and another each time the task changes. Meshy also repeats the latest state every 10 seconds, so a quiet connection still gets events. The stream closes after the event with a final status.

  - `error`

  The [error object](https://docs.meshy.ai/api/v2/errors.md#request-errors), plus `status_code`. For example, `{"type": "not_found", "code": "task_not_found", "message": "Task not found", "doc_url": "https://docs.meshy.ai/en/api/v2/asset-retention", "status_code": 404}`. The stream closes after this event.

  After the stream opens, the HTTP status stays `200`, so read errors from the events. An error before the stream opens, such as a missing API key, is an ordinary HTTP error.

A stream closes after about 21 minutes, even if the task hasn't finished. A network drop can close it sooner. If the stream closes without a final status, open it again or [get the task](#get-a-task).

**cURL**

```bash
# Stream a task's updates until it finishes
curl -N https://api.meshy.ai/openapi/v2/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/stream \
  -H "Authorization: Bearer ${MESHY_API_KEY}"
```

```javascript
// Stream a task's updates until it finishes
const res = await fetch(
  "https://api.meshy.ai/openapi/v2/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/stream",
  { headers: { Authorization: `Bearer ${process.env.MESHY_API_KEY}` } },
);
if (!res.ok) throw new Error(`${res.status}: ${(await res.json()).message}`);
const reader = res.body.pipeThrough(new TextDecoderStream()).getReader();
let buffer = "";
while (true) {
  const { value, done } = await reader.read();
  if (done) break;
  buffer += value;
  const events = buffer.split("\n\n");
  buffer = events.pop();
  for (const event of events) {
    const type = event.match(/^event:(.*)$/m)?.[1].trim();
    const data = JSON.parse(event.match(/^data:(.*)$/m)[1]);
    if (type === "error") throw new Error(`${data.status_code}: ${data.message}`);
    console.log(data.status, data.progress);
  }
}
```

```python
# Stream a task's updates until it finishes
import json
import os
import requests

response = requests.get(
    "https://api.meshy.ai/openapi/v2/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/stream",
    headers={"Authorization": f"Bearer {os.environ['MESHY_API_KEY']}"},
    stream=True,
)
response.raise_for_status()
response.encoding = "utf-8"
event = None
for line in response.iter_lines(decode_unicode=True):
    if line.startswith("event:"):
        event = line[len("event:"):].strip()
    elif line.startswith("data:"):
        data = json.loads(line[len("data:"):])
        if event == "error":
            raise SystemExit(f"{data['status_code']}: {data['message']}")
        print(data["status"], data["progress"])
```

**Events (task objects shortened)**

```text
event:message
data:{"id":"018a210d-8ba4-705c-b111-1f1776f7f578","type":"image-to-3d","status":"IN_PROGRESS","progress":42,...}

event:message
data:{"id":"018a210d-8ba4-705c-b111-1f1776f7f578","type":"image-to-3d","status":"SUCCEEDED","progress":100,...,"output":{"model_urls":{"glb":"..."},...}}
```

---

## DELETE /openapi/v2/tasks/:id -- Delete a task

Deletes a task of any type. You can't undo a delete, and the deleted task returns `404` on every route. Creative Lab tasks can't be deleted here, and return `404` as on [Get a task](#get-a-task).

Deleting a `PENDING` task refunds its credits. An `IN_PROGRESS` task can't be deleted. Wait for a final status, then delete it.

### Parameters

  - `id` · *path* · **required**

  The ID of the task to delete.

### Returns

`200` with an empty body.

### Errors

  - `400 - Bad Request`

  The ID isn't a valid task ID (`request_invalid`). Send the `id` from the create response.

  - `404 - Not Found`

  No task with this ID belongs to your account, or the task is already deleted (`task_not_found`).

  Creative Lab tasks also return `404`. Check the ID, and use an API key from the account that created the task.

  - `409 - Conflict`

  The task is `IN_PROGRESS`. Its credits aren't refundable after a worker starts it. Wait for `SUCCEEDED` or `FAILED`, then delete it.

**cURL**

```bash
# Delete a task
curl -X DELETE https://api.meshy.ai/openapi/v2/tasks/018a210d-8ba4-705c-b111-1f1776f7f578 \
  -H "Authorization: Bearer ${MESHY_API_KEY}"
```

```javascript
// Delete a task
const res = await fetch(
  "https://api.meshy.ai/openapi/v2/tasks/018a210d-8ba4-705c-b111-1f1776f7f578",
  {
    method: "DELETE",
    headers: { Authorization: `Bearer ${process.env.MESHY_API_KEY}` },
  },
);
if (!res.ok) throw new Error(`${res.status}: ${(await res.json()).message}`);
```

```python
# Delete a task
import os
import requests

response = requests.delete(
    "https://api.meshy.ai/openapi/v2/tasks/018a210d-8ba4-705c-b111-1f1776f7f578",
    headers={"Authorization": f"Bearer {os.environ['MESHY_API_KEY']}"},
)
response.raise_for_status()
```

**409 Conflict**

```json
{
  "type": "conflict",
  "code": "task_in_progress",
  "message": "Task is IN_PROGRESS and cannot be deleted. Credits for a task the worker has already started are not refundable; wait for it to reach SUCCEEDED, FAILED or CANCELED, then delete it.",
  "doc_url": null
}
```
