Skip to main content
POST
Add logs to dataset
Add existing logs from your log history to a dataset based on filter criteria. Note: This endpoint also supports the legacy endpoint POST /evaluations/datasets/{dataset_id}/logs/ for backward compatibility.

Authentication

  • API key: Authorization: Bearer <API key>
Request body:
  • start_time (string, required, ISO 8601)
  • end_time (string, required, ISO 8601)
  • filters (object, optional; key name is filters)
  • sampling_percentage (integer, optional, default 100)
Request example:
Response (200 OK):
Errors:
  • 400 Bad Request — invalid/missing start_time/end_time, or exceeds plan limit
  • 404 Not Found — dataset not found or not in your organization