Skip to main content
GET
/
batch
/
jobs
/
{id}
/
inputs
/
progress
/
counts
curl "https://api.u1.archetypeai.app/v0.5/batch/jobs/job_2abc3def4ghi5jkl6mno7pqr/inputs/progress/counts?port_name=worker.inference" \
  -H "Authorization: Bearer $ATAI_API_KEY"
{
  "job_id": "job_2abc3def4ghi5jkl6mno7pqr",
  "pending": 0,
  "processing": 1,
  "completed": 8,
  "failed": 1
}

Documentation Index

Fetch the complete documentation index at: https://docs.archetypeai.app/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Returns per-status counts across the job’s tracked (non-reference) inputs. Mirrors the input_progress field embedded on GET /batch/jobs/{id} but lets you scope by port. Cheaper than walking the input list to compute badges.

Request

id
string
required
The unique job identifier
port_name
string
Scope the counts to a single input port (e.g. worker.inference)

Response

job_id
string
The job identifier
pending
integer
Inputs not yet picked up by a worker
processing
integer
Inputs currently being processed
completed
integer
Inputs that finished successfully
failed
integer
Inputs that finished with an error
curl "https://api.u1.archetypeai.app/v0.5/batch/jobs/job_2abc3def4ghi5jkl6mno7pqr/inputs/progress/counts?port_name=worker.inference" \
  -H "Authorization: Bearer $ATAI_API_KEY"
{
  "job_id": "job_2abc3def4ghi5jkl6mno7pqr",
  "pending": 0,
  "processing": 1,
  "completed": 8,
  "failed": 1
}