GET
/
v2
/
delivery
curl --request GET \
  --url https://api.scale.com/v2/delivery \
  --header 'Authorization: Bearer <token>'
{
  "delivery": {
    "id": "delivery_abc123",
    "name": "My Scale Delivery",
    "task_count": 1000,
    "delivered_at": "2023-11-07T05:31:56Z",
    "project": "project_abc123"
  },
  "tasks": [
    {
      "task_id": "task_abc123",
      "project": "project_abc123",
      "batch": "batch_abc123",
      "status": "pending",
      "created_at": "2023-11-07T05:31:56Z",
      "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>"
                      }
                    ]
                  },
                  "source_id": "source_abc123",
                  "model_parameters": {
                    "model": "my-model-123",
                    "temperature": 0.9,
                    "max_completion_tokens": 1000
                  },
                  "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
                    ]
                  ]
                }
              ]
            }
          ],
          "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"
        }
      ]
    }
  ],
  "next_token": "<string>"
}

Required query parameters

You are expected to provide one of the following to find a delivery:

  • delivery_id Delivery IDs are globally unique and can be used to retrieve a specific delivery.
  • delivery_name with a project identifier (project_id or project_name)

Example Code

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

delivery_id
string

Scale's unique identifier for the delivery.

delivery_name
string

The name of the delivery.

project_id
string

Scale's unique identifier for the project.

project_name
string

The name of the project.

limit
integer

Limit the number of entities returned.

Required range: 1 < x < 100
next_token
string

A token used to retrieve the next page of results if there are more. You can find the next_token in your last request.

expand
enum<string>[]

List of fields to expand in the response.

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

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

List of properties to include in the task response.

Property that can be included in the annotations

Available options:
attachment_details,
model_parameters

Response

200
application/json
List of delivered tasks.
tasks
object[]
required

Array of task objects

Represents a single task

delivery

Delivery ID or Delivery associated with the task.

next_token
string

A token used to retrieve the next page of results if there are more. You can find the next_token in your last request