---
title: "Get console logs for a specific solve."
method: GET
path: "/{correlationId}"
---

# Get console logs for a specific solve.

`GET /{correlationId}`

Retrieves console logs for a specific rule solve identified by its `correlationId`.
The `correlationId` can be obtained from the `X-Correlation-Id` response header of the Rule Solver API.
Logs are only generated when the solve is run in debug mode (e.g., using the `X-Debug: true` header).

## Path parameters

- `correlationId` string, uuid, required

## Response `200`

Console logs retrieved successfully.

- LogDetailResponse[]
  - `_id` string
  - `apiKey` ApiKey
    - `created` string, date-time
    - `type` string
    - `key` string
    - `id` string
    - `name` string
  - `id` string
  - `time` string, date-time
  - `logs` ConsoleLogEntry[]
    - `timestamp` string, date-time — The timestamp of the log entry.
    - `level` string — The severity level of the log entry (e.g., INFO, WARN, ERROR).
    - `message` string — The log message.
  - `baseId` string
  - `input` Input
  - `output` OutputItem[]
    - `prices` object
      - `finalPrice` number
      - `crudePrice` number
    - `message` string
  - `correlationId` string, uuid

## Other responses

- `401` — Unauthorized. Invalid or missing API key.
- `404` — Not Found. No logs found for the given `correlationId`, or the logs have expired.

---

[API](https://skmtc.dev/decisionrules/apis/decisionrules-rule-solver-api.md) · [All operations](https://skmtc.dev/decisionrules/apis/decisionrules-rule-solver-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/decisionrules/decisionrules-rule-solver-api/revisions/b50a7df65838/schema)
