Uploads
Create an upload
This endpoint creates an upload. To complete an upload, split the file into parts, upload each part to the corresponding upload URL using a PUT request, record the ETag if returned in the response header for each uploaded part, and then complete the upload by submitting the etags to the upload completion endpoint.
AuthorizationBearer <token>
In: header
sizeSize
The size of the file to upload in bytes. This should be the exact size of the file. Any mismatch will result in the url being invalid or a corrupt file being uploaded.
Range
0 < valuemime_typeMime Type
The MIME type of the file.
Response Body
curl -X POST "https://api.wrift.ai/v1/uploads" \ -H "Content-Type: application/json" \ -d '{ "size": 0, "mime_type": "string" }'{
"urls": [
"http://example.com"
],
"id": "string",
"part_size": 0
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}