---
title: "Retrieve a dataset log"
method: GET
path: "/api/datasets/{dataset_id}/logs/{unique_id}/"
tags: ["datasets"]
---

# Retrieve a dataset log

`GET /api/datasets/{dataset_id}/logs/{unique_id}/`

Retrieve the full dataset log object, including input/output data, metadata, and associated scores.

## Path parameters

- `dataset_id` string, required
- `unique_id` string, required

## Headers

- `Authorization` string, required

## Response `200`

Dataset log details.

- DatasetsRetrieveDatasetLogResponse200
  - `id` string — Log ID.
  - `unique_id` string — Unique log ID.
  - `organization_id` string
  - `environment` string
  - `timestamp` string, date-time
  - `start_time` string, date-time
  - `prompt_tokens` integer
  - `completion_tokens` integer
  - `total_request_tokens` integer
  - `cost` number, double
  - `model` string
  - `latency` number, double
  - `status_code` integer
  - `status` string
  - `metadata` ApiDatasetsDatasetIdLogsUniqueIdGetResponsesContentApplicationJsonSchemaMetadata
  - `prompt` string
  - `completion` string
  - `messages` ApiDatasetsDatasetIdLogsUniqueIdGetResponsesContentApplicationJsonSchemaMessagesItems[]
  - `input` unknown
  - `output` unknown
  - `expected_output` unknown
  - `dataset_id` string
  - `scores` ApiDatasetsDatasetIdLogsUniqueIdGetResponsesContentApplicationJsonSchemaScoresItems[]
  - `error_code` string
  - `error_message` string

## Other responses

- `401` — Unauthorized - Missing/invalid authentication
- `404` — Dataset log not found.

## Changes

> 6 revisions in range; 3 could not be searched.

- **2026-07-31** `c26d550029f8` — 4 breaking, 4 warning, 95 info
  - the `expected_output` response's property type/format changed from ``/`` to `string`/`` for status `200`
  - the `input` response's property type/format changed from ``/`` to `string`/`` for status `200`
  - the `metadata` response's property type/format changed from `object`/`` to `string`/`` for status `200`
  - the `output` response's property type/format changed from ``/`` to `string`/`` for status `200`
  - …99 more

[Change history](https://skmtc.dev/keywordsai/apis/api-reference/changes/api/datasets/:dataset_id/logs/:unique_id/get.md)

---

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