Docs/REST API/api_vendor_upload_file
POST/api/v1/vendor/assets/{id}/fileAuthorization: Bearer <token>

Upload Deliverable File

Upload the primary deliverable archive (.zip/.tar/.otf) with automatic technical inspection.

Description

Receives multipart file data, computes SHA-256 cryptographic checksums, verifies file size, stores the object in resilient Cloud/B2 storage, and triggers automated technical extraction (glyph counts, image dimensions, bit depth, sample rates, archive manifest).

Parameters

2 parameters
ParameterTypeRequiredDefaultDescription
idstringRequiredTarget asset GUID.
filebinary (multipart/form-data)RequiredThe deliverable archive file payload (up to 5 GB).

Request Example

curl -X POST https://api.trykrafto.xyz/api/v1/vendor/assets/6f94726b-67a3-41bb-a5a4-927429beecfa/file \
  -H "Authorization: Bearer kr_live_token..." \
  -F "file=@/path/to/quantum-sans-v1.0.zip"

Response Example

application/json (200 OK)
{
  "id": "fil_82910_ea7",
  "assetId": "6f94726b-67a3-41bb-a5a4-927429beecfa",
  "originalFilename": "quantum-sans-v1.0.zip",
  "fileSize": 4829104,
  "checksum": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
  "technicalJson": "{\"format\":\"zip\",\"entryCount\":12,\"uncompressedSize\":18492011,\"contentsByExtension\":{\"otf\":6,\"woff2\":6}}"
}