---
title: "retrieve one log entry's request or response with its full body"
method: GET
path: "/mockserver/logEntryBody"
tags: ["control"]
---

# retrieve one log entry's request or response with its full body

`GET /mockserver/logEntryBody`

## Request

- Base URL: `http://localhost:1080`
- URL: `http://localhost:1080/mockserver/logEntryBody`
- Auth: none declared

Returns the request or the response of one log entry, by the entry's id, with its body in full. The dashboard shortens long bodies in its live updates and uses this to load a full body on demand. Secrets are redacted as in the log when redactSecretsInLog is on. Returns 404 once the entry has been cleared or evicted from the log.

## Query parameters

- `id` string, required
- `part` 'request' | 'response', required

## Response `200`

the request (as httpRequest) or the response (as httpResponse)

- object
  - `httpRequest` object
  - `httpResponse` object

## Other responses

- `400`: id or part missing or invalid
- `404`: no such log entry, or it has no request or response

---

[API](https://skmtc.dev/mock-server/apis/mockserver-api.md) · [All operations](https://skmtc.dev/mock-server/apis/mockserver-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mock-server/apis/mockserver-api/revisions/9239b693996e?raw)
