Browse documentation
API referenceGET/v1/batch/jobs/{job_id}Free
Try it

Get batch job

GET /v1/batch/jobs/{job_id}

Returns status (pending, running, succeeded, partial, failed, or cancelled), timestamps, progress counts, and billing totals for one job owned by this API key.

When to use it

Use this endpoint for job polling and job detail pages.

Authentication and billing

  • Requires X-API-Key or api_key.
  • Credit cost: Free. Non-billable batch control route.
  • See pricing for plan allowances and full billing details.

Request

This endpoint does not require a request body.

FieldLocationRequiredNotes
job_idpathYesBatch job id returned by POST /v1/batch/jobs.
api_keyqueryNoOptional alternative to the X-API-Key header. Prefer the header for server-side applications.

Response

Returns one batch job record with id, status, created_at, in_progress_at, completed_at, failed_at, cancelled_at, request_counts, metadata, and optional billing.

Successful Responseapplication/json
{
  "created_at": 1709230500,
  "display_name": "portfolio_batch.jsonl",
  "id": "batch_a1b2c3d4e5f6g7h8",
  "in_progress_at": 1709230505,
  "metadata": {
    "user_id": "usr_123"
  },
  "object": "batch",
  "request_counts": {
    "completed": 2,
    "failed": 0,
    "total": 5
  },
  "status": "running"
}

Code examples

SDK examples use a client created as in the Python, JavaScript / TypeScript, Java, PHP, or C# SDK guide. Java examples import com.fasterxml.jackson.databind.JsonNode and in.manasija.drishti.params.*. C# examples use using Manasija.Drishti.Params;.

job = client.get_batch_jobs_job_id(job_id="batch_a1b2c3d4e5f67890")

Job statuses

statusMeaning
pendingFile accepted and queued. Not started yet.
runningLines are being processed. request_counts updates as lines finish.
succeededEvery line finished without a failure. Results are ready.
partialSome lines succeeded and some failed. Results are ready; check each line's status.
failedEvery line failed, or the job hit an unrecoverable error. Results hold the per-line errors.
cancelledCancelled with DELETE /v1/batch/jobs/{job_id} before it finished. Results hold the lines processed before the cancel.

request_counts reports total, completed, and failed lines. When present, billing summarises credits charged, billable lines, free lines (no-news / no-signal), and failed lines.

Polling

Poll every 10 to 30 seconds until status is succeeded, partial, failed, or cancelled, then download results from GET /v1/batch/jobs/{job_id}/results. Status checks are free.

Try it

Send this request from the Drishti API playground with your own API key. It shows the credit cost before you send and gives you the matching cURL command. For schemas and the full OpenAPI contract, use the Scalar API client.