---
title: "Get Batch Job Logs"
method: GET
path: "/v1/accounts/{account_id}/batchJobs/{batch_job_id}:getLogs"
tags: ["gateway.openapi_Gateway"]
---

# Get Batch Job Logs

`GET /v1/accounts/{account_id}/batchJobs/{batch_job_id}:getLogs`

## Path parameters

- `account_id` string, required
- `batch_job_id` string, required

## Query parameters

- `ranks` integer[]
- `pageSize` integer
- `pageToken` string
- `startTime` string, date-time
- `filter` string
- `startFromHead` boolean
- `readMask` string

## Response `200`

A successful response.

- GatewayGetBatchJobLogsResponse
  - `entries` GatewayLogEntry[]
    - `logTime` string, date-time — The timestamp of the log entry.
    - `rank` integer — The rank which produced the log entry.
    - `message` string — The log messsage.
  - `nextPageToken` string — A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.

---

[API](https://skmtc.net/fw-ai-external/apis/gateway-rest-api.md) · [All operations](https://skmtc.net/fw-ai-external/apis/gateway-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fw-ai-external/gateway-rest-api/revisions/29a1e4db152c/schema)
