---
title: "Get loglines, based on query"
method: GET
path: "/di/v1/logs/{model_id}/loglines"
tags: ["TrainingData"]
---

# Get loglines, based on query

`GET /di/v1/logs/{model_id}/loglines`

## Request

- Base URL: `https://di.prophecis.com`
- URL: `https://di.prophecis.com/di/v1/logs/{model_id}/loglines`
- 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/logs/:model_id/loglines/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `model_id` string, string, required

## Query parameters

- `searchType` 'TERM' | 'NESTED' | 'MATCH'
- `since_time` string, string
- `pagesize` integer
- `pos` integer
- `version` string

## Response `200`

(streaming responses)

- V1LogLinesList
  - `models` V1LogLine[]
    - `meta` V1MetaInfo
      - `training_id` string
      - `user_id` string
      - `time` number: Time that the metric occured: representing the number of millisecond since midnight January 1, 1970.
      - `rindex` number
    - `line` string

## Other responses

- `401`: Unauthorized

---

[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)
