---
title: "Get logs"
method: GET
path: "/logs"
tags: ["Execution"]
---

# Get logs

`GET /logs`

Get logs

## Query parameters

- `branch_id` integer
- `flow_kind` integer
- `flow_id` integer
- `run_id` integer
- `job_id` integer
- `step_idx` integer
- `agent_id` integer
- `services` string[]
- `level` string
- `start` integer, required
- `limit` integer, required
- `order` string

## Response `200`

A paged array of logs

- ServicesLogs
  - `items` ServicesLog[]
    - `time` string
    - `message` string
    - `service` string
    - `host` string
    - `path` string
    - `lineno` string
    - `level` string
    - `branch` string
    - `flow_kind` string
    - `flow` string
    - `run` string
    - `job` string
    - `tool` string
    - `step` string
    - `agent` string
  - `total` integer

## Other responses

- `default` — unexpected error

---

[API](https://skmtc.net/kraken-ci/apis/server-api.md) · [All operations](https://skmtc.net/kraken-ci/apis/server-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kraken-ci/server-api/revisions/1f2ae877f985/schema)
