Skip to content

Batch Upload

POST
/batch/upload

Upload a CSV file for batch feasibility scoring.

Accepts CSV with lat/lon or lot_number columns. Auto-detects column type. Streams per-site scoring progress and results via SSE.

Checks credit balance against 0.1 * row_count after CSV parse. Rejects CSVs with more than 50 rows.

Streaming: This endpoint returns text/event-stream (Server-Sent Events). The response is a stream of SSE events, not a single JSON body.

Body_batch_upload_batch_upload_post
object
file
required
File
string format: binary
pack_id
Pack Id
string
""

SSE event stream

string

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object