---
title: "Get the accumulated JSONL log content for an upgrade (for dashboard display)."
method: GET
path: "/external-services/{service_id}/upgrades/{id}/logs"
tags: ["Postgres Upgrades"]
---

# Get the accumulated JSONL log content for an upgrade (for dashboard display).

`GET /external-services/{service_id}/upgrades/{id}/logs`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/external-services/{service_id}/upgrades/{id}/logs`
- Auth: HTTP bearer

## Path parameters

- `service_id` integer, required
- `id` integer, required

## Response `200`

Log content

- PgUpgradeLogResponse
  - `content` string, required
  - `log_id` string, required

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Not found
- `500`: Internal error

## Changes

- **2026-11-09** `12896146b193`: 2 breaking
  - removed the required property `extensions` from the response with the `401` status
  - removed the required property `extensions` from the response with the `403` status
- **2026-10-05** `4b228ebed583`: 2 info
  - added the optional property `status` to the response with the `401` status
  - added the optional property `status` to the response with the `403` status
- **2026-10-05** `63a80791dc58`: 2 warning
  - removed the optional property `status` from the response with the `401` status
  - removed the optional property `status` from the response with the `403` status
- **2026-09-23** `f4efc4d5c7b7`: 2 info
  - added the optional property `status` to the response with the `401` status
  - added the optional property `status` to the response with the `403` status
- **2026-09-07** `943f7f929e7c`: 2 info
  - added the non-success response with the status `401`
  - added the non-success response with the status `403`

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/external-services/:service_id/upgrades/:id/logs/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
