Skip to main content
POST
Create an individual dataset log from unified format data. Datasets record end-to-end input/output of workflows, so both input and output can be arbitrary JSON structures.

Authentication

  • API key: Authorization: Bearer <API key>

Parameters

any
required
The input data - can be any JSON structure (objects, arrays, strings, etc.)
any
required
The output data - can be any JSON structure (objects, arrays, strings, etc.)
object
Additional metadata fields (model, log_type, custom_identifier, etc.)
object
Metric fields (prompt_tokens, completion_tokens, cost, latency, etc.)
Note: Fields can be provided either at top-level or within metadata/metrics objects. This endpoint supports any workflow type - customer support, data processing, API transformations, calculations, etc.

Request Example

Examples

Response

Errors

  • 400 Bad Request — Invalid unified format data
  • 401 Unauthorized — Missing/invalid authentication
  • 404 Not Found — Dataset not found or not in your organization