












Beta Observability Datasets Endpoints
(beta) Create, update, import, and export datasets.












Examples
Real world code examples
List existing datasets
GET /v1/observability/datasets
page_size
page
q
200
Successful Response
Playground
Test the endpoints live
curl https://api.mistral.ai/v1/observability/datasets \
-X GET \
-H 'Authorization: Bearer YOUR_APIKEY_HERE'curl https://api.mistral.ai/v1/observability/datasets \
-X GET \
-H 'Authorization: Bearer YOUR_APIKEY_HERE'200
{
"datasets": {
"count": 87
}
}{
"datasets": {
"count": 87
}
}Create a new empty dataset
POST /v1/observability/datasets
description
name
201
Successful Response
created_at
deleted_at
description
id
name
owner_id
updated_at
workspace_id
Playground
Test the endpoints live
curl https://api.mistral.ai/v1/observability/datasets \
-X POST \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"description": "ipsum eiusmod",
"name": "consequat do"
}'curl https://api.mistral.ai/v1/observability/datasets \
-X POST \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"description": "ipsum eiusmod",
"name": "consequat do"
}'201
{
"created_at": "2025-10-07T20:56:01.974Z",
"deleted_at": null,
"description": "ipsum eiusmod",
"id": "consequat do",
"name": "reprehenderit ut dolore",
"owner_id": "occaecat dolor sit",
"updated_at": "2025-10-07T20:56:01.974Z",
"workspace_id": "nostrud"
}{
"created_at": "2025-10-07T20:56:01.974Z",
"deleted_at": null,
"description": "ipsum eiusmod",
"id": "consequat do",
"name": "reprehenderit ut dolore",
"owner_id": "occaecat dolor sit",
"updated_at": "2025-10-07T20:56:01.974Z",
"workspace_id": "nostrud"
}Get dataset by id
GET /v1/observability/datasets/{dataset_id}
dataset_id
200
Successful Response
created_at
deleted_at
description
id
name
owner_id
updated_at
workspace_id
Playground
Test the endpoints live
curl https://api.mistral.ai/v1/observability/datasets/{dataset_id} \
-X GET \
-H 'Authorization: Bearer YOUR_APIKEY_HERE'curl https://api.mistral.ai/v1/observability/datasets/{dataset_id} \
-X GET \
-H 'Authorization: Bearer YOUR_APIKEY_HERE'200
{
"created_at": "2025-10-07T20:56:01.974Z",
"deleted_at": null,
"description": "ipsum eiusmod",
"id": "consequat do",
"name": "reprehenderit ut dolore",
"owner_id": "occaecat dolor sit",
"updated_at": "2025-10-07T20:56:01.974Z",
"workspace_id": "nostrud"
}{
"created_at": "2025-10-07T20:56:01.974Z",
"deleted_at": null,
"description": "ipsum eiusmod",
"id": "consequat do",
"name": "reprehenderit ut dolore",
"owner_id": "occaecat dolor sit",
"updated_at": "2025-10-07T20:56:01.974Z",
"workspace_id": "nostrud"
}Delete a dataset
DELETE /v1/observability/datasets/{dataset_id}
dataset_id
Playground
Test the endpoints live
curl https://api.mistral.ai/v1/observability/datasets/{dataset_id} \
-X DELETE \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json'curl https://api.mistral.ai/v1/observability/datasets/{dataset_id} \
-X DELETE \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json'Patch dataset
PATCH /v1/observability/datasets/{dataset_id}
dataset_id
description
name
200
Successful Response
created_at
deleted_at
description
id
name
owner_id
updated_at
workspace_id
Playground
Test the endpoints live
curl https://api.mistral.ai/v1/observability/datasets/{dataset_id} \
-X PATCH \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json' \
-d '{}'curl https://api.mistral.ai/v1/observability/datasets/{dataset_id} \
-X PATCH \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json' \
-d '{}'200
{
"created_at": "2025-10-07T20:56:01.974Z",
"deleted_at": null,
"description": "ipsum eiusmod",
"id": "consequat do",
"name": "reprehenderit ut dolore",
"owner_id": "occaecat dolor sit",
"updated_at": "2025-10-07T20:56:01.974Z",
"workspace_id": "nostrud"
}{
"created_at": "2025-10-07T20:56:01.974Z",
"deleted_at": null,
"description": "ipsum eiusmod",
"id": "consequat do",
"name": "reprehenderit ut dolore",
"owner_id": "occaecat dolor sit",
"updated_at": "2025-10-07T20:56:01.974Z",
"workspace_id": "nostrud"
}List existing records in the dataset
GET /v1/observability/datasets/{dataset_id}/records
dataset_id
page_size
page
200
Successful Response
Playground
Test the endpoints live
curl https://api.mistral.ai/v1/observability/datasets/{dataset_id}/records \
-X GET \
-H 'Authorization: Bearer YOUR_APIKEY_HERE'curl https://api.mistral.ai/v1/observability/datasets/{dataset_id}/records \
-X GET \
-H 'Authorization: Bearer YOUR_APIKEY_HERE'200
{
"records": {
"count": 87
}
}{
"records": {
"count": 87
}
}Add a conversation to the dataset
POST /v1/observability/datasets/{dataset_id}/records
dataset_id
properties
201
Successful Response
created_at
dataset_id
deleted_at
id
properties
source
updated_at
Playground
Test the endpoints live
curl https://api.mistral.ai/v1/observability/datasets/{dataset_id}/records \
-X POST \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"payload": {
"messages": [
[
null
]
]
},
"properties": [
null
]
}'curl https://api.mistral.ai/v1/observability/datasets/{dataset_id}/records \
-X POST \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"payload": {
"messages": [
[
null
]
]
},
"properties": [
null
]
}'201
{
"created_at": "2025-10-07T20:56:01.974Z",
"dataset_id": "ipsum eiusmod",
"deleted_at": null,
"id": "consequat do",
"payload": {
"messages": [
[
null
]
]
},
"properties": [
null
],
"source": "EXPLORER",
"updated_at": "2025-10-07T20:56:01.974Z"
}{
"created_at": "2025-10-07T20:56:01.974Z",
"dataset_id": "ipsum eiusmod",
"deleted_at": null,
"id": "consequat do",
"payload": {
"messages": [
[
null
]
]
},
"properties": [
null
],
"source": "EXPLORER",
"updated_at": "2025-10-07T20:56:01.974Z"
}Populate the dataset with a campaign
POST /v1/observability/datasets/{dataset_id}/imports/from-campaign
dataset_id
campaign_id
202
Successful Response
created_at
creator_id
dataset_id
deleted_at
id
message
progress
status
updated_at
workspace_id
Playground
Test the endpoints live
curl https://api.mistral.ai/v1/observability/datasets/{dataset_id}/imports/from-campaign \
-X POST \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"campaign_id": "ipsum eiusmod"
}'curl https://api.mistral.ai/v1/observability/datasets/{dataset_id}/imports/from-campaign \
-X POST \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"campaign_id": "ipsum eiusmod"
}'202
{
"created_at": "2025-10-07T20:56:01.974Z",
"creator_id": "ipsum eiusmod",
"dataset_id": "consequat do",
"deleted_at": null,
"id": "reprehenderit ut dolore",
"status": "RUNNING",
"updated_at": "2025-10-07T20:56:01.974Z",
"workspace_id": "occaecat dolor sit"
}{
"created_at": "2025-10-07T20:56:01.974Z",
"creator_id": "ipsum eiusmod",
"dataset_id": "consequat do",
"deleted_at": null,
"id": "reprehenderit ut dolore",
"status": "RUNNING",
"updated_at": "2025-10-07T20:56:01.974Z",
"workspace_id": "occaecat dolor sit"
}Populate the dataset with samples from the explorer
POST /v1/observability/datasets/{dataset_id}/imports/from-explorer
dataset_id
completion_event_ids
202
Successful Response
created_at
creator_id
dataset_id
deleted_at
id
message
progress
status
updated_at
workspace_id
Playground
Test the endpoints live
curl https://api.mistral.ai/v1/observability/datasets/{dataset_id}/imports/from-explorer \
-X POST \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"completion_event_ids": [
"ipsum eiusmod"
]
}'curl https://api.mistral.ai/v1/observability/datasets/{dataset_id}/imports/from-explorer \
-X POST \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"completion_event_ids": [
"ipsum eiusmod"
]
}'202
{
"created_at": "2025-10-07T20:56:01.974Z",
"creator_id": "ipsum eiusmod",
"dataset_id": "consequat do",
"deleted_at": null,
"id": "reprehenderit ut dolore",
"status": "RUNNING",
"updated_at": "2025-10-07T20:56:01.974Z",
"workspace_id": "occaecat dolor sit"
}{
"created_at": "2025-10-07T20:56:01.974Z",
"creator_id": "ipsum eiusmod",
"dataset_id": "consequat do",
"deleted_at": null,
"id": "reprehenderit ut dolore",
"status": "RUNNING",
"updated_at": "2025-10-07T20:56:01.974Z",
"workspace_id": "occaecat dolor sit"
}Populate the dataset with samples from an uploaded file
POST /v1/observability/datasets/{dataset_id}/imports/from-file
dataset_id
file_id
202
Successful Response
created_at
creator_id
dataset_id
deleted_at
id
message
progress
status
updated_at
workspace_id
Playground
Test the endpoints live
curl https://api.mistral.ai/v1/observability/datasets/{dataset_id}/imports/from-file \
-X POST \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"file_id": "ipsum eiusmod"
}'curl https://api.mistral.ai/v1/observability/datasets/{dataset_id}/imports/from-file \
-X POST \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"file_id": "ipsum eiusmod"
}'202
{
"created_at": "2025-10-07T20:56:01.974Z",
"creator_id": "ipsum eiusmod",
"dataset_id": "consequat do",
"deleted_at": null,
"id": "reprehenderit ut dolore",
"status": "RUNNING",
"updated_at": "2025-10-07T20:56:01.974Z",
"workspace_id": "occaecat dolor sit"
}{
"created_at": "2025-10-07T20:56:01.974Z",
"creator_id": "ipsum eiusmod",
"dataset_id": "consequat do",
"deleted_at": null,
"id": "reprehenderit ut dolore",
"status": "RUNNING",
"updated_at": "2025-10-07T20:56:01.974Z",
"workspace_id": "occaecat dolor sit"
}Populate the dataset with samples from the playground
POST /v1/observability/datasets/{dataset_id}/imports/from-playground
dataset_id
conversation_ids
202
Successful Response
created_at
creator_id
dataset_id
deleted_at
id
message
progress
status
updated_at
workspace_id
Playground
Test the endpoints live
curl https://api.mistral.ai/v1/observability/datasets/{dataset_id}/imports/from-playground \
-X POST \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"conversation_ids": [
"ipsum eiusmod"
]
}'curl https://api.mistral.ai/v1/observability/datasets/{dataset_id}/imports/from-playground \
-X POST \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"conversation_ids": [
"ipsum eiusmod"
]
}'202
{
"created_at": "2025-10-07T20:56:01.974Z",
"creator_id": "ipsum eiusmod",
"dataset_id": "consequat do",
"deleted_at": null,
"id": "reprehenderit ut dolore",
"status": "RUNNING",
"updated_at": "2025-10-07T20:56:01.974Z",
"workspace_id": "occaecat dolor sit"
}{
"created_at": "2025-10-07T20:56:01.974Z",
"creator_id": "ipsum eiusmod",
"dataset_id": "consequat do",
"deleted_at": null,
"id": "reprehenderit ut dolore",
"status": "RUNNING",
"updated_at": "2025-10-07T20:56:01.974Z",
"workspace_id": "occaecat dolor sit"
}Populate the dataset with samples from another dataset
POST /v1/observability/datasets/{dataset_id}/imports/from-dataset
dataset_id
dataset_record_ids
202
Successful Response
created_at
creator_id
dataset_id
deleted_at
id
message
progress
status
updated_at
workspace_id
Playground
Test the endpoints live
curl https://api.mistral.ai/v1/observability/datasets/{dataset_id}/imports/from-dataset \
-X POST \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"dataset_record_ids": [
"ipsum eiusmod"
]
}'curl https://api.mistral.ai/v1/observability/datasets/{dataset_id}/imports/from-dataset \
-X POST \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"dataset_record_ids": [
"ipsum eiusmod"
]
}'202
{
"created_at": "2025-10-07T20:56:01.974Z",
"creator_id": "ipsum eiusmod",
"dataset_id": "consequat do",
"deleted_at": null,
"id": "reprehenderit ut dolore",
"status": "RUNNING",
"updated_at": "2025-10-07T20:56:01.974Z",
"workspace_id": "occaecat dolor sit"
}{
"created_at": "2025-10-07T20:56:01.974Z",
"creator_id": "ipsum eiusmod",
"dataset_id": "consequat do",
"deleted_at": null,
"id": "reprehenderit ut dolore",
"status": "RUNNING",
"updated_at": "2025-10-07T20:56:01.974Z",
"workspace_id": "occaecat dolor sit"
}Export to the Files API and retrieve presigned URL to download the resulting JSONL file
GET /v1/observability/datasets/{dataset_id}/exports/to-jsonl
dataset_id
200
Successful Response
file_url
Playground
Test the endpoints live
curl https://api.mistral.ai/v1/observability/datasets/{dataset_id}/exports/to-jsonl \
-X GET \
-H 'Authorization: Bearer YOUR_APIKEY_HERE'curl https://api.mistral.ai/v1/observability/datasets/{dataset_id}/exports/to-jsonl \
-X GET \
-H 'Authorization: Bearer YOUR_APIKEY_HERE'200
{
"file_url": "ipsum eiusmod"
}{
"file_url": "ipsum eiusmod"
}Get status of a dataset import task
GET /v1/observability/datasets/{dataset_id}/tasks/{task_id}
dataset_id
task_id
200
Successful Response
created_at
creator_id
dataset_id
deleted_at
id
message
progress
status
updated_at
workspace_id
Playground
Test the endpoints live
curl https://api.mistral.ai/v1/observability/datasets/{dataset_id}/tasks/{task_id} \
-X GET \
-H 'Authorization: Bearer YOUR_APIKEY_HERE'curl https://api.mistral.ai/v1/observability/datasets/{dataset_id}/tasks/{task_id} \
-X GET \
-H 'Authorization: Bearer YOUR_APIKEY_HERE'200
{
"created_at": "2025-10-07T20:56:01.974Z",
"creator_id": "ipsum eiusmod",
"dataset_id": "consequat do",
"deleted_at": null,
"id": "reprehenderit ut dolore",
"status": "RUNNING",
"updated_at": "2025-10-07T20:56:01.974Z",
"workspace_id": "occaecat dolor sit"
}{
"created_at": "2025-10-07T20:56:01.974Z",
"creator_id": "ipsum eiusmod",
"dataset_id": "consequat do",
"deleted_at": null,
"id": "reprehenderit ut dolore",
"status": "RUNNING",
"updated_at": "2025-10-07T20:56:01.974Z",
"workspace_id": "occaecat dolor sit"
}List import tasks for the given dataset
GET /v1/observability/datasets/{dataset_id}/tasks
dataset_id
page_size
page
200
Successful Response
Playground
Test the endpoints live
curl https://api.mistral.ai/v1/observability/datasets/{dataset_id}/tasks \
-X GET \
-H 'Authorization: Bearer YOUR_APIKEY_HERE'curl https://api.mistral.ai/v1/observability/datasets/{dataset_id}/tasks \
-X GET \
-H 'Authorization: Bearer YOUR_APIKEY_HERE'200
{
"tasks": {
"count": 87
}
}{
"tasks": {
"count": 87
}
}