---
title: "Get Job Log By Exec Id And Line."
method: GET
path: "/di/v1/job/{training_id}/log"
tags: ["Models"]
---

# Get Job Log By Exec Id And Line.

`GET /di/v1/job/{training_id}/log`

## Request

- Base URL: `https://di.prophecis.com`
- URL: `https://di.prophecis.com/di/v1/job/{training_id}/log`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `X-Watson-Authorization-Token`
  - API key in query parameter `watson-token`
- TypeScript: <https://skmtc.dev/webankfintech/apis/prophecis-rest-service/docs/di/v1/job/:training_id/log/get.ts> (a function with typed inputs; its response is checked against the schema)

Get Job Log By Exec Id And Line.

## Path parameters

- `training_id` string, required

## Query parameters

- `size` number, required
- `from` number, required

## Response `200`

OK

- LogResponse
  - `is_last_line` string
  - `logs` string[]

## Other responses

- `401`: Unauthorized
- `404`: Model create failed

## Changes

- **2022-04-06** `8d1177afef44`: 1 info
  - endpoint added
- **2021-03-12** `c4815b4021b4`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/webankfintech/apis/prophecis-rest-service/changes/di/v1/job/:training_id/log/get.md)

---

[API](https://skmtc.dev/webankfintech/apis/prophecis-rest-service.md) - [All operations](https://skmtc.dev/webankfintech/apis/prophecis-rest-service/llms.txt) - [OpenAPI document](https://skmtc.dev/webankfintech/apis/prophecis-rest-service/revisions/41a1038b5854?raw)
