Authorizations
Enter Gentrace API key (Format: Authorization: Bearer <token>)
Body
application/json
Response
Successful response
The response is of type object
.
Viewing Gentrace v2 documentation View Gentrace v1
Viewing Gentrace v2 documentation View Gentrace v1
Create a new dataset
curl --request POST \
--url https://gentrace.ai/api/v4/datasets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Dataset - negative user feedback - 2025-04-01",
"description": "Negative user feedback collected from our production environment",
"isGolden": false,
"pipelineSlug": "email-summarizer",
"pipelineId": "123e4567-e89b-12d3-a456-426614174000"
}'
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-04-01T00:00:00.000Z",
"updatedAt": "2025-04-01T00:00:00.000Z",
"name": "Dataset - negative user feedback - 2025-04-01",
"description": "Negative user feedback collected from our production environment",
"archivedAt": "2025-04-01T00:00:00.000Z",
"pipelineId": "123e4567-e89b-12d3-a456-426614174000"
}
Enter Gentrace API key (Format: Authorization: Bearer <token>)
Successful response
The response is of type object
.
curl --request POST \
--url https://gentrace.ai/api/v4/datasets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Dataset - negative user feedback - 2025-04-01",
"description": "Negative user feedback collected from our production environment",
"isGolden": false,
"pipelineSlug": "email-summarizer",
"pipelineId": "123e4567-e89b-12d3-a456-426614174000"
}'
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-04-01T00:00:00.000Z",
"updatedAt": "2025-04-01T00:00:00.000Z",
"name": "Dataset - negative user feedback - 2025-04-01",
"description": "Negative user feedback collected from our production environment",
"archivedAt": "2025-04-01T00:00:00.000Z",
"pipelineId": "123e4567-e89b-12d3-a456-426614174000"
}