---
title: "Query log entries"
method: GET
path: "/v1/logs"
tags: ["Logs"]
---

# Query log entries

`GET /v1/logs`

## Request

- Base URL: `http://localhost:9998`
- URL: `http://localhost:9998/v1/logs`
- Auth: none required

Returns recent log entries with optional filtering. Unauthenticated.

## Query parameters

- `limit` integer
- `level` 'error' | 'warn' | 'info' | 'debug'
- `source` string
- `event` string

## Response `200`

Array of log entries (most recent first)

- LogEntry[]
  - `source` string: Originating app or component
  - `level` 'error' | 'warn' | 'info' | 'debug'
  - `event` string: Event type (e.g. "http.request", "engine.load")
  - `data` object: Arbitrary event payload
  - `timestamp` string, date-time

---

[API](https://skmtc.dev/modelpiper/apis/toolpiper-api.md) · [All operations](https://skmtc.dev/modelpiper/apis/toolpiper-api/llms.txt) · [OpenAPI document](https://skmtc.dev/modelpiper/apis/toolpiper-api/revisions/6722bf56385c?raw)
