Create a dataset from file upload, HuggingFace, Kaggle, or Google Sheets
Create a dataset from file upload, HuggingFace, Kaggle, or Google Sheets
POST/api/v1/datasets
Unified ingest endpoint. Pass source.url to start an async import — the provider is inferred from the URL host (HuggingFace, Kaggle, or Google Sheets). Omit it to get upload instructions for a presigned S3 PUT. Adapt the result with POST /datasets/{dataset_id}/run, or send it straight to training with POST /autoscientist when it already holds prompt and completion columns.
Create a dataset from file upload, HuggingFace, Kaggle, or Google Sheets
curl https://api.prod.adaptionlabs.ai/api/v1/datasets \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $ADAPTION_API_KEY" \
-d '{
"source": {}
}'{
"dataset_id": "dataset_id",
"status": "status",
"upload_instructions": {
"url": "https://s3.amazonaws.com/bucket/key?X-Amz-Signature=...",
"method": "PUT",
"s3_key": "s3_key"
}
}Returns Examples
{
"dataset_id": "dataset_id",
"status": "status",
"upload_instructions": {
"url": "https://s3.amazonaws.com/bucket/key?X-Amz-Signature=...",
"method": "PUT",
"s3_key": "s3_key"
}
}