Skip to main content
GET
/
v2
/
task
API_KEY='live_...'
TASK_ID='abc123'
curl --request GET \
--url "https://api.scale.com/v2/task?task_id=$TASK_ID" \
--header "Authorization: Bearer $API_KEY"
{
  "task_id": "task_abc123",
  "project": "project_abc123",
  "status": "pending",
  "created_at": "2023-11-07T05:31:56Z",
  "batch": "batch_abc123",
  "completed_at": "2023-11-07T05:31:56Z",
  "metadata": {},
  "threads": [
    {
      "id": "thread_abc123",
      "turns": [
        {
          "id": "turn_abc123",
          "messages": [
            {
              "role": "system",
              "content": {
                "text": "<string>",
                "reference_texts": [
                  {
                    "content": "<string>",
                    "category": "<string>",
                    "url": "<string>"
                  }
                ],
                "attachments": [
                  {
                    "content": "aSDinaTvuI8gbWludGxpZnk=",
                    "mime_type": "text/plain",
                    "scale_url": "<string>",
                    "url": "<string>",
                    "name": "<string>"
                  }
                ],
                "chunks": [
                  {
                    "type": "<string>",
                    "annotations": [
                      {
                        "id": "an_abc123efg456",
                        "key": "formatting",
                        "type": "<string>",
                        "title": "Response Formatting",
                        "description": "Does the response contain issues with formatting?",
                        "labels": [
                          "Major Issues",
                          "Minor Issues",
                          "No Issues"
                        ],
                        "metadata": {
                          "criteria": "overall_quality"
                        },
                        "value": 3,
                        "possible_values": [
                          [
                            1,
                            2,
                            3
                          ]
                        ]
                      }
                    ],
                    "text": "<string>"
                  }
                ],
                "reasoning": [
                  {
                    "content": "<string>"
                  }
                ]
              },
              "source_id": "source_abc123",
              "annotations": [
                {
                  "id": "an_abc123efg456",
                  "key": "formatting",
                  "type": "<string>",
                  "title": "Response Formatting",
                  "description": "Does the response contain issues with formatting?",
                  "labels": [
                    "Major Issues",
                    "Minor Issues",
                    "No Issues"
                  ],
                  "metadata": {
                    "criteria": "overall_quality"
                  },
                  "value": 3,
                  "possible_values": [
                    [
                      1,
                      2,
                      3
                    ]
                  ]
                }
              ],
              "model_parameters": {
                "model": "my-model-123",
                "temperature": 0.9,
                "max_completion_tokens": 1000,
                "top_p": 0.9,
                "top_k": 4
              }
            }
          ],
          "annotations": [
            {
              "id": "an_abc123efg456",
              "key": "formatting",
              "type": "<string>",
              "title": "Response Formatting",
              "description": "Does the response contain issues with formatting?",
              "labels": [
                "Major Issues",
                "Minor Issues",
                "No Issues"
              ],
              "metadata": {
                "criteria": "overall_quality"
              },
              "value": 3,
              "possible_values": [
                [
                  1,
                  2,
                  3
                ]
              ]
            }
          ]
        }
      ],
      "annotations": [
        {
          "id": "an_abc123efg456",
          "key": "formatting",
          "type": "<string>",
          "title": "Response Formatting",
          "description": "Does the response contain issues with formatting?",
          "labels": [
            "Major Issues",
            "Minor Issues",
            "No Issues"
          ],
          "metadata": {
            "criteria": "overall_quality"
          },
          "value": 3,
          "possible_values": [
            [
              1,
              2,
              3
            ]
          ]
        }
      ]
    }
  ],
  "errors": [
    {
      "type": "UNSUPPORTED_LANGUAGE",
      "message": "The specified language or locale is not supported"
    }
  ],
  "sensitive_content_reports": [
    {
      "type": "violence",
      "message": "The prompt in the task promotes violence."
    }
  ]
}
Every request sent to Scale’s API requires authentication. In short, your API Key is the Bearer token. See the Authentication section for more details.

Authorizations

Authorization
string
header
required

Your API Key is the Bearer token. See the Authentication section to learn how to access your key.

Query Parameters

task_id
string
required

Scale's unique identifier for the task. Unique identifier for a task

Example:

"task_abc123"

expand
enum<string>[]

List of fields to expand in the response. Entities that can be expanded from an ID to an object.

Entities that can be expanded from an ID to an object.

Available options:
project,
batch
opts
enum<string>[]

List of properties to include in the task response. Additional properties that can be included in the annotations

Property that can be included in the annotations

Available options:
annotation_details,
attachment_details,
model_parameters

Response

Completed task.

task_id
string
required

Unique identifier for the task.

Example:

"task_abc123"

project
required

Project ID or Project associated with the task.

Example:

"project_abc123"

status
enum<string>
required

Current status of the task.

Available options:
pending,
completed,
canceled,
error
created_at
string<date-time>
required

UTC timestamp when the task was created.

batch

Batch ID or Batch associated with the task.

Example:

"batch_abc123"

completed_at
string<date-time>

UTC timestamp when the task was completed.

metadata
object

Custom metadata for the entity.

threads
object[]

Threads associated with the task. Tasks that do not have a status of completed will have an empty threads array.

errors
object[]

Errors associated with the task. Available when the task status is error

sensitive_content_reports
object[]

Reports of sensitive content within the task. Available when the task status is completed. threads will not exist when the task is reported.