---
title: "Get job log"
method: GET
path: "/api/v1alpha/batches/{batch_id}/jobs/{job_id}/log"
tags: ["Batches API v1Alpha"]
deprecated: true
---

# Get job log

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

## Request

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

> **Deprecated.**

Get the log of a job by ID.

## Path parameters

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

## Response `200`

Successfully retrieved the log of the job.

- JobLogResponse
  - `main` string, nullable: Log output from the main container
  - `input` string, nullable: Log output from the input container
  - `setup` string, nullable: Log output from the setup container
  - `output` string, nullable: Log output from the output container

## Changes

- **2025-04-16** `afa3b61d1d09`: 4 info
  - added the optional property `input` to the response with the `200` status
  - added the optional property `main` to the response with the `200` status
  - added the optional property `output` to the response with the `200` status
  - added the optional property `setup` to the response with the `200` status
- **2025-01-14** `559a91071cc1`: 4 warning
  - removed the optional property `input` from the response with the `200` status
  - removed the optional property `main` from the response with the `200` status
  - removed the optional property `output` from the response with the `200` status
  - removed the optional property `setup` 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/log/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)
