> ## Documentation Index
> Fetch the complete documentation index at: https://docs.genai.scale.com/llms.txt
> Use this file to discover all available pages before exploring further.

> A Task represents an individual unit of work done by a contributor.

# Task

The work to be done is defined in the Task parameters. For example, a single Task might ask a contributor to have a conversation with a chat model and label all of the responses from the model. These labels are called [Annotations](https://docs.genai.scale.com/core-resources/annotation.md).

Scale API offers following endpoints to download tasks:

> [accordion] Retrieve a single task by identifiers
>
> Check out the [Retrieve a Task](https://docs.genai.scale.com/v2/task.md) docs on how to get a single task by its identifiers.

> [accordion] List all tasks by search parameters
>
> Check out the [Get Multiple Tasks](https://docs.genai.scale.com/v2/tasks.md) docs to learn more about how to download multiple tasks by different parameters like project, batch, status, or completion date.

> [accordion] Download tasks in a delivery
>
> Check out the [Download tasks in a delivery](https://docs.genai.scale.com/v2/delivery.md) docs to download tasks in a specific delivery.

```json Completed Task theme={null}
{
  "task_id": "task_abc123",
  "project": "project_abc123",
  "batch": "batch_abc123",
  "status": "completed",
  "created_at": "2023-11-07T05:31:56Z",
  "completed_at": "2023-11-07T05:31:56Z",
  "metadata": {},
  "threads": [
    ...omitted...
  ]
}
```

```json Pending Task theme={null}
{
  "task_id": "task_abc123",
  "project": "project_abc123",
  "batch": "batch_abc123",
  "status": "pending",
  "created_at": "2023-11-07T05:31:56Z",
  "metadata": {}
}
```

```json Errored Task theme={null}
{
  "task_id": "task_abc123",
  "project": "project_abc123",
  "batch": "batch_abc123",
  "status": "error",
  "created_at": "2023-11-07T05:31:56Z",
  "metadata": {},
  "errors": [
    {
      "type": "UNSUPPORTED_LANGUAGE",
      "message": "The specified language or locale is not supported"
    }
  ]
}
```

```json Reported Task theme={null}
{
  "task_id": "task_abc123",
  "project": "project_abc123",
  "batch": "batch_abc123",
  "status": "error",
  "created_at": "2023-11-07T05:31:56Z",
  "metadata": {},
  "sensitive_content_reports": [
    {
      "type": "violence",
      "message": "The prompt in the task promotes violence."
    }
  ]
}
```
