Skip to main content
GET
List logs in a dataset
This endpoint retrieves the logs that have been added to a dataset. It supports pagination, filtering, and ordering.

Authentication

  • API key: Authorization: Bearer <API key>
Query Parameters:
  • page (integer, optional): Page number for pagination (default: 1)
  • page_size (integer, optional): Number of results per page (default: varies based on pagination settings)
  • order_by (string, optional): Field to order results by (default: unique_id)
Request example:
Response (200 OK):
Response Fields:
  • count (integer): Total number of logs in the dataset matching the filters
  • next (string|null): URL for the next page of results
  • previous (string|null): URL for the previous page of results
  • results (array): Array of log objects with their details
  • filter_options (object): Available filter options for the dataset logs
  • Each log includes:
    • Basic log metadata (id, timestamp, tokens, cost, latency, etc.)
    • Model information
    • Prompt and completion text (if available)
    • dataset_id: The dataset this log belongs to
    • annotation_status: Status of human annotation (pending, completed, etc.)
    • annotation_completed_by: User who completed the annotation
    • scores: Array of evaluation scores for this log
Errors:
  • 401 Unauthorized — Missing/invalid authentication
  • 404 Not Found — Dataset not found or not in your organization
Notes:
  • Logs are returned with enriched data including annotation status and evaluation scores
  • The endpoint supports the same filter structure as other log listing endpoints
  • Results are paginated automatically