POST /v1/uploads/{id}/complete
Finish an upload
Checks the bytes against what was declared and answers with the upload, ready to use as a reference.
Permission
A key with chosen permissions needs generation.write. A key made with every permission may always call it.
Parameters
id (path)string · requireduuid
Body
checksum_sha256string · optionalwidthinteger · optionalmin 0
heightinteger · optionalmin 0
Response: Upload
200 · A file you brought into Kuro.
object"upload"idstringuuid
filenamestringtypestringone of "image", "video", "audio"
mime_typestringbytesintegerstatusstringOnly a `verified` upload can be used in a generation.
one of "pending", "verified", "rejected", "expired"
urlstringA signed link to the file, for about an hour.
uri
thumbnail_urlstring | nulluri
referenceobject | objectPass this where a request takes media.
created_atstringdate-time
Example
The required fields only, each a placeholder. Replace them before sending.
curl -X POST "https://api.meetkuro.com/v1/uploads/<id>/complete" \
-H "Authorization: Bearer $KURO_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Kuro } from "@meetkuro/sdk";
const kuro = new Kuro(); // reads KURO_API_KEY
await kuro.uploads.complete("<id>");