---
title: "Logs of operation"
method: GET
path: "/operation/{internal_operation_id}/logs"
tags: ["Operations"]
---

# Logs of operation

`GET /operation/{internal_operation_id}/logs`

## Request

- The document declares no server URL.
- Auth: none declared
- TypeScript: <https://skmtc.dev/tantorlabs/apis/stateless-web-service-for-pg-anon/docs/operation/:internal_operation_id/logs/get.ts> (a function with typed inputs; its response is checked against the schema)

Return the tail of log files for a specific operation.

## Path parameters

- `internal_operation_id` string, required

## Query parameters

- `tail_lines` integer: Number of log lines to read from the end of the file

## Response `200`

Successful Response

- string[]

## Other responses

- `422`: Validation Error

## Changes

- **2026-08-25** `d16c7984b837`: 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status

[Operation history](https://skmtc.dev/tantorlabs/apis/stateless-web-service-for-pg-anon/changes/operation/:internal_operation_id/logs/get.md)

---

[API](https://skmtc.dev/tantorlabs/apis/stateless-web-service-for-pg-anon.md) - [All operations](https://skmtc.dev/tantorlabs/apis/stateless-web-service-for-pg-anon/llms.txt) - [OpenAPI document](https://skmtc.dev/tantorlabs/apis/stateless-web-service-for-pg-anon/revisions/aa01c4969506?raw)
