Skip to main content
POST
Create a presigned upload

Authorizations

Authorization
string
header
required

Send Authorization: Bearer YOUR_API_KEY. Use chk_test_ for fixture results and test credits, chk_stg_ for staging, and chk_live_ for production. Production and staging share live credits. Keys require explicit operation permissions. Store secrets on your backend.

Headers

Idempotency-Key
string

Submission key retained for 24 hours. The same key and payload replay the stored response. A different payload returns 409 idempotency_key_reused. Concurrent requests may return 409 request_in_progress.

Required string length: 1 - 255

Body

application/json
endpoint
enum<string>
required

Required target endpoint. Determines the presigned URL's upload size limit.

Available options:
vehicle.pose,
vehicle.segment,
vehicle.identify,
vin.read,
driver_license.read,
plate.read,
document.read,
dashboard.read,
engine.detect,
damage.detect,
damage.severity,
tire.read,
tire.detect,
parts.recognize,
parts.segment,
parts.decompose,
pricing.vehicle,
pricing.repair,
carhub.background,
render.background,
render.customize,
render.enhance,
render.plate,
render.360,
render.video,
render.hotspots
content_type
string

MIME type of the file you are about to upload. Sent verbatim on the PUT.

Examples:

"video/mp4"

"image/jpeg"

"audio/wav"

filename
string

Kept for your own traceability; never interpreted.

Maximum string length: 200
size_bytes
integer

Optional exact byte length. Omit it to receive a bounded multipart POST.

Required range: x >= 1

Response

Upload slot created.

object
string
required
Allowed value: "upload"
upload_ref
string
required

Pass this as inputs[].ref once the bytes are uploaded.

Pattern: ^upl_[1-9A-HJ-NP-Za-km-z]{8,32}$
Example:

"upl_7Qm2hV9tXbLd"

url
string<uri>
required

Presigned PUT target or POST form action.

expires_at
integer<int64>
required

After this instant the URL is refused and a new upload must be created.

Example:

1755300000

max_bytes
integer
required

Hard ceiling enforced by storage, in bytes.

Required range: x >= 1
Example:

524288000

method
enum<string>
required
Available options:
PUT,
POST
headers
object

Signed headers required for a PUT response.

fields
object

Form fields to append before file for a POST response.