GET
/
apps
/
{appSlug}
/
human-review
/
jobs
/
{jobId}
/
items
/
{itemId}
from autoblocks.api.app_client import AutoblocksAppClient

client = AutoblocksAppClient(
  api_key="<YOUR_API_KEY>",
  app_slug="my-app",
)

job_item = client.human_review.get_job_item(job_id="123", item_id="456")
{
  "id": "cm83i1gtw00000cle3nf0gmtw",
  "grades": [
    {
      "scoreId": "cm83i1gtw00000cle3nf0gmtw",
      "grade": 0.5,
      "user": {
        "email": "john@example.com"
      }
    }
  ],
  "inputFields": [
    {
      "id": "cm83i1gtw00000cle3nf0gmtw",
      "name": "input",
      "value": "Hello, world!",
      "contentType": "TEXT"
    }
  ],
  "outputFields": [
    {
      "id": "cm83i1gtw00000cle3nf0gmtw",
      "name": "output",
      "value": "Hello, world!",
      "contentType": "TEXT"
    }
  ],
  "fieldComments": [
    {
      "fieldId": "cm83i1gtw00000cle3nf0gmtw",
      "value": "This is a comment",
      "startIdx": 1,
      "endIdx": 2,
      "inRelationToScoreName": "accuracy",
      "user": {
        "email": "john@example.com"
      }
    }
  ],
  "inputComments": [
    {
      "value": "This is a comment",
      "inRelationToScoreName": "accuracy",
      "user": {
        "email": "john@example.com"
      }
    }
  ],
  "outputComments": [
    {
      "value": "This is a comment",
      "inRelationToScoreName": "accuracy",
      "user": {
        "email": "john@example.com"
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

API Key created in the Autoblocks Webapp

Path Parameters

appSlug
string
required
jobId
string
required
itemId
string
required

Response

200 - application/json

The job item was returned successfully

A job item