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

# Get a job group in a batch

`GET /api/v1alpha/batches/{batch_id}/job-groups/{job_group_id}`

Get a job group in a batch by ID.

## Path parameters

- `batch_id` number, required
- `job_group_id` number, required

## Response `200`

Successfully retrieved the job group in the batch.

- JobGroupDetailResponse
  - `batch_id` integer — ID of the batch this job group belongs to
  - `job_group_id` integer — The job group ID
  - `parent_job_group_id` integer, nullable — ID of the parent job group
  - `state` 'running' | 'complete' | 'cancelled' — Current state of the job group
  - `complete` boolean — Whether the job group is complete
  - `n_jobs` integer — Total number of jobs in the group
  - `n_completed` integer — Number of completed jobs
  - `n_succeeded` integer — Number of succeeded jobs
  - `n_failed` integer — Number of failed jobs
  - `n_cancelled` integer — Number of cancelled jobs
  - `time_created` string, date-time — When the job group was created
  - `attributes` object — Key-value pairs of attributes for the job group
  - `children` JobGroupResponse[] — List of child job groups
    - `batch_id` integer — ID of the batch this job group belongs to
    - `job_group_id` integer — The job group ID
    - `state` 'running' | 'complete' | 'cancelled' — Current state of the job group
    - `complete` boolean — Whether the job group is complete
    - `n_jobs` integer — Total number of jobs in the group
    - `n_completed` integer — Number of completed jobs
    - `n_succeeded` integer — Number of succeeded jobs
    - `n_failed` integer — Number of failed jobs
    - `n_cancelled` integer — Number of cancelled jobs
    - `time_created` string, date-time — When the job group was created
    - `attributes` object — Key-value pairs of attributes for the job group

---

[API](https://skmtc.net/hail-is/apis/hail-services.md) · [All operations](https://skmtc.net/hail-is/apis/hail-services/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hail-is/hail-services/versions/3bd6e13adfa6/schema)
