---
title: "Get runtime logs for a server"
method: GET
path: "/servers/{namespace}/logs"
tags: ["servers"]
---

# Get runtime logs for a server

`GET /servers/{namespace}/logs`

Fetch recent runtime logs for the server's deployed Worker, grouped by invocation (requires ownership).

## Path parameters

- `namespace` string, required

## Query parameters

- `from` string
- `to` string
- `limit` integer

## Response `200`

Logs fetched successfully

- RuntimeLogsResponse
  - `invocations` Invocation[], required
    - `id` string, required
    - `timestamp` string, required
    - `request` InvocationRequest, required
      - `method` string, required
      - `url` string, required
    - `response` InvocationResponse, required
      - `status` number, required
      - `outcome` string, required
    - `duration` InvocationDuration, required
      - `cpuMs` number, required
      - `wallMs` number, required
    - `logs` RuntimeLogEntry[], required
      - `timestamp` string, required
      - `level` string, required
      - `message` string, required
    - `exceptions` ExceptionEntry[], required
      - `timestamp` string, required
      - `name` string, required
      - `message` string, required
      - `stack` string
  - `total` number, required — Total invocations matching query

## Other responses

- `403` — Forbidden
- `404` — Server not found
- `500` — Internal server error

## Changes

- **2026-01-27** `12e546828dc5` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/smithery-ai/apis/smithery-platform-api/changes/servers/:namespace/logs/get.md)

---

[API](https://skmtc.dev/smithery-ai/apis/smithery-platform-api.md) · [All operations](https://skmtc.dev/smithery-ai/apis/smithery-platform-api/llms.txt) · [OpenAPI document](https://skmtc.dev/smithery-ai/apis/smithery-platform-api/revisions/9d53933ba12e?raw)
