cURL
curl --request POST \ --url https://api.starleads.co/Dataset/{datasetId}/document \ --header 'Content-Type: multipart/form-data' \ --header 'X-Api-Key: <api-key>' \ --form 'files=<string>' \ --form files.items='@example-file'
[ { "id": "doc_xyz", "name": "manual.pdf", "size": 2048576, "status": "pending", "createdAt": "2026-04-15T10:30:00Z" } ]
Uploads one or more documents to a dataset. Accepts 1 to 10 files, each with a maximum size of 5 MB.
Api key to pass as a X-Api-Key request header.
X-Api-Key
ID of the dataset.
Files to upload (1-10 files, max 5 MB each)
Documents uploaded successfully
Document identifier
Original filename
File size in bytes
Parsing status
Chunking method used
Upload timestamp