---
title: "Get all attempts in a job"
method: GET
path: "/api/v1alpha/batches/{batch_id}/jobs/{job_id}/attempts"
tags: ["Batches API v1Alpha"]
---

# Get all attempts in a job

`GET /api/v1alpha/batches/{batch_id}/jobs/{job_id}/attempts`

## Request

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

Get all attempts in a job by ID.

## Path parameters

- `batch_id` number, required
- `job_id` number, required

## Response `200`

Successfully retrieved the attempts in the job.

- JobAttemptsResponse
  - `attempts` JobAttemptResponse[]
    - `attempt_id` string: ID of the attempt
    - `instance_name` string: Name of the instance that ran the attempt
    - `location` string, nullable: Zone or region where the attempt ran (e.g. 'us-central1-a')
    - `start_time` string, date-time: When the attempt started
    - `end_time` string, date-time, nullable: When the attempt ended
    - `reason` string, nullable: Reason for the attempt status
    - `status` 'pending' | 'running' | 'succeeded' | 'failed' | 'error': Status of the attempt

## Changes

- **2026-09-03** `a74e84459276`: 1 info
  - added the optional property `attempts/items/location` to the response with the `200` status
- **2025-04-16** `afa3b61d1d09`: 1 info
  - added the optional property `attempts` to the response with the `200` status
- **2025-01-14** `559a91071cc1`: 1 warning
  - removed the optional property `attempts` from the response with the `200` status

[Operation history](https://skmtc.dev/hail-is/apis/hail-services/changes/api/v1alpha/batches/:batch_id/jobs/:job_id/attempts/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)
