---
title: "Get job timing for a batch"
method: GET
path: "/api/v1alpha/batches/{batch_id}/timing"
tags: ["Batches API v1Alpha"]
---

# Get job timing for a batch

`GET /api/v1alpha/batches/{batch_id}/timing`

## Request

- Base URL: `{{ base_url }}`
- URL: `{{ base_url }}/api/v1alpha/batches/{batch_id}/timing`
- Auth: none declared

Get the start/end time of every attempt of every job in the batch, for building a timing overview of the whole batch. Jobs that have not started yet have an empty attempts array. Paginated by job_offset — see JobOffsetPagination.

## Path parameters

- `batch_id` number, required

## Query parameters

- `job_offset` integer
- `page_size` integer

## Response `200`

Successfully retrieved the job timing for the batch.

- BatchTimingResponse
  - `data` JobTiming[]
    - `job_id` integer: ID of the job
    - `attempts` AttemptTiming[]
      - `attempt_id` string: ID of the attempt
      - `start_time` integer, nullable: When the attempt started, in epoch milliseconds
      - `end_time` integer, nullable: When the attempt ended, in epoch milliseconds
      - `reason` string, nullable: Reason for the attempt status
  - `pagination` JobOffsetPagination: Pagination info shared by endpoints that page over a batch's jobs by job_offset (see the job_offset/page_size query params on those endpoints).
    - `current_job_offset` integer: The job_offset that produced this page.
    - `next_page_job_offset` integer, nullable: The job_offset to request for the next page. Null if this is the last page.
    - `page_size` integer: The page_size that produced this page.
    - `total_jobs` integer: Total number of jobs in the batch.

## Changes

- **2026-09-16** `8faaa449f4de`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/hail-is/apis/hail-services/changes/api/v1alpha/batches/:batch_id/timing/get.md)

---

[API](https://skmtc.dev/hail-is/apis/hail-services.md) - [All operations](https://skmtc.dev/hail-is/apis/hail-services/llms.txt) - [OpenAPI document](https://skmtc.dev/hail-is/apis/hail-services/revisions/cc95ba1cb4af?raw)
