Upload a file in one request, as the raw request body
POST /Platform/uploads/file
Upload a file in one request, as the raw request body.
Send the file's bytes as the body with its Content-Type (for
example audio/wav or audio/mpeg); the response is its handle,
ready to pass as recording to transcription. Images, PDFs and
audio are stored as their own type, anything else as a file. Files
larger than one request takes go in parts: open a session with
init instead.
Body parameters
filename: optional str. Original filename, kept with the value.
Returns
DtypeUploadResponse
hash: str. The new dtype handle.dtype: str. Dtype class the upload was stored as.
Example request
curl -X POST "https://api.hilus.ai/Platform/uploads/file" \
-H "Authorization: Bearer $HILUS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'