Create a dataset from file upload, HuggingFace, Kaggle, Google Sheets, or a public S3 or Cloud Storage object
Create a dataset from file upload, HuggingFace, Kaggle, Google Sheets, or a public S3 or Cloud Storage object
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, Google Sheets, or one public S3 or Cloud Storage object ending in .csv, .json, .jsonl, or .parquet). Omit it to get upload instructions for a presigned S3 PUT. Adapt the result with POST /datasets/{dataset_id}/adapt, 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, Google Sheets, or a public S3 or Cloud Storage object
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"
}
}