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
Parameters
-
input any required: The input data - can be any JSON structure (objects, arrays, strings, etc.)
-
output any required: The output data - can be any JSON structure (objects, arrays, strings, etc.)
-
metadata object: Additional metadata fields (model, log_type, custom_identifier, etc.)
-
metrics 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