Skip to Content
API reference

Send the file

PUT
/v1/uploads/{asset_id}/data

Sends the file's bytes to the upload_url from POST /v1/uploads, with every header in upload_headers. The link is signed: it needs no key and works for 15 minutes. The type is checked by the file's first bytes (JPEG, PNG or WebP). Each slot takes one file.

Path Parameters

asset_id*string

The upload's asset_id.

Formatuuid

Query Parameters

expires*string

Part of the signed link, as given.

signature*string

Part of the signed link, as given.

Request Body

The file's bytes, up to 7 MiB.

body*string

Response Body

The upload, now ready.

application/json
  1. response
asset_id*string
Formatuuid
kind*"image"
Value in"image"
status*string

pending until the file arrives, then ready.

Value in"pending""ready"
mime*string
Value in"image/jpeg""image/png""image/webp"
bytes*integer
filename*string|null
created_at*string
Formatdate-time
Example Request
curl -X PUT 'https://tensorfactory.ai/v1/uploads/6f1d2c3b-8a4e-4f0b-9d6a-1c2e3f4a5b6c/data?expires=string&signature=string'
Example Response
{  "asset_id": "6f1d2c3b-8a4e-4f0b-9d6a-1c2e3f4a5b6c",  "kind": "image",  "status": "ready",  "mime": "image/jpeg",  "bytes": 482113,  "filename": "photo.jpg",  "created_at": "2026-11-07T10:00:04.000Z"}