Dataset

Initiate a dataset upload

post/api/v1/datasets/upload/initiate

Request

Request body

namestring required

Human-readable name for the dataset

file_format'csv' | 'json' | 'jsonl' | 'parquet' | 'pdf' | 'docx' | 'pptx' | 'xlsx' | 'html' | 'zip' | 'txt' required

Format of the file being uploaded

Example request

{
  "name": "my-training-data",
  "file_format": "csv"
}

Response

upload_urlstring required

Pre-signed S3 URL — upload the file directly to this URL via HTTP PUT

Example response

{
  "upload_url": "https://s3.amazonaws.com/bucket/key?X-Amz-Signature=..."
}

Changes

No recorded changes to this operation across all 10 revisions of this API.