Scale AI

App · 8 actions

Read and manage data labeling projects, batches and tasks in Scale AI.

Actions

ActionWhat it does
Cancel pending taskCancel a task that is still pending.
Get batchRead a labeling batch by name.
Get batch statusRead a labeling batch’s status and its task counts.
Get projectRead a Scale AI project and its annotation settings.
Get taskRead a task’s instructions, status and available results.
List batchesRead a page of labeling batches, with an optional project and date range.
List projectsList Scale AI projects and their annotation types.
List tasksRead a page of labeling tasks with optional status, project and batch filters.

Cancel pending task

Cancel a task that is still pending.

Inputs

Tasktask_idtextRequired
Task ID.
Clear unique IDclear_unique_idtrue/false
Clear unique ID.

Outputs

dataobject
The response from Scale AI.
Example output
{
  "data": {
    "created_at": "example",
    "instruction": "example",
    "metadata": {},
    "params": {},
    "response": {},
    "status": "example",
    "task_id": "example",
    "type": "example"
  }
}

Get batch

Read a labeling batch by name.

Inputs

Batch namebatch_nametextRequired
Batch name.

Outputs

dataobject
The response from Scale AI.
Example output
{
  "data": {
    "completed_at": "example",
    "created_at": "example",
    "metadata": {},
    "name": "example",
    "project": "example",
    "status": "example"
  }
}

Get batch status

Read a labeling batch’s status and its task counts.

Inputs

Batch namebatch_nametextRequired
Batch name.

Outputs

dataobject
The response from Scale AI.
Example output
{
  "data": {
    "status": "example",
    "tasks_completed": 1,
    "tasks_pending": 1
  }
}

Get project

Read a Scale AI project and its annotation settings.

Inputs

Project nameproject_nametextRequired
Project name.

Outputs

dataobject
The response from Scale AI.
Example output
{
  "data": {
    "created_at": "example",
    "name": "example",
    "param_history": [
      {}
    ],
    "type": "example"
  }
}

Get task

Read a task’s instructions, status and available results.

Inputs

Tasktask_idtextRequired
Task ID.

Outputs

dataobject
The response from Scale AI.
Example output
{
  "data": {
    "created_at": "example",
    "instruction": "example",
    "metadata": {},
    "params": {},
    "response": {},
    "status": "example",
    "task_id": "example",
    "type": "example"
  }
}

List batches

Read a page of labeling batches, with an optional project and date range.

Inputs

Projectprojecttext
Project.
Statusstatustext
Status.One of: staging, in_progress (In progress), completed.
Detaileddetailedtrue/false
Detailed.
Start timestart_timedate and time
Start time.
End timeend_timedate and time
End time.
Limitlimitnumber
Limit.From 1 to 100.
Offsetoffsetnumber
Offset.At least 0.

Outputs

dataobject
The response from Scale AI.
Example output
{
  "data": {
    "docs": [
      {
        "completed_at": "example",
        "created_at": "example",
        "metadata": {},
        "name": "example",
        "project": "example",
        "status": "example"
      }
    ],
    "has_more": true,
    "limit": 1,
    "offset": 1,
    "totalDocs": 1
  }
}

List projects

List Scale AI projects and their annotation types.

Inputs

Archivedarchivedtrue/false
Archived.

Outputs

datalist
The response from Scale AI.
Example output
{
  "data": [
    {
      "created_at": "example",
      "name": "example",
      "param_history": [
        {}
      ],
      "type": "example"
    }
  ]
}

List tasks

Read a page of labeling tasks with optional status, project and batch filters.

Inputs

Statusstatuslist
Status.One or more of: completed, pending, canceled.
Projectprojecttext
Project.
Batchbatchtext
Batch.
Tagstagslist
Tags.
Include attachment URLinclude_attachment_urltrue/false
Include attachment URL.
Limitlimitnumber
Limit.From 1 to 100.
Next tokennext_tokentext
Next token.

Outputs

dataobject
The response from Scale AI.
Example output
{
  "data": {
    "docs": [
      {
        "created_at": "example",
        "instruction": "example",
        "metadata": {},
        "params": {},
        "response": {},
        "status": "example",
        "task_id": "example",
        "type": "example"
      }
    ],
    "has_more": true,
    "limit": 1,
    "next_token": "example",
    "total": 1
  }
}

On this page