Upload an image (single request)
Upload a microscopy image in a single request (multipart/form-data with a
file field) — the simplest way to get an image into HalfPage.
No prior setup is needed: the image record is created automatically, named
after the uploaded file. (To attach the pixels to a record you already
created with POST /image, pass its id in the Image-Id header; a row
outside your organization returns 404.)
The file is streamed to storage and converted before the response returns,
so the returned image is already ready — its id can go straight into
POST /job/prediction. For files larger than a few hundred MB or unreliable
connections, prefer the resumable flow (POST /image with resumable: true,
then PUT the parts and call /upload/{image_id}/complete).
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Optional id of a pre-created image row to attach this file to. Omit it to have the record created automatically from the uploaded file.
Response
Successful Response
Result of a single-request upload: the image record the pixels landed on.
Conversion happens in-request, so image.upload_status is already ready —
no polling needed before running a prediction.