---
title: "Get Request Log By ID"
method: GET
path: "/request-logs/{id}"
---

# Get Request Log By ID

`GET /request-logs/{id}`

## Request

- Base URL: `https://api.dashboard.knotapi.com`
- URL: `https://api.dashboard.knotapi.com/request-logs/{id}`
- Auth: HTTP bearer

Get a request log by ID.

## Path parameters

- `id` integer, required

## Query parameters

- `environment` 'development' | 'production', required

## Response `200`

Successful request.

- RequestLogDetail
  - `id` integer, required: Unique identifier for the request log.
  - `type` 'request' | 'webhook', required: `request` for an API request to Knot. `webhook` for a webhook delivery attempt to your endpoint. Each webhook retry is a separate log.
  - `datetime` string, date-time, required: When the request was made, in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ).
  - `method` string, nullable, required: HTTP method of the request.
  - `path` string, nullable, required: For `request` logs, the Knot API path that was called, including its query string. Sensitive query parameter values are masked. `null` for `webhook` logs.
  - `url` string, nullable, required: For `webhook` logs, the endpoint URL Knot sent the webhook to. Query parameter values and credentials are masked. `null` for `request` logs.
  - `event` string, nullable, required: For `webhook` logs, the webhook event. `null` for `request` logs.
  - `status_code` integer, required: HTTP status code of the response. For `webhook` logs, this is the status code your endpoint returned. Knot records `504` when your endpoint times out or can't be reached.
  - `latency_ms` integer, nullable, required: Time taken to respond, in milliseconds.
  - `session_id` string, nullable, required: The session the log belongs to, if any.
  - `task_id` integer, nullable, required: The task the log belongs to, if any.
  - `external_user_id` string, nullable, required: Your unique identifier for the user, if any.
  - `request_body` string, nullable, required: The request body as a string. Card data, credentials, tokens, email addresses, phone numbers, and addresses are replaced by `********`. `external_user_id`, merchant names, and account details are not masked. For `request` logs, this is the body you sent to Knot. For `webhook` logs, this is the webhook payload Knot sent to your endpoint.
  - `request_body_truncated` boolean, required: `true` if `request_body` was cut to 8 KB.
  - `response_body` string, nullable, required: The response body as a string, masked like `request_body`. For `request` logs, this is Knot's response. For `webhook` logs, this is your endpoint's response. Successful Knot responses larger than 5 KB are not stored and appear as `response too large`.
  - `response_body_truncated` boolean, required: `true` if `response_body` was cut to 8 KB.

## Other responses

- `400`: Invalid request.
- `401`: Unauthorized request.
- `403`: Forbidden request.
- `429`: Too many requests.
- `500`: Internal server error.

## Changes

- **2026-11-03** `f10ecfa12c00`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/knotapi/apis/knot-api/changes/request-logs/:id/get.md)

---

[API](https://skmtc.dev/knotapi/apis/knot-api.md) - [All operations](https://skmtc.dev/knotapi/apis/knot-api/llms.txt) - [OpenAPI document](https://skmtc.dev/knotapi/apis/knot-api/revisions/f10ecfa12c00?raw)
