datasets

Retrieve a dataset log

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

get/api/datasets/{dataset_id}/logs/{unique_id}/

Path parameters

dataset_idstring required

Dataset ID. Use _saved_logs for the virtual saved-logs collection.

unique_idstring required

Unique log ID within the dataset.

Headers

Authorizationstring required

Use your Respan API key for Respan API authentication. Enter only the Respan API key value; clients send Authorization: Bearer <RESPAN_API_KEY>. For /api/responses, provider credentials such as Perplexity, OpenAI, or Azure OpenAI go in Settings -> Providers or respan_params.credential_override in the request body, not in this authentication field.

Response

Dataset log details.

idstring

Log ID.

unique_idstring

Unique log ID.

organization_idstring
environmentstring
timestampstring date-time
start_timestring date-time
prompt_tokensinteger
completion_tokensinteger
total_request_tokensinteger
costnumber double
modelstring
latencynumber double
status_codeinteger
statusstring
metadataApiDatasetsDatasetIdLogsUniqueIdGetResponsesContentApplicationJsonSchemaMetadata
promptstring
completionstring
messagesApiDatasetsDatasetIdLogsUniqueIdGetResponsesContentApplicationJsonSchemaMessagesItems[]
{"stackTrail":"components:schemas:Datasets_retrieveDatasetLog_Response_200:properties:input","oasType":"schema","type":"unknown","description":"Any type"}
{"stackTrail":"components:schemas:Datasets_retrieveDatasetLog_Response_200:properties:output","oasType":"schema","type":"unknown","description":"Any type"}
{"stackTrail":"components:schemas:Datasets_retrieveDatasetLog_Response_200:properties:expected_output","oasType":"schema","type":"unknown","description":"Any type"}
dataset_idstring
scoresApiDatasetsDatasetIdLogsUniqueIdGetResponsesContentApplicationJsonSchemaScoresItems[]
error_codestring
error_messagestring

Changes